File tree Expand file tree Collapse file tree 8 files changed +23
-19
lines changed
src/test/java/io/github/tahanima Expand file tree Collapse file tree 8 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 14
14
* .ipr
15
15
* .iws
16
16
* .iml
17
- atlassian-ide-plugin.xml
17
+ atlassian-ide-plugin.xml
18
+
19
+ report
Original file line number Diff line number Diff line change @@ -9,25 +9,34 @@ repositories {
9
9
mavenCentral()
10
10
}
11
11
12
+
13
+ java {
14
+ sourceCompatibility = JavaVersion . VERSION_11
15
+ targetCompatibility = JavaVersion . VERSION_11
16
+ }
17
+
12
18
dependencies {
13
19
implementation ' org.aeonbits.owner:owner:1.0.12'
14
- implementation ' com.aventstack:extentreports:5.0.9'
15
20
implementation ' com.univocity:univocity-parsers:2.9.1'
16
- implementation ' com.microsoft.playwright:playwright:1.28.1'
21
+ implementation ' com.aventstack:extentreports:5.0.9'
22
+ implementation ' com.microsoft.playwright:playwright:1.31.0'
17
23
implementation ' org.slf4j:slf4j-api:2.0.6'
18
24
19
- testCompileOnly ' org.projectlombok:lombok:1.18.24 '
20
- testAnnotationProcessor ' org.projectlombok:lombok:1.18.24 '
25
+ testCompileOnly ' org.projectlombok:lombok:1.18.26 '
26
+ testAnnotationProcessor ' org.projectlombok:lombok:1.18.26 '
21
27
22
- testImplementation ' org.testng:testng:7.7.0 '
28
+ testImplementation ' org.testng:testng:7.7.1 '
23
29
testImplementation ' org.slf4j:slf4j-simple:2.0.6'
24
30
}
25
31
26
32
test {
27
33
systemProperties = System . getProperties() as Map<String , ?>
28
34
def groups = System . getProperty(' groups' , ' regression' )
35
+ def thread = System . getProperty(' thread' , ' 5' )
29
36
30
37
useTestNG() {
31
38
includeGroups groups
39
+ parallel ' classes'
40
+ threadCount thread as int
32
41
}
33
42
}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.0.2 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 2
2
3
3
import com .microsoft .playwright .Browser ;
4
4
import com .microsoft .playwright .Playwright ;
5
- import io .github .tahanima .browser .BrowserFactory ;
6
5
7
6
import static io .github .tahanima .config .ConfigurationManager .configuration ;
8
7
Original file line number Diff line number Diff line change 1
1
package io .github .tahanima .config ;
2
2
3
3
import org .aeonbits .owner .Config ;
4
+ import org .aeonbits .owner .Config .LoadPolicy ;
5
+ import org .aeonbits .owner .Config .Sources ;
4
6
5
7
/**
6
8
* Mapping interface for the global parameters contained within config.properties file.
7
9
*
8
10
* @author tahanima
9
11
*/
10
- @ Config . LoadPolicy (Config .LoadType .MERGE )
11
- @ Config . Sources ({"system:properties" , "classpath:config.properties" })
12
+ @ LoadPolicy (Config .LoadType .MERGE )
13
+ @ Sources ({"system:properties" , "classpath:config.properties" })
12
14
public interface Configuration extends Config {
13
15
/**
14
16
* @return a string containing the browser name
Original file line number Diff line number Diff line change 1
1
package io .github .tahanima .config ;
2
2
3
- import io .github .tahanima .config .Configuration ;
4
3
import org .aeonbits .owner .ConfigCache ;
5
4
6
5
/**
Original file line number Diff line number Diff line change 16
16
* @author tahanima
17
17
*/
18
18
@ Listeners (TestListener .class )
19
- public abstract class BaseE2ETest {
19
+ public class BaseE2ETest {
20
20
protected Playwright playwright ;
21
21
protected Browser browser ;
22
22
protected BrowserContext browserContext ;
23
23
protected Page page ;
24
24
25
- public abstract void initialize ();
26
-
27
25
protected <T extends BasePage > T createInstance (Class <T > basePage ) {
28
26
return BasePageFactory .createInstance (page , basePage );
29
27
}
@@ -32,8 +30,6 @@ protected <T extends BasePage> T createInstance(Class<T> basePage) {
32
30
public void setup () {
33
31
playwright = Playwright .create ();
34
32
browser = BrowserManager .browser (playwright );
35
-
36
- initialize ();
37
33
}
38
34
39
35
@ AfterClass (alwaysRun = true )
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ public void captureScreenshotOnFailureAndCloseBrowserContext(ITestResult result)
47
47
browserContext .close ();
48
48
}
49
49
50
- @ Override
51
- public void initialize () {}
52
-
53
50
@ Test (
54
51
testName = "TC-1" ,
55
52
dataProvider = "loginData" ,
You can’t perform that action at this time.
0 commit comments