How to Run Native Tests - TestlumFramework/Testlum GitHub Wiki
- Choose your testing platform: Android Studio/Xcode, BrowserStack, or Physical Devices.
- Adjust global settings and native configuration to suit your needs.
- Inside the
scenarios
folder, create a test folder, and then add ascenario.xml
file:main-test-resources-folder/ βββscenarios/ βββββ native-test/ β βββ scenario.xml
- Set up your locators by creating a locators page file inside the
pages
folder and adding the necessary locators. Locators collecting in native apps described here.
- 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 Native App</description> <name>Initial Test</name> </overview> <settings> <tags>native</tags> </settings> </scenario>
- Now, inside the
<native>
command, write your test scenario, for example:<native comment="Start native script"> <input comment="Input user email" locator="login.email" value="[email protected]"/> </native>