From 24a46668d6f7ca9308890b0c7133c3bc41839cfd Mon Sep 17 00:00:00 2001 From: Mavlushechka Date: Wed, 2 Nov 2022 22:08:22 +0500 Subject: Solve the 3rd step of the TestCase1 test case --- src/test/java/com/mavlushechka/a1qa/project/TestCase1.java | 5 +++++ 1 file changed, 5 insertions(+) (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 722b0da..80b67b9 100644 --- a/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java +++ b/src/test/java/com/mavlushechka/a1qa/project/TestCase1.java @@ -4,6 +4,7 @@ import aquality.selenium.browser.AqualityServices; 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.constants.Project; import com.mavlushechka.a1qa.project.models.User; import com.mavlushechka.a1qa.project.pages.ProjectsPage; import com.mavlushechka.a1qa.project.utils.SiteApiUtils; @@ -26,6 +27,10 @@ public class TestCase1 extends BaseTest { projectsPage.performAuthorization(user); AqualityServices.getBrowser().getDriver().manage().addCookie(new Cookie("token", token)); AqualityServices.getBrowser().refresh(); + + LoggerUtils.step("Go to the Nexage project page. Query the api to get a list of tests in JSON/XML format."); + projectsPage.openProject(Project.NEXAGE); + String testsJson = SiteApiUtils.getTestsJson(Project.NEXAGE.id); } } -- cgit v1.2.3