-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
80 lines (69 loc) · 2.55 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
group 'com.adidas.demoAppium'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath("net.serenity-bdd:serenity-gradle-plugin:2.0.13")
}
}
repositories {
jcenter()
mavenLocal()
}
configurations {
localDeps
localDeps.transitive = false
}
apply plugin: 'java'
apply plugin: 'net.serenity-bdd.aggregator'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
implementation 'net.serenity-bdd:serenity-gradle-plugin:2.0.13'
implementation 'net.serenity-bdd:serenity-junit:2.0.13'
implementation 'net.serenity-bdd:serenity-core:2.0.13'
implementation 'net.serenity-bdd:serenity-cucumber:1.9.20'
implementation 'io.appium:java-client:7.0.0'
localDeps 'io.appium:java-client:7.0.0'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
}
gradle.startParameter.continueOnFailure = true
task copyToLib(type: Copy) {
from configurations.localDeps
into "$projectDir/src/test/resources/AppiumWebDriver/"
from(zipTree("$projectDir/src/test/resources/AppiumWebDriver/java-client-7.0.0.jar"))
}
task android601 (type: Test){
systemProperties System.getProperties()
systemProperties['context'] = 'android:6.0.1'
systemProperties['appium.platformName']= 'android'
systemProperties['appium.hub'] = 'http://0.0.0.0:4723/wd/hub'
systemProperties['appium.deviceName'] = 'ALTEN Galaxy S5'
systemProperties['appium.platformVersion'] = '6.0.1'
testLogging.showStandardStreams = true
include "com/adidas/testRunner/TestRunner.class"
}
task android9 (type: Test){
systemProperties System.getProperties()
systemProperties['context'] = 'android:9'
systemProperties['appium.platformName']= 'android'
systemProperties['appium.hub'] = 'http://172.18.65.113:4723/wd/hub'
systemProperties['appium.deviceName'] = 'ALTEN Galaxy S5'
systemProperties['appium.platformVersion'] = '6.0.1'
testLogging.showStandardStreams = true
include "com/adidas/testRunner/TestRunner.class"
}
test {
systemProperties System.getProperties()
systemProperties['context'] = 'android'
systemProperties['appium.platformName']= 'android'
systemProperties['appium.hub'] = 'http://172.18.65.113:4723/wd/hub'
systemProperties['appium.deviceName'] = 'ALTEN Galaxy S5'
systemProperties['appium.platformVersion'] = '6.0.1'
testLogging.showStandardStreams = true
include "com/adidas/testRunner/TestRunner.class"
}