forked from karatelabs/karate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleTest.java
45 lines (36 loc) · 1.09 KB
/
SampleTest.java
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
package karate;
import com.intuit.karate.junit5.Karate;
class SampleTest {
@Karate.Test
// Uncomment @ignore on embed.feature for development verification
Karate testScreenshotIsEmbeddedOnTheCorrectStepOnFailure() {
return Karate.run("embed").relativeTo(getClass());
}
@Karate.Test
Karate testSample() {
return Karate.run("sample").relativeTo(getClass());
}
@Karate.Test
Karate testTags() {
return Karate.run("tags").tags("@second").relativeTo(getClass());
}
@Karate.Test
Karate testTagsWithoutFeatureName() {
return Karate.run().tags("@second").relativeTo(getClass());
}
@Karate.Test
Karate testFullPath() {
return Karate.run("classpath:karate/tags.feature").tags("@first");
}
@Karate.Test
Karate testSystemProperty() {
return Karate.run("classpath:karate/tags.feature")
.tags("@second")
.karateEnv("e2e")
.systemProperty("foo", "bar");
}
@Karate.Test
Karate testAll() {
return Karate.run().relativeTo(getClass());
}
}