From 8b6b5183a77d9f8770f34a4c57fff72346fbb911 Mon Sep 17 00:00:00 2001 From: nirmalchandra Date: Wed, 1 Nov 2023 13:08:11 +0000 Subject: [PATCH] Build and run the test --- http-testing/pom.xml | 1 + .../helloworldfileupload/HelloWorldFileUploadTest.java | 2 +- .../helloworldjavaexec/SecurityHeaderTokenDynamicTest.java | 4 ++-- .../HelloWorldPropertiesReadingTest.java | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/http-testing/pom.xml b/http-testing/pom.xml index dd9aa31e0..7e2b18472 100644 --- a/http-testing/pom.xml +++ b/http-testing/pom.xml @@ -67,6 +67,7 @@ org.jsmart.zerocode.testhelp.tests.helloworldjavaexec.HelloWorldJavaApiAsProtocolTest org.jsmart.zerocode.testhelp.tests.helloworldarrayelementmatching.HelloWorldArrayElementPickerTest org.jsmart.zerocode.testhelp.tests.helloworldimplicitdelay.JustHelloImplicitDelayTimeOutTest + org.jsmart.zerocode.testhelp.tests.helloworldfileupload.HelloWorldFileUploadTest diff --git a/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldfileupload/HelloWorldFileUploadTest.java b/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldfileupload/HelloWorldFileUploadTest.java index 208abaf19..ea805ce84 100644 --- a/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldfileupload/HelloWorldFileUploadTest.java +++ b/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldfileupload/HelloWorldFileUploadTest.java @@ -12,6 +12,6 @@ public class HelloWorldFileUploadTest { @Test @Scenario("helloworld_file_upload/hello_world_file_upload_test.json") - public void fileUploadTest() throws Exception { + public void testFileUpload() throws Exception { } } diff --git a/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldjavaexec/SecurityHeaderTokenDynamicTest.java b/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldjavaexec/SecurityHeaderTokenDynamicTest.java index 05ba28a0c..08f17d54c 100644 --- a/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldjavaexec/SecurityHeaderTokenDynamicTest.java +++ b/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldjavaexec/SecurityHeaderTokenDynamicTest.java @@ -1,6 +1,6 @@ package org.jsmart.zerocode.testhelp.tests.helloworldjavaexec; -import org.jsmart.zerocode.core.domain.JsonTestCase; +import org.jsmart.zerocode.core.domain.Scenario; import org.jsmart.zerocode.core.domain.TargetEnv; import org.jsmart.zerocode.core.runner.ZeroCodeUnitRunner; import org.junit.Test; @@ -11,7 +11,7 @@ public class SecurityHeaderTokenDynamicTest { @Test - @JsonTestCase("helloworldjavaexec/hello_world_security_token_for_header_test.json") + @Scenario("helloworldjavaexec/hello_world_security_token_for_header_test.json") public void testNewHeaderToken() throws Exception { } diff --git a/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldproperties/HelloWorldPropertiesReadingTest.java b/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldproperties/HelloWorldPropertiesReadingTest.java index 3635227f6..a92d0d753 100644 --- a/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldproperties/HelloWorldPropertiesReadingTest.java +++ b/http-testing/src/test/java/org/jsmart/zerocode/testhelp/tests/helloworldproperties/HelloWorldPropertiesReadingTest.java @@ -1,6 +1,6 @@ package org.jsmart.zerocode.testhelp.tests.helloworldproperties; -import org.jsmart.zerocode.core.domain.JsonTestCase; +import org.jsmart.zerocode.core.domain.Scenario; import org.jsmart.zerocode.core.domain.TargetEnv; import org.jsmart.zerocode.core.runner.ZeroCodeUnitRunner; import org.junit.Test; @@ -11,12 +11,12 @@ public class HelloWorldPropertiesReadingTest { @Test - @JsonTestCase("helloworld_properties_reading/read_properties_into_test_steps.json") + @Scenario("helloworld_properties_reading/read_properties_into_test_steps.json") public void test_aPropertyKeyValue() throws Exception { } @Test - @JsonTestCase("helloworld_properties_reading/use_common_SAML_token_as_headers.json") + @Scenario("helloworld_properties_reading/use_common_SAML_token_as_headers.json") public void test_useCommonSAMLToken() throws Exception { }