summaryrefslogtreecommitdiff
path: root/src/test/java/com/mavlushechka
diff options
context:
space:
mode:
authorMavlushechka <mavlushechka@gmail.com>2022-11-02 20:52:41 +0500
committerMavlushechka <mavlushechka@gmail.com>2022-11-03 21:22:18 +0500
commit7f42595e4a286fc92ad0ac091dce6c47ae90f6af (patch)
tree76491d0d4622082b07fa5518ab977714c98a17bc /src/test/java/com/mavlushechka
parent897aa38b4b0fe7863f6810c67079f1001f52d95e (diff)
Solve the 1st step of the TestCase1 test case
Diffstat (limited to 'src/test/java/com/mavlushechka')
-rw-r--r--src/test/java/com/mavlushechka/a1qa/project/TestCase1.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java
index 599e651..e50f89b 100644
--- a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java
+++ b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java
@@ -1,13 +1,19 @@
package com.mavlushechka.a1qa.project;
import com.mavlushechka.a1qa.framework.BaseTest;
+import com.mavlushechka.a1qa.framework.utils.JsonParser;
+import com.mavlushechka.a1qa.framework.utils.LoggerUtils;
+import com.mavlushechka.a1qa.project.utils.SiteApiUtils;
import org.testng.annotations.Test;
+import java.io.IOException;
+
public class TestCase1 extends BaseTest {
@Test
- public void test1() {
-
+ public void test1() throws IOException {
+ LoggerUtils.step("Query the api to retrieve the token according to the option number.");
+ String token = SiteApiUtils.generateToken(Integer.parseInt(JsonParser.parseData("testData", "variant")));
}
}