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 of the BrowserApplication class. For additional information on these methods, refer to the API documentation.
    WebBrowser.Close()
  • If you have tested a mobile native application, use the CloseApp method of the MobileDevice class.
    For example, type the following:
    device.CloseApp()
  • Add the Agent.DetachAll() statement to the test script. For example, to release a device when all tests within a test script have completed, type the following into the test script:
    [-] ScriptExit(BOOLEAN bException)
      [ ] //Release the mobile device
      [ ] Agent.DetachAll()
      [ ] 
      [ ] DefaultScriptExit(bException)
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 Classic 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.