3
3
import aquality .appium .mobile .application .AqualityServices ;
4
4
import aquality .appium .mobile .application .MobileModule ;
5
5
import org .testng .Assert ;
6
+ import org .testng .annotations .AfterClass ;
7
+ import org .testng .annotations .BeforeClass ;
8
+ import org .testng .annotations .Listeners ;
9
+ import org .testng .annotations .Test ;
6
10
import samples .android .apidemos .screens .AlertsMenuScreen ;
7
11
import samples .android .apidemos .screens .InvokeSearchScreen ;
8
12
import samples .android .apidemos .screens .MainMenuScreen ;
9
13
import samples .android .apidemos .screens .TwoButtonsAlert ;
14
+ import testreport .ScreenshotListener ;
10
15
11
- // @Listeners(ScreenshotListener.class)
16
+ @ Listeners (ScreenshotListener .class )
12
17
public class AndroidBasicInteractionsTest {
13
18
14
- // @BeforeClass
19
+ @ BeforeClass
15
20
public void setUp () {
16
21
System .clearProperty ("profile" );
17
22
AqualityServices .initInjector (new MobileModule (AqualityServices ::getApplication ));
18
23
}
19
24
20
- // @AfterClass
25
+ @ AfterClass
21
26
public void tearDown () {
22
27
AqualityServices .getApplication ().quit ();
23
28
}
24
29
25
30
26
- // @Test
31
+ @ Test
27
32
public void testSendKeys () {
28
33
new MainMenuScreen ().startSearch ();
29
34
InvokeSearchScreen searchScreen = new InvokeSearchScreen ();
@@ -33,7 +38,7 @@ public void testSendKeys() {
33
38
Assert .assertEquals (searchScreen .getSearchResult (), query , "Search result don't match to entered query" );
34
39
}
35
40
36
- // @Test
41
+ @ Test
37
42
public void testOpensAlert () {
38
43
39
44
logStep ("Open the 'Alert Dialog' activity of the android app" );
0 commit comments