-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreateAccount.java
More file actions
63 lines (44 loc) · 1.89 KB
/
createAccount.java
File metadata and controls
63 lines (44 loc) · 1.89 KB
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
package cryptox_AndroidTest;
import org.testng.Assert;
import org.testng.annotations.*;
import java.net.MalformedURLException;
import static config.StartAppiumServer.*;
import static config.appiumconnection.driver;
import static config.appiumconnection.openAppiumSession;
import static pages.EnableBiometricPopUp.RejectBiometric;
import static pages.createPassCodeScreen.createPassCodeNow;
import static pages.landingScreen.clickConnectButton;
import static pages.landingScreen.clickGetStarted;
import static pages.popUps.AcceptNotificationPopUp;
import static pages.repeatPassCodeScreen.repeatPassCodeNow;
import static pages.walletAccountCreationScreen.activateAccount;
public class createAccount {
public static String deviceOne = "18131FDF6000EZ";
public static String deviceTwo = "ZT322PQS55";
public static String testnetPackageName = "com.pioneeringtechventures.wallet.testnet";
public static String stageNetPackageName = "com.pioneeringtechventures.wallet.stagenet";
public static String activityName = "com.concordium.wallet.ui.MainActivity";
public static String loginActivity = "com.concordium.wallet.ui.auth.login.AuthLoginActivity";
@BeforeTest
public void setup() throws MalformedURLException {
openAppiumSession(deviceOne, stageNetPackageName, activityName);
// openAppiumSession(deviceTwo,packageName,activityName,"4723");
createConcordionAccount();
}
@Ignore
public void B_notification() throws MalformedURLException {
Assert.assertTrue(AcceptNotificationPopUp());
}
public void createConcordionAccount() throws MalformedURLException {
Assert.assertTrue(clickConnectButton());
Assert.assertTrue(clickGetStarted());
Assert.assertTrue(activateAccount());
Assert.assertTrue(createPassCodeNow());
Assert.assertTrue(repeatPassCodeNow());
Assert.assertTrue(RejectBiometric());
}
@AfterTest
public void tearDown(){
driver.quit();
}
}