How to Run Native Tests - TestlumFramework/Testlum GitHub Wiki

πŸš€ Run Native Applications Test

Watch the video

  1. Choose your testing platform: Android Studio/Xcode, BrowserStack, or Physical Devices.
  1. Adjust global settings and native configuration to suit your needs.
  1. Inside the scenarios folder, create a test folder, and then add a scenario.xml file:
main-test-resources-folder/
β”œβ”€β”€scenarios/
β”œβ”€β”€β”€β”€ native-test/
β”‚      └── scenario.xml
  1. 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.
  1. 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>
  1. 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>
⚠️ **GitHub.com Fallback** ⚠️