Releasing a Mobile Device After Replay

Release a mobile device after replay to enable other Silk Test users to test on the device.

To manually release a mobile device after replaying is complete, you can also perform one of the following:
  • If you have tested a mobile web application, use the Close method or the CloseSynchron method of the BrowserApplication class. For additional information on these methods, refer to the API documentation.
    'VB .NET code
    WebBrowser.Close()
  • If you have tested a mobile native application, use the CloseApp method of the MobileDevice class.
    For example, type the following:
    'VB .NET code
    Dim mobileDevice = _desktop.MobileDevice()
    mobileDevice.CloseApp()
  • Add the Agent.DetachAll() statement to the test script, to release the device after replaying VB .NET tests.
A mobile device is automatically released if one of the following conditions is met:
  • The Open Agent is closed.
  • The test process stops during unattended testing. The device is only released by this action when parallel testing is enabled.
  • Silk Test Workbench is closed. The device is only released by this action when parallel testing is enabled.
Note: Releasing a mobile device will close the application under test (AUT) on the mobile device.