diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index a91142ef94..cf7c4adb29 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -118,9 +118,9 @@ @@ -271,6 +285,12 @@ export default { {value: "COUNTER", label: this.$t("api_test.automation.counter")}, {value: "RANDOM", label: this.$t("api_test.automation.random")}, ], + uiTypeSelectOptions: [ + {value: "STRING", label: this.$t("api_test.automation.string")}, + {value: "ARRAY", label: this.$t("api_test.automation.array")}, + {value: "JSON", label: this.$t("api_test.automation.json")}, + {value: "NUMBER", label: this.$t("api_test.automation.number")}, + ], variables: {}, selectVariable: "", editData: {}, @@ -343,6 +363,10 @@ export default { data.files = []; data.quotedData = "false"; } + + if (!data.scope || data.scope == "ui") { + data.type = 'STRING'; + } }, valueText(data) { switch (data.type) { diff --git a/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue b/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue index b878d911a1..5184cd1597 100644 --- a/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue +++ b/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue @@ -55,20 +55,6 @@ -
- - {{ $t('commons.add') }} - -
- - {{ $t('commons.clear') }} - - {{ - $t('commons.update') - }} - -
-
@@ -102,14 +88,29 @@ - - - - - - + + + + + + +
+ + {{ $t('commons.add') }} + +
+ + {{ $t('commons.clear') }} + + {{ + $t('commons.update') + }} + +
+
+