修复请求失败数显示错误的bug,修改断言显示格式
This commit is contained in:
parent
df9f21d270
commit
5a0863e9a8
|
@ -17,10 +17,10 @@
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
{{error}}
|
{{request.error}}
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
{{request.passAssertions}} / {{request.totalAssertions}}
|
{{assertion}}
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<el-tag size="mini" type="success" v-if="request.success">
|
<el-tag size="mini" type="success" v-if="request.success">
|
||||||
|
@ -72,9 +72,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
error() {
|
assertion() {
|
||||||
return this.request.totalAssertions - this.request.passAssertions;
|
return this.request.passAssertions + " / " + this.request.totalAssertions;
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
assertion() {
|
assertion() {
|
||||||
return this.scenario.passAssertions + "/" + this.scenario.totalAssertions;
|
return this.scenario.passAssertions + " / " + this.scenario.totalAssertions;
|
||||||
},
|
},
|
||||||
success() {
|
success() {
|
||||||
return this.scenario.error === 0;
|
return this.scenario.error === 0;
|
||||||
|
|
Loading…
Reference in New Issue