-
Java 8+
-
Maven
-
Appium Inspector
- If Appium Inspector is not downloaded, download it from here
The Goal of this project is to write an Appium test using TestNG for our TeamSnap Android or iOS Application. You can choose whether you want to write the test for our iOS or Android application. The framework is already set up, you will just need to write your test case(s) in the AppTest.java file. With that being said, feel free to make any changes that you'd like to the test framework in order to write your test. We will be using Browserstack to run our tests for this project. For this example, we would like you to write a test to cover one of the test cases you wrote in the first interview.
-
Pull down this mobile-qa repository (if you haven't already).
-
Install the dependencies
mvn clean
-
In the browserstack.yml file, replace
username
andaccesskey
values with the ones sent to you via the Google Document. -
In the browserstack.yml file, replace
android-app-id
orios-app-id
values with the ones sent to you via the Google Document.- Choose whether to write the test for Android or iOS. If you choose Android, set the
android-app-id
value. If you choose iOS, set theios-app-id
value.
- Choose whether to write the test for Android or iOS. If you choose Android, set the
-
Open the Appium Inspector and select Browserstack as the Cloud Provider.
-
Enter the Browserstack username and access key (same values that you adjusted in step 3) and set the desired capabilities (hint: you can find the app path in the browserstack.yml file)
-
Start the Appium Inspector session and go through the steps of the test case defined in the Google document. The username and password for the TeamSnap app were sent to you via the Google document.
-
Write your test case defined in the Google Doc Instructions. There is a spot in AppTest.java called:
/* Write your test steps here */
-
Run your test! Here are two options:
- Using Maven:
- Android:
mvn test -Pandroid
- iOS:
mvn test -Pios
- Android:
- Using xml files:
- Right click on test_android.xml and click
Run
- Right click on test_ios.xml and click
Run
- Right click on test_android.xml and click
- Using Maven:
-
View your test results on the Browserstack Dashboard. You will need to log into Browserstack with the email and password sent to you in the Google Document.