diff options
Diffstat (limited to 'src/test/java/com/mavlushechka')
-rw-r--r-- | src/test/java/com/mavlushechka/a1qa/project/TestCase1.java | 10 |
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"))); } } |