-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (60 loc) · 2.11 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.seleniumhq.selenium:selenium-java:4.21.0'
implementation 'org.testng:testng:7.8.0'
implementation "ch.qos.logback:logback-classic:1.4.8"
implementation 'org.projectlombok:lombok:1.18.28'
implementation 'io.rest-assured:rest-assured:5.3.1'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.opencsv:opencsv:5.8'
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
implementation 'org.yaml:snakeyaml:2.0'
implementation 'mysql:mysql-connector-java:8.0.33'
implementation 'com.opencsv:opencsv:5.7'
implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.8.0'
java {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
test {
useTestNG()
ignoreFailures = false
}
task qa(type:Test) {
useTestNG(){
def suite1 = project.hasProperty("suite1")
def suite2 = project.hasProperty("suite2")
def suite3 = project.hasProperty("suite3")
def suite4 = project.hasProperty("suite4")
def suite5 = project.hasProperty("suite5")
def suite6 = project.hasProperty("suite6")
if(suite1){
suites 'src/test/resources/testSuites/regressionRA.xml'
} else if(suite2){
suites 'src/test/resources/testSuites/regressionUI.xml'
}
else if (suite3){
suites 'src/test/resources/testSuites/smoke_RA_Tests.xml'
} else if (suite4){
suites 'src/test/resources/testSuites/smoke_UI_Tests.xml'
}else if (suite5) {
suites 'src/test/resources/testSuites/regressionRA_and_UI_Tests.xml'
}else if (suite6){
suites 'src/test/resources/testSuites/smoke_UI_and_RA_Tests.xml'
}
}
if(project.hasProperty('browser')){
systemProperty 'browser', "${browser}"
}
}
sourceCompatibility = JavaVersion.VERSION_15
targetCompatibility = JavaVersion.VERSION_15