-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
104 lines (95 loc) · 4.49 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
plugins {
id 'java'
id "io.qameta.allure" version "2.8.1"
}
allure {
version = '2.8.1'
autoconfigure = false
aspectjweaver = true
}
group 'Test_Automation-automationpractice.com'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_14
repositories {
mavenCentral()
jcenter()
}
dependencies {
// https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59'
// https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server
implementation group: 'org.seleniumhq.selenium', name: 'selenium-server', version: '3.141.59'
// https://mvnrepository.com/artifact/org.testng/testng
testImplementation group: 'org.testng', name: 'testng', version: '7.3.0'
// https://mvnrepository.com/artifact/io.cucumber/cucumber-java
implementation group: 'io.cucumber', name: 'cucumber-java', version: '6.6.1'
// https://mvnrepository.com/artifact/io.cucumber/cucumber-testng
implementation group: 'io.cucumber', name: 'cucumber-testng', version: '6.6.1'
// https://mvnrepository.com/artifact/com.github.javafaker/javafaker
implementation group: 'com.github.javafaker', name: 'javafaker', version: '1.0.2'
// https://bintray.com/nomemory/maven/mockneat
implementation 'net.andreinc.mockneat:mockneat:0.3.9'
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
// https://mvnrepository.com/artifact/org.apache.commons.io/commonsIO
implementation group: 'org.apache.commons.io', name: 'commonsIO', version: '2.5.0'
// https://github.com/bonigarcia/webdrivermanager/ - About WebDriverManager and how to use it
// https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager
implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.2.0'
// https://mvnrepository.com/artifact/io.qameta.allure/allure-testng
implementation group: 'io.qameta.allure', name: 'allure-testng', version: '2.13.5'
// https://mvnrepository.com/artifact/org.json/json
implementation group: 'org.json', name: 'json', version: '20200518'
// https://mvnrepository.com/artifact/io.rest-assured/rest-assured
testImplementation group: 'io.rest-assured', name: 'rest-assured', version: '4.3.1'
// https://mvnrepository.com/artifact/org.apache.poi/poi
implementation group: 'org.apache.poi', name: 'poi', version: '4.1.2'
// https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.2'
// https://mvnrepository.com/artifact/joda-time/joda-time
implementation group: 'joda-time', name: 'joda-time', version: '2.10.6'
// https://mvnrepository.com/artifact/io.cucumber/cucumber-guice
implementation group: 'io.cucumber', name: 'cucumber-guice', version: '6.6.1'
// https://mvnrepository.com/artifact/com.google.inject/guice
implementation group: 'com.google.inject', name: 'guice', version: '4.2.3'
// https://mvnrepository.com/artifact/org.aspectj/aspectjweaver
implementation group: 'org.aspectj', name: 'aspectjweaver', version: '1.9.6'
// https://mvnrepository.com/artifact/com.slack.api/slack-api-client
implementation group: 'com.slack.api', name: 'slack-api-client', version: '1.1.3'
testImplementation 'io.cucumber:cucumber-java:6.6.1'
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
//For Cucumber .feature files
task cucumber() {
dependsOn assemble, compileTestJava
doLast {
javaexec {
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = [
'--plugin', 'pretty',
'--plugin', 'html:target/cucumber-report/single',
'--plugin', 'json:target/reports/cucumber.json',
'--glue',
'com.steps',
'src/test/resources',
]
systemProperties System.properties
}
}
}
//For TestNG.xml files
//If u want to use TestNGRunner you have to disable all suites
test {
ignoreFailures = true
useTestNG()
{
dependsOn cleanTest
suites 'src/test/resources/xml_runners/main_runner/TestNG-Runner.xml'
}
systemProperties System.properties
}