refactor(接口测试): 修复场景导入JMX时后置脚本步骤顺序错乱的问题

--bug=1014065 --user=宋天阳
【接口自动化】github#14803jmeter脚本导入MeterSphere的接口自动化场景中,后置操作的顺序与jmeter中不一致会导致运行失败
https://www.tapd.cn/55049933/s/1182430
This commit is contained in:
song-tianyang 2022-06-15 13:55:56 +08:00 committed by f2c-ci-robot[bot]
parent 772cc6709d
commit 77c4ba4cf1
1 changed files with 32 additions and 35 deletions

View File

@ -1763,9 +1763,6 @@ export default {
for (let i in stepArray) { for (let i in stepArray) {
if (stepArray[i].type === "Assertions") { if (stepArray[i].type === "Assertions") {
hisDataProcessing(stepArray, obj) hisDataProcessing(stepArray, obj)
let assertions = stepArray[i];
stepArray.splice(i, 1);
stepArray.unshift(assertions);
this.sort(); this.sort();
} }
let typeArray = ["JDBCPostProcessor", "JDBCSampler", "JDBCPreProcessor"] let typeArray = ["JDBCPostProcessor", "JDBCSampler", "JDBCPreProcessor"]