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() 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"))); } }