From 7f42595e4a286fc92ad0ac091dce6c47ae90f6af Mon Sep 17 00:00:00 2001 From: Mavlushechka Date: Wed, 2 Nov 2022 20:52:41 +0500 Subject: Solve the 1st step of the TestCase1 test case --- src/test/java/com/mavlushechka/a1qa/project/TestCase1.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/test/java/com/mavlushechka') 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"))); } } -- cgit v1.2.3