File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed
src/test/java/sdkexamples/Tests Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ protected String subMainPage() {
16
16
@ DataProvider (name = "example" )
17
17
public Object [][] data () {
18
18
return new Object [][]{
19
- {"Action items" },
20
- {"Navigation button" },
21
- {"Title" }
19
+ {"Usage" },
20
+ {"Styling" }
22
21
};
23
22
}
24
23
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ protected String subMainPage() {
16
16
@ DataProvider (name = "example" )
17
17
public Object [][] data () {
18
18
return new Object [][]{
19
- {"Set busy property" }
19
+ {"Usage" },
20
+ {"Styling" }
20
21
};
21
22
}
22
23
23
24
@ Test (dataProvider = "example" )
24
25
public void sdkActivityIndicatorTest (String example ) throws Exception {
25
26
this .mainPage .navigateTo (example );
26
- this .mainPage .wait .waitForVisible (this .locators .byText ("Modify Busy property" )).click ();
27
27
}
28
28
}
Original file line number Diff line number Diff line change 1
1
package sdkexamples .Tests ;
2
2
3
- import functional .tests .core .enums .PlatformType ;
4
3
import org .testng .annotations .DataProvider ;
5
4
import org .testng .annotations .Test ;
6
5
import sdkexamples .SdkBaseTest ;
@@ -18,14 +17,19 @@ protected String subMainPage() {
18
17
@ DataProvider (name = "example" )
19
18
public Object [][] data () {
20
19
return new Object [][]{
20
+ {"Usage" },
21
+ {"Styling" }
21
22
};
22
23
}
23
24
24
- @ Test
25
- public void sdkButtonTest_01_tap () throws Exception {
26
- this .mainPage .navigateTo (pageButtonTap );
27
- this .mainPage .find .byText ("Tap me!" ).click ();
28
- this .mainPage .log .logScreen (pageButtonTap );
29
- this .mainPage .find .byText ("OK" ).click ();
25
+ @ Test (dataProvider = "example" )
26
+ public void sdkButtonTest_01_tap (String example ) throws Exception {
27
+ this .mainPage .navigateTo (example );
28
+ if (example == "Usage" ){
29
+ this .mainPage .find .byText ("Tap me!" ).click ();
30
+ this .mainPage .log .logScreen (pageButtonTap );
31
+ this .mainPage .find .byText ("OK" ).click ();
32
+ }
33
+
30
34
}
31
35
}
You can’t perform that action at this time.
0 commit comments