fix(接口测试): 修改响应时间校验信息

--bug=1013531 --user=王孝刚 【接口测试】场景断言-响应时间为0-场景调试-断言未执行
https://www.tapd.cn/55049933/s/1166008
This commit is contained in:
wxg0103 2022-05-27 10:21:26 +08:00 committed by f2c-ci-robot[bot]
parent 4c4e5d3215
commit 11ad6272c0
4 changed files with 8 additions and 4 deletions

View File

@ -3,9 +3,10 @@
<el-row :gutter="10" type="flex" justify="space-between" align="middle">
<el-col>
<el-input :disabled="isReadOnly" :value="value" v-bind="$attrs" step="100" size="small" type="number"
@change="change" @input="input" :min="0"
@change="change" @input="input" :min="1"
:placeholder="$t('api_test.request.assertions.response_in_time')"
onKeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))"/>
onKeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))"
/>
</el-col>
<el-col class="assertion-btn">
<el-tooltip :content="$t('test_resource_pool.enable_disable')" placement="top" v-if="edit">
@ -57,8 +58,8 @@ export default {
this.$emit('input', value);
},
validate() {
if (this.value === '' || Number(this.value) < 0) {
this.$error(this.$t('commons.formatErr'));
if (this.value === '' || Number(this.value) <= 0) {
this.$warning(this.$t('commons.response_time_warning'));
return false;
}
return true;

View File

@ -188,6 +188,7 @@ export default {
incorrect_input: 'Incorrect input',
delete_confirm: 'Please enter the following to confirm deletion:',
login_username: 'ID or email',
response_time_warning: 'Reply time should be greater than 0 for members',
input_login_username: 'Please input the user ID or email',
input_name: 'Please enter name',
please_save: 'Please save first',

View File

@ -194,6 +194,7 @@ export default {
please_upload: '请上传文件',
please_fill_path: '请填写ur路径',
formatErr: '格式错误',
response_time_warning: '响应时间应该是大于0的整数',
please_save: '请先保存',
reference_documentation: "参考文档",
id: 'ID',

View File

@ -194,6 +194,7 @@ export default {
please_upload: '請上傳文件',
please_fill_path: '請填寫ur路徑',
formatErr: '格式錯誤',
response_time_warning: '回應時間應該是大於0的整數',
please_save: '請先保存',
reference_documentation: "參考文檔",
id: 'ID',