End your current Appium session

When you connect to a mobile device, a new Appium session starts. Mobile Engine 3.0 enables you to force the end of an Appium session to start a new session with a clear state.

Use the Module End Appium Session to end your current Appium session.

This Module is part of the Standard subset. You can find it under Standard modules->TBox XEngines->Mobile.

End your current Appium session

To end your current Appium session, follow the steps below:

  1. Specify the necessary test configuration parameters to establish a connection with the device.

  2. Add either the Open Mobile App TestStep or the OpenUrl TestStep as a first TestStep in the execution.

  3. Drag and drop the End Appium Session Module onto your TestCase.

  4. Move the Module after a TestStep that should be the last one in the current Appium session.

In this example, you perform the following actions:

  • You start a new Appium session and open the URL http://sampleapp.tricentis.com/101/app.php.

  • You interact with the mobile controls on the screen.

  • In the End Appium Session TestStep, you use the Module End Appium Session to end your current Appium session.

  • You start a new Appium session and interact with the same screen.

End Appium Session Module in a TestCase