Skip to content

Commit 3c54039

Browse files
committed
updated structure
1 parent f31b1a9 commit 3c54039

17 files changed

+27
-26
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ dependencies {
1616
implementation 'com.microsoft.playwright:playwright:1.28.1'
1717
implementation 'org.slf4j:slf4j-api:2.0.6'
1818

19-
compileOnly 'org.projectlombok:lombok:1.18.24'
20-
annotationProcessor 'org.projectlombok:lombok:1.18.24'
19+
testCompileOnly 'org.projectlombok:lombok:1.18.24'
20+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
2121

2222
testImplementation 'org.testng:testng:7.7.0'
2323
testImplementation 'org.slf4j:slf4j-simple:2.0.6'

src/main/java/io/github/tahanima/browser/BrowserManager.java renamed to src/test/java/io/github/tahanima/browser/BrowserManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.microsoft.playwright.Browser;
44
import com.microsoft.playwright.Playwright;
5+
import io.github.tahanima.browser.BrowserFactory;
56

67
import static io.github.tahanima.config.ConfigurationManager.configuration;
78

src/main/java/io/github/tahanima/config/ConfigurationManager.java renamed to src/test/java/io/github/tahanima/config/ConfigurationManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.tahanima.config;
22

3+
import io.github.tahanima.config.Configuration;
34
import org.aeonbits.owner.ConfigCache;
45

56
/**

src/test/java/io/github/tahanima/BaseTest.java renamed to src/test/java/io/github/tahanima/e2e/BaseE2ETest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
package io.github.tahanima;
1+
package io.github.tahanima.e2e;
22

33
import com.microsoft.playwright.Browser;
44
import com.microsoft.playwright.BrowserContext;
55
import com.microsoft.playwright.Page;
66
import com.microsoft.playwright.Playwright;
77
import io.github.tahanima.browser.BrowserManager;
8-
import io.github.tahanima.page.BasePage;
9-
import io.github.tahanima.page.BasePageFactory;
10-
import io.github.tahanima.util.TestListener;
8+
import io.github.tahanima.pages.BasePage;
9+
import io.github.tahanima.pages.BasePageFactory;
10+
import io.github.tahanima.utils.TestListener;
1111
import org.testng.annotations.AfterClass;
1212
import org.testng.annotations.BeforeClass;
1313
import org.testng.annotations.Listeners;
@@ -16,7 +16,7 @@
1616
* @author tahanima
1717
*/
1818
@Listeners(TestListener.class)
19-
public abstract class BaseTest {
19+
public abstract class BaseE2ETest {
2020
protected Playwright playwright;
2121
protected Browser browser;
2222
protected BrowserContext browserContext;

src/test/java/io/github/tahanima/login/LoginTest.java renamed to src/test/java/io/github/tahanima/e2e/login/LoginE2ETest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package io.github.tahanima.login;
1+
package io.github.tahanima.e2e.login;
22

3-
import io.github.tahanima.BaseTest;
3+
import io.github.tahanima.e2e.BaseE2ETest;
44
import io.github.tahanima.data.login.LoginData;
5-
import io.github.tahanima.page.login.LoginPage;
6-
import io.github.tahanima.page.product.ProductsPage;
5+
import io.github.tahanima.pages.login.LoginPage;
6+
import io.github.tahanima.pages.product.ProductsPage;
77
import org.testng.ITestNGMethod;
88
import org.testng.ITestResult;
99
import org.testng.annotations.AfterMethod;
@@ -14,12 +14,12 @@
1414
import java.lang.reflect.Method;
1515

1616
import static com.microsoft.playwright.assertions.PlaywrightAssertions.assertThat;
17-
import static io.github.tahanima.util.CsvDataProviderUtil.processCsv;
17+
import static io.github.tahanima.utils.CsvDataProviderUtils.processCsv;
1818

1919
/**
2020
* @author tahanima
2121
*/
22-
public class LoginTest extends BaseTest {
22+
public class LoginE2ETest extends BaseE2ETest {
2323
private static final String FILE_PATH = "login/login.csv";
2424
private LoginPage loginPage;
2525

src/main/java/io/github/tahanima/page/BasePage.java renamed to src/test/java/io/github/tahanima/pages/BasePage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.tahanima.page;
1+
package io.github.tahanima.pages;
22

33
import com.microsoft.playwright.Page;
44

0 commit comments

Comments
 (0)