From 483f844bcf673b2256b83862a9edc7133ec8f40d Mon Sep 17 00:00:00 2001 From: devcodacytestuser Date: Tue, 16 Jan 2024 16:00:17 +0000 Subject: [PATCH] Create duplication --- duplication | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 duplication diff --git a/duplication b/duplication new file mode 100644 index 0000000..c3ec14f --- /dev/null +++ b/duplication @@ -0,0 +1,79 @@ +package web; + +import java.util.Optional; +import org.codacy.framework.web.BaseTestWeb; +import org.codacy.pages.web.Authentication; +import org.codacy.pages.web.Homepage; +import org.codacy.pages.web.LoginMethod; +import org.codacy.pages.web.ProjectWebPage; +import org.testng.annotations.Test; + + + +@Test(alwaysRun = true) +public class TC_03_LoginWithBitBucket extends BaseTestWeb { + + @Test(alwaysRun = true) + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + public void tc03setUp() { + Authentication authentication = new Authentication(driver, testEnvironment); + Homepage homepage = new Homepage(driver, testEnvironment); + + homepage.landingPage(); + authentication.login(LoginMethod.BITBUCKET, testEnvironment.email(), testEnvironment.password(), Optional.empty()); + } + + @Test(dependsOnMethods = "tc03setUp") + public void tc03LoginWithBitBucket() throws Throwable { + ProjectWebPage projectPage = new ProjectWebPage(driver, testEnvironment); + + projectPage.validateCommitTable(); + } +}