If you want the recovery system to perform additional steps after it restores the default base state, record a new test case based on no application state and paste it into the declaration of the main window of your application.
window BrowserApplication WebBrowser locator "//BrowserApplication" // Go to Options -> Application Configurations... to switch the browser // Alternatively set sDir and sCmdLine if you want to start a custom browser // The working directory of the application when it is invoked // const sDir = "." // The command line used to invoke the application // const sCmdLine = "" // The start URL const sUrl = "http://demo.borland.com/InsuranceWebExtJS/index.jsf" const bCloseOtherTabs = TRUE // The list of windows the recovery system is to leave open // const lwLeaveOpenWindows = {?} // const lsLeaveOpenLocators = {?} BrowserWindow BrowserWindow locator "//BrowserWindow" DomListBox QuickLinkJumpMenu locator "SELECT[@id='quick-link:jump-menu']" // ... // Recorded actions, which should be performed whenever the base state of the application is restored Basestate() WebBrowser.BrowserWindow.QuickLinkJumpMenu.Select("Auto Quote")
window BrowserApplication WebBrowser locator "//BrowserApplication" // Go to Options -> Application Configurations... to switch the browser // Alternatively set sDir and sCmdLine if you want to start a custom browser // The working directory of the application when it is invoked // const sDir = "." // The command line used to invoke the application // const sCmdLine = "" // The start URL const sUrl = "http://demo.borland.com/InsuranceWebExtJS/index.jsf" const bCloseOtherTabs = TRUE // Overrides the browser type of the application configuration STRING sBrowserType = BROWSER_TYPE_SAFARI // Overrides the connection string of the application configuration STRING sConnectionString = "host=macmini1702.microfocus.com" // The list of windows the recovery system is to leave open // const lwLeaveOpenWindows = {?} // const lsLeaveOpenLocators = {?} BrowserWindow BrowserWindow locator "//BrowserWindow" DomListBox QuickLinkJumpMenu locator "SELECT[@id='quick-link:jump-menu']" // ... // Recorded actions, which should be performed whenever the base state of the application is restored Basestate() WebBrowser.BrowserWindow.QuickLinkJumpMenu.Select("Auto Quote")
[-] window MobileDevice Device [ ] locator "/MobileDevice" [ ] [ ] // Go to Options -> Application Configurations... to switch the mobile device [ ] // Alternatively set sConnectionString [ ] [ ] // Overrides the connection string of the application configuration [ ] STRING sConnectionString = "deviceName=MotoG3;platformName=Android;app=C:\\Temp\InsuranceMobile.apk" [ ] [ ] // The list of windows the recovery system is to leave open [-] MobileTextField Email [ ] locator "@resource-id='silktest.insurancemobile:id/email'"