fix(性能测试): 性能测试创建新版本时偶报undefined的问题
This commit is contained in:
parent
cf5c0a6c03
commit
99b670d100
|
@ -748,7 +748,11 @@ export default {
|
||||||
return tg.duration;
|
return tg.duration;
|
||||||
},
|
},
|
||||||
getRatios(tg) {
|
getRatios(tg) {
|
||||||
return tg.resourceNodes.map(node => node.ratio);
|
if (tg.resourceNodes) {
|
||||||
|
return tg.resourceNodes.map(node => node.ratio);
|
||||||
|
} else {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
},
|
},
|
||||||
convertProperty() {
|
convertProperty() {
|
||||||
/// todo:下面4个属性是jmeter ConcurrencyThreadGroup plugin的属性,这种硬编码不太好吧,在哪能转换这种属性?
|
/// todo:下面4个属性是jmeter ConcurrencyThreadGroup plugin的属性,这种硬编码不太好吧,在哪能转换这种属性?
|
||||||
|
|
Loading…
Reference in New Issue