-
+
+
+ {{ $t('load_test.by_duration') }}
+ {{ $t('load_test.by_iteration') }}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -83,6 +123,10 @@ const STEPS = "Steps";
const DURATION = "duration";
const RPS_LIMIT = "rpsLimit";
const RPS_LIMIT_ENABLE = "rpsLimitEnable";
+const THREAD_TYPE = "threadType";
+const ITERATE_NUM = "iterateNum";
+const ITERATE_RAMP_UP = "iterateRampUpTime";
+
const hexToRgba = function (hex, opacity) {
return 'rgba(' + parseInt('0x' + hex.slice(1, 3)) + ',' + parseInt('0x' + hex.slice(3, 5)) + ','
+ parseInt('0x' + hex.slice(5, 7)) + ',' + opacity + ')';
@@ -128,6 +172,9 @@ export default {
case RAMP_UP:
this.threadGroups[i].rampUpTime = item.value;
break;
+ case ITERATE_RAMP_UP:
+ this.threadGroups[i].iterateRampUp = item.value;
+ break;
case DURATION:
if (item.unit) {
this.threadGroups[i].duration = item.value;
@@ -144,6 +191,12 @@ export default {
case RPS_LIMIT_ENABLE:
this.threadGroups[i].rpsLimitEnable = item.value;
break;
+ case THREAD_TYPE:
+ this.threadGroups[i].threadType = item.value;
+ break;
+ case ITERATE_NUM:
+ this.threadGroups[i].iterateNum = item.value;
+ break;
default:
break;
}
@@ -157,6 +210,9 @@ export default {
case RAMP_UP:
this.threadGroups[0].rampUpTime = d.value;
break;
+ case ITERATE_RAMP_UP:
+ this.threadGroups[0].iterateRampUp = d.value;
+ break;
case DURATION:
if (d.unit) {
this.threadGroups[0].duration = d.value;
@@ -173,6 +229,12 @@ export default {
case RPS_LIMIT_ENABLE:
this.threadGroups[0].rpsLimitEnable = d.value;
break;
+ case THREAD_TYPE:
+ this.threadGroups[0].threadType = d.value;
+ break;
+ case ITERATE_NUM:
+ this.threadGroups[0].iterateNum = d.value;
+ break;
default:
break;
}
diff --git a/frontend/src/business/components/performance/test/EditPerformanceTest.vue b/frontend/src/business/components/performance/test/EditPerformanceTest.vue
index 2e2769f1a1..8af0e56832 100644
--- a/frontend/src/business/components/performance/test/EditPerformanceTest.vue
+++ b/frontend/src/business/components/performance/test/EditPerformanceTest.vue
@@ -298,6 +298,9 @@ export default {
tg.rampUpTime = tg.rampUpTime || 5;
tg.step = tg.step || 5;
tg.rpsLimit = tg.rpsLimit || 10;
+ tg.threadType = tg.threadType || 'DURATION';
+ tg.iterateNum = tg.iterateNum || 1;
+ tg.iterateRampUp = tg.iterateRampUp || 10;
handler.calculateChart(tg);
});
}
diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue
index c531212baa..88098c33af 100644
--- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue
+++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue
@@ -33,45 +33,83 @@
size="mini"/>