3 in 1 Scenario - TestlumFramework/Testlum GitHub Wiki

3-in-1 Scenario

Testlum can also be used in 3-in-1 scenarios. You can use web, mobilebrowser and native in one scenario and run it in one scenario. To start, you just need a raised Appium server, Android studio, and a configured config file.

First of all, for our three-in-one test, make sure that the app is installed on the emulator and everything is running, let's start with a test that starts with the app. We open and write inside to what point we want to reach the test. This has the advantage that you can test immediately in a mobile application, mobile browser, and in a web browser, it makes it possible to cover checks without difficulty.

<native comment="Start running tests in mobile app">
  
    <click comment="Login with Google" locator="mobile.withGoogle"/>
  
</native>

After we write a test for a native application in the emulator, you can also continue, for example, immediately using the web, that is, in our test, it will already continue from a regular browse. You just need to do the same, open and close the web, and fill inside with your test until the moment you want to test.

<web comment="Continue running tests in web">

    <click comment="Choose 'login' option" locator="todoistWeb.loginWeb"/>

<web>

And now you can continue your test in a mobile browser, in which you already have a running emulator, and you just need to open the mobilebrowser and write a test inside.

<mobilebrowser comment="Continue running tests in mobile browser">
   
    <click comment="Choose 'menu' option" locator="todoistMini.menu1Mini"/>

<mobilebrowser>

We also have a 3-in-1 test script already written, and you can watch it on our YouTube channel.

Watch the video

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