From 54c443362857213d4728b0c9a221fd0f3d0ef10f Mon Sep 17 00:00:00 2001 From: medleycodacy <48563202+medleycodacy@users.noreply.github.com> Date: Tue, 3 Aug 2021 17:27:57 +0100 Subject: [PATCH] Add files via upload --- duplication copy.java | 79 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 duplication copy.java diff --git a/duplication copy.java b/duplication copy.java new file mode 100644 index 0000000..c3ec14f --- /dev/null +++ b/duplication copy.java @@ -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(); + } +}