diff options
author | Mavlushechka <mavlushechka@gmail.com> | 2022-11-02 22:08:22 +0500 |
---|---|---|
committer | Mavlushechka <mavlushechka@gmail.com> | 2022-11-03 21:22:39 +0500 |
commit | 24a46668d6f7ca9308890b0c7133c3bc41839cfd (patch) | |
tree | 5613249f5432db65536a82a14618ecb8fdd8a1e2 /src/test/java/com/mavlushechka | |
parent | ac1a4d36a14695a2284198574f198997db8fe659 (diff) |
Solve the 3rd 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.java | 5 |
1 files changed, 5 insertions, 0 deletions
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); } } |