TestGrid Mobile 101 – Create your scriptless mobile test case
1. Go to Application
-
- Open stage.testgrid.io Website.
- Login with the correct credential.
-
- Click on Application.
- It will take you to the Dashboard.
2. Add Application
-
- Click on Add Test Application to add a new app for testing.
- Below the Popup box will appear on the screen.
-
- Add your Application name
- Click on Save button.
3. Open TG-TestCase Writer
-
- Click on TG-TestCase Writer.
- Select your app from the list.
4. Add Version
-
- Click on Add Version.
- Below Popup box will appear on the screen.
-
- Enter your version name and description.
- Platform: Select the platform from the dropdown list.
- Flatforms are Android, iOS, Web
- Branch: branch should be master.
- Click on Save button.
5. Add Module
-
- Click on Add Module.
- Below Popup box will appear on the screen.
-
- Add your Module Name and Module Description.
Global variables
There are 4 global variables that are used to define the testing framework configurations.
Here are the default configuration values :
Variable | Description | Default Value |
NeedsResetOnceBeforeTest | Require to reset the application before starting all tests? | False |
NeedsResetBeforeEveryMethod | Require to reset application
before every test case? |
True |
Add all values and then click on Save. You can see your module added in the left panel.
6. Module Components
-
- Click on your Module (i.e. SampleModule) from the left panel.
- It will show you the above screen containing below Module Components :
- Resources
- Test Functions
- Test Cases
- Network Assert
- Custom Scripts
7. Add Resources Using Element Extractor
-
- Click on Upload using Element Extractor.
- Element Extractor will open in a new tab.
Select App
-
- Choose the path to your .apk file or Bundle Identifier.
- Click on Next.
Choose Device
-
- Wait for the Extractor to find your connected device.
- If there are multiple devices connected select one from the dropdown list.
- Click on the Next.
Select TG-Project
-
- Test Case Writer project: Select an application from the provided dropdown list.
- Version: “Select a Version” or “Add a New Version” from Test Case Writer.
- Module: Select the module you wish to use or “Add Module” in the drop-down menu (your elements will later be found under this module).
- Click on Next button.
- Wait for the extractor to find the automation tools
- Click on Next button.
Extract Element
-
- Create a new page by clicking on the + sign.
- Name the page and click OK.
- Click on Upload button.
-
- Once you have selected your elements to click on Save to extract the elements on that page.
-
- The screen on your device will reflect the screen the elements are being extracted from.
- Use the Refresh Screenshot button to update the screen on your device to gather Elements from the next screen.
8. Add Resources Manually
-
- Click on Add Resources button.
- Below Popup box will appear on the screen.
- Add Resource Variable Name and XPath / ID.
9. Add Test Case
The test case is a set of conditions that determines if the application or one of its module is behaving as expected. You can write multiple test cases in a single module. Test cases are executed in alphabetically ascending order of test case names.
-
- To add a new Test Case, Click on Add Test Case button.
-
- Add TestCase Name and Description.
Example Steps
Step1: Wait till the email field is appears.
Step2: This email id “test@test.com” is typed in the email field.
Step3: This password “test@123” is typed in the password field.
Step4: Tap on Login Button.
10. Run Test Case
-
- Select the test case for the run.
- Click on Run button.
- Below Popup box will appear on the screen.
Select OS
-
- Select the type of application from the dropdown.
- Type of applications is Android and iOS.
- Click on Next button.
App Upload
-
- Upload the .ipa/.apk file you wish to test (only required the first time)
- “Use previous .apk/.ipa” file will allow you to run the test cases on the device without a reinstall.
- “Use previous .apk/.ipa” with the “Delete previous app from device & reinstall” in order to delete the app and reinstall it on the device.
- Click on Next button.
- Upload the .ipa/.apk file you wish to test (only required the first time)
Devices
-
- Select devices (single or multiple).
- Click on Run Test button.
Detailed Log
Now, You can see the Logs & Screenshots of the App as it’s running on TG Server.
Build Summary
-
- Click on Build Summary.
- You can see the full Build Summary.
Transaction Analysis
-
- Click on Transaction Analysis.
- You can see the full Transaction Analysis.
Network Log
-
- Click on Network Log.
- You will see the Network Log as shown below.
-
- You can change the graph type by click on this button.
- There are 4 types of Network Log filters:
- By Request
- Data Size
- Waterfall
- List View
Insights
-
- Click on Insights.
- You can see the comparison of your current build with previous build results as below