diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 5df5670a40..992df2211f 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -122,7 +122,8 @@ }) }, cancel: function () { - this.$router.push('/api/test/list/all'); + console.log(this.test.toJMX().xml) + // this.$router.push('/api/test/list/all'); }, getOptions: function (url) { let formData = new FormData(); diff --git a/frontend/src/business/components/api/test/components/extract/ApiExtractCommon.vue b/frontend/src/business/components/api/test/components/extract/ApiExtractCommon.vue index a6fbd6f25b..ee2997f57b 100644 --- a/frontend/src/business/components/api/test/components/extract/ApiExtractCommon.vue +++ b/frontend/src/business/components/api/test/components/extract/ApiExtractCommon.vue @@ -2,8 +2,17 @@
- +
+ +
+
{{common.value}}
+ + + +
+
@@ -43,6 +52,12 @@ list: Array }, + data() { + return { + visible: false + } + }, + methods: { add() { this.list.push(new ExtractCommon(this.extractType, this.common)); @@ -58,6 +73,21 @@ this.common.variable = null; this.common.expression = null; this.common.value = null; + }, + copy() { + let input = document.createElement("input"); + document.body.appendChild(input); + input.value = this.common.value; + input.select(); + if (input.setSelectionRange) { + input.setSelectionRange(0, input.value.length); + } + document.execCommand("copy"); + document.body.removeChild(input); + this.visible = true; + setTimeout(() => { + this.visible = false; + }, 1000); } }, @@ -79,6 +109,37 @@