Creating Mobile App Tests
Set up an Appium Configuration
Follow the steps below to create an Appium configuration in INGenious.
-
Click on the Configuration icon
-
Inside the Manage Browser tab, Enter the name of the Appium Configuation you want to create, in the
Browser
textbox and hit Enter -
Inside the Mobile Tab, you can set your Remote URL/Appium from the textbox. By default, it is set to
http://127.0.0.1:4723/
-
Inside the Capabilities/Options Tab, you can set your Appium Capabilities/Options
-
By default,
automationName
,deviceName
,platformName
andplatformVersion
are the required key-value pairs for Appium configuration when creating new emulators. Additional Appium configurations can be included as needed. -
Click on Save button to save your Appium Configuration.
Note: Make sure you have already tested your configurations from Appium Inspector. See section Appium Inspector for more details.
Sample Android Emulator INGenious Configurations
Remote URL:
Appium Capabilities/Options:
Sample Android Appium Capabilities Set
Sample iOS Emulator INGenious Configurations
Remote URL:
Appium Capabilities/Options:
Sample iOS Appium Capabilities Set
Sample Lambda INGenious Configurations
Remote URL
Your remote url to make connection with LAMBDATEST is your connection URL with combination of your Lambda Username, Access key and extends with @mobile-hub.lambdatest.com/wd/hub
-
For this example, remote url is set to
https://<UserName>:<AccessKey>@mobile-hub.lambdatest.com/wd/hub
-
To get your Username and Access Key
- Login to LAMBDATEST Portal, go to Home > Account Settings > Password & Security
-
Under Username and Access Key, copy Username and Access Key as shown from example
https://<UserName>:<AccessKey>@mobile-hub.lambdatest.com/wd/hub
.
Appium Capabilities/Options
-
For this example, you can set the capabilities as below:
-
To get
app
capability- To load application and get App Id, follow step from Lambda Official Documentaion
-
For Android Mobile in LAMBDATEST, you can use capabilities
automatorName
asUIAutomator2
platformName
asAndroid
platformVersion
as the Android platform version you want to use
-
For iOS Mobile in LAMBDATEST, you can use capabilities
automatorName
asXCUITest
platformName
asiOS
-
You can also add your other desired capabilities for LAMBDATEST.
- For more information related to capabilities, you can visit Desired Capabilities for LAMBDATEST
- To check capabilites, you can visit Lambda Test Automation Capabilities Generator Tool
Sample LAMBDATEST Appium Capabilities Set
Write Tests
-
Head over to the Design Pane of INGenious
-
Create Objects in the Object Repository with appropriate selectors like
xpath
,AccessibilityId
etc. These can easily be captured from Appium Inspector -
Drag and drop the objects into the test case canvas
-
Select appropriate actions like
Tap
,Scroll
orSet
for each relevant step
Test Execution - Design Pane
While running the test from the Design Pane, make sure to select the appropriate Appium Configuration that was created for the test. You can do that by right clicking on the Run Button and selecting the Configuration.
Test Execution - Execution Pane
While running the test from the Execution Pane, make sure to select the appropriate Appium Configuration that was created for the test. You can do that by selecting the Configuration in the Browser
Column.