-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
51 lines (45 loc) · 1.62 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
plugins {
id 'java-library'
id 'java'
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
implementation 'org.seleniumhq.selenium:selenium-java:4.0.0-alpha-6'
implementation 'org.seleniumhq.selenium:selenium-server:4.0.0-alpha-2'
implementation 'org.seleniumhq.selenium:selenium-chrome-driver:4.0.0-alpha-5'
implementation 'org.seleniumhq.selenium:selenium-firefox-driver:4.0.0-alpha-5'
implementation 'org.apache.poi:poi:4.1.2'
implementation 'jexcelapi:jxl:2.4.2'
implementation 'com.aventstack:extentreports:5.0.4'
implementation 'org.apache.poi:poi-ooxml:3.10-FINAL'
implementation 'org.apache.logging.log4j:log4j-api:2.13.3'
implementation 'org.apache.logging.log4j:log4j-core:2.13.3'
implementation 'org.apache.commons:commons-email:1.5'
testImplementation 'org.testng:testng:7.3.0'
testImplementation 'io.github.bonigarcia:webdrivermanager:4.2.2'
implementation group: 'ru.yandex.qatools.ashot', name: 'ashot', version: '1.5.4'
}
// run with the command 'gradle clean test' in CLI
test {
//this tells Gradle to use TestNG
useTestNG() {
// this tells TestNG to execute its default reporting structure
useDefaultListeners = true
testLogging.showStandardStreams = true
// location of testng.xml
suites 'src/test/resources/testng.xml'
}
}
// run with the command 'gradle clean smokeTests' in CLI
task smokeTests(type: Test) {
useTestNG() {
useDefaultListeners = true
testLogging.showStandardStreams = true
suites 'src/test/resources/testng.xml'
includeGroups 'Smoke'
}
}