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, type the following into the test script:
[-] ScriptExit(BOOLEAN bException)
[ ] // To test a mobile web application:
[ ] // WebBrowser.Close()
[ ] // To test a native mobile application:
[ ] // Device.CloseApp()
[ ] // Alternative for both WebBrowser.Close()and Device.CloseApp():
[ ] // Agent.DetachAll()
[ ] WebBrowser.Close()
[ ] 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.