-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (34 loc) · 1.48 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
plugins {
id 'java'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.13.0'
// https://mvnrepository.com/artifact/org.testng/testng
testImplementation group: 'org.testng', name: 'testng', version: '7.8.0'
// https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
// https://mvnrepository.com/artifact/com.github.javafaker/javafaker
implementation group: 'com.github.javafaker', name: 'javafaker', version: '1.0.2'
// https://mvnrepository.com/artifact/io.qameta.allure/allure-testng
implementation group: 'io.qameta.allure', name: 'allure-testng', version: '2.24.0'
}
test {
useTestNG(){
if(project.hasProperty("username") && project.hasProperty("password")){
systemProperties.put("username", project.property("username"))
systemProperties.put("password", project.property("password"))
print(project.property("username"))
print(project.property("password"))
}
if(project.hasProperty("filesuite")){
systemProperties.put("filesuite",project.property("filesuite"))
}
suites "./src/test/resources/"+systemProperties.get("filesuite")+""
}
}