|
@@ -73,10 +73,10 @@ public class TestcaseInfoFacade extends TestcaseInfoServiceImpl {
|
|
|
testcaseInfo.setGmtModified(now);
|
|
|
testcaseInfo.setOutput(GsonUtil.toJson(resp.data));
|
|
|
Integer pass = 0;
|
|
|
- if (GsonUtil.toJson(resp.data).indexOf(testcaseInfo.getPotentialResult()) > 0) {
|
|
|
+ if (GsonUtil.toJson(resp.data).contains(testcaseInfo.getPotentialResult())) {
|
|
|
pass = 1;
|
|
|
}else {
|
|
|
- testcaseInfo.setRemark("与预想结果不一样");
|
|
|
+ testcaseInfo.setRemark("与预想结果不同");
|
|
|
}
|
|
|
testcaseInfo.setPass(pass);
|
|
|
} else {
|