How to Run Mobile Browser Tests - TestlumFramework/Testlum GitHub Wiki

πŸš€ Run Mobile Browser Test

Watch the video

  1. Choose your testing platform: Android Studio/Xcode, BrowserStack, or Physical Devices.
  1. Adjust global settings and mobileBrowser 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/
β”œβ”€β”€β”€β”€ mobile-browser-test/
β”‚      └── scenario.xml
  1. Set up your locators by creating a locators page file inside the pages folder and adding the necessary locators.
  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 Mobile Browser</description>
        <name>Initial Test</name>
    </overview>

    <settings>
        <tags>mobileBrowser</tags>
    </settings>

</scenario>
  1. 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! πŸš€

⚠️ **GitHub.com Fallback** ⚠️