-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (40 loc) · 1.41 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
plugins {
id 'java'
id "io.qameta.allure" version "2.11.2"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
def allureVersion = '2.23.0'
dependencies {
implementation 'org.testng:testng:7.3.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'io.qameta.allure:allure-java-commons:' + allureVersion
implementation 'io.rest-assured:rest-assured:4.3.3'
implementation 'io.qameta.allure:allure-rest-assured:' + allureVersion
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
}
configurations {
testCompile
}
def protocol = project.hasProperty('protocol') ? project.getProperty('protocol') : "http"
def host = project.hasProperty('host') ? project.getProperty('host') : "localhost"
def port = project.hasProperty('port') ? project.getProperty('port') : "8080"
def threads = project.hasProperty('threads') ? project.getProperty('threads') : 1
def suite = project.hasProperty("suite") ? project.getProperty('suite') : "Single"
test {
systemProperty 'threads', threads
systemProperty 'suite', suite
systemProperty 'protocol', protocol
systemProperty 'host', host
systemProperty 'port', port
ignoreFailures = true
useTestNG {
systemProperties(System.getProperties())
suites "/src/test/resources/${suite}.xml"
threadCount(threads.toInteger())
}
}