How to Run Mobile Browser Tests - TestlumFramework/Testlum GitHub Wiki
- Choose your testing platform: Android Studio/Xcode, BrowserStack, or Physical Devices.
- Adjust global settings and mobileBrowser configuration to suit your needs.
- Inside the
scenarios
folder, create a test folder, and then add ascenario.xml
file:main-test-resources-folder/ βββscenarios/ βββββ mobile-browser-test/ β βββ scenario.xml
- Set up your locators by creating a locators page file inside the
pages
folder and adding the necessary locators.
- Structure your
scenario.xml
as follows:<scenario xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.knubisoft.com/testlum/testing/model/scenario" xsi:schemaLocation="http://www.knubisoft.com/testlum/testing/model/scenario scenario.xsd"> <overview> <description>My first Testlum Test for Mobile Browser</description> <name>Initial Test</name> </overview> <settings> <tags>mobileBrowser</tags> </settings> </scenario>
- Now, inside the
<mobilebrowser>
command, write your test scenario, for example:<mobilebrowser comment="Start mobile browser script"> <input comment="Input user email" locator="login.email" value="[email protected]"/> </mobilebrowser>
π Pro Tip:
Testing mobile browsers with Testlum is simple yet powerful! Tailor your configuration and scenarios to simulate real-world conditions, and you'll be ready to run smooth, effective tests across multiple platforms.
Ready to dive in? Let's get testing! π