Contributions
Re: How to force stop a CBT run session apart from "Sys.Browser().BrowserWindow(0).Close()"
I have "Stop current item On error" and "Stop current item on object recognition" error enabled. But this doesnt end the CBT session when test case 1 fails with some error, from local next test case is already triggered to CBT, and gets queued. I have opened a ticket with Smart Bear for this. Hope I find a solution. Any suggestions from here?2.1KViews1like4CommentsRe: How to force stop a CBT run session apart from "Sys.Browser().BrowserWindow(0).Close()"
Thank you for the help. I will see if "Stop on error" setting stops the CBT run session. Was this working a week before? because I remember the tests being queued even after failing. But anyway I will have a look again.2.1KViews1like5CommentsHow to force stop a CBT run session apart from "Sys.Browser().BrowserWindow(0).Close()"
I am running a few tests on web application. Assume there is situation where remote connection was successful but for some reason browser did not open ( I have observed this situation), now how do I end this CBT session via code( manually I know how to stop this from crossbrowsertesting site) I want to stop the session in the place I have marked in RED below def CBT_LaunchCode(server,capabilities,url): Browsers.RemoteItem[server, capabilities].Run(url) if (Sys.Browser().BrowserWindow(0).Exists): Log.Message("Continue with the test") else: #Stop CBT instance here via some code Browsers.RemoteItem[server, capabilities].Run(url) #then reconnect hereSolved2.2KViews0likes7CommentsAdding a capability in scalable tests to pick up the latest version of browser in CBT
In local machine, Automatic updates on Chrome and Firefox will be active and hence automatically the new version is updated whenever there is a release. When I run scripts in Test Complete locally , it picks up the latest version of browser and performs execution when I have not specified any version in Launch code. Whereas in CBT, When I run the remote browser code, specifying the browser version becomes mandatory, can we develop a feature where version is optional and when not specified it picks up the latest version of browser and performs the execution on CBT495Views1like0Comments