-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (43 loc) · 1.32 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
apply plugin: "java"
repositories {
mavenCentral()
}
dependencies{
implementation 'org.testng:testng:7.5'
implementation 'org.seleniumhq.selenium:selenium-java:4.1.1'
implementation 'org.hamcrest:hamcrest:2.2'
implementation 'com.beust:jcommander:1.82'
implementation 'com.thoughtworks.xstream:xstream:1.4.18'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'ch.qos.logback:logback-classic:1.2.10'
implementation 'mysql:mysql-connector-java:8.0.25'
implementation 'org.hibernate:hibernate-core:5.6.4.Final'
}
task testGroups(type: Test) {
useTestNG{
suites 'src/test/resources/testng-groups.xml'
}
if (project.hasProperty('browser')){
systemProperty 'browser', "${browser}"
}
if (project.hasProperty('target')){
systemProperty 'browser', "${target}"
}
if (project.hasProperty('verifyUI')){
systemProperty 'verifyUI', "${verifyUI}"
}
}
task testContacts(type: Test) {
useTestNG{
suites 'src/test/resources/testng-contacts.xml'
}
if (project.hasProperty('browser')){
systemProperty 'browser', "${browser}"
}
if (project.hasProperty('target')){
systemProperty 'browser', "${target}"
}
if (project.hasProperty('verifyUI')){
systemProperty 'verifyUI', "${verifyUI}"
}
}