Is it possible to extract a value or text from a RadDropDownList? In my test when I use element highlighting I see the a RadDropDownList and a span option.
The RadDropDownList has an extraction for things like item count and visibility but not text or value (which to me would be the most common). The span has an option to extract value, but the only real reason to use the span is because it is part of the drop down list control as it is rendered (Classic mode). One problem with the span is that this creates another element on top of the drop down list element which makes tests harder to maintain and understand, and it isn't associated with the drop down list in any way. The major problem, however, is that the recorder creates find logic with no relation to drop down list and even uses the text content to identify the span. This makes the test fragile and prevents us from reusing an extraction step for tests that use different values in the drop down list.
Am I missing something here? If this just isn't going to work like I think it should is there a better way to accomplish this? Would it be possible to create find logic to locate a span element based on a parent with a specific ID (the ID of the drop down list)?
Hello,
I was wondering if it was possible to connect to a pop-up window and return connection to the original window without having to close the pop-up window? Essentially, I am clicking a link in my original window and it launches a new tab (chrome). The recorder recognizes this and puts a connect to pop-up step. I do a few actions in that tab; but, instead of closing I want to leave that tab open and go to the original window and do a few actions and then return to that pop-up window that was opened and do a few more actions, then close that pop-up window at the end of the test.
What I have tried so far was putting a connect to pop-up to the new tab that is launched, and I tried putting a connect to pop-up step with the original partial URL, but it doesn't seem to actually switch control back to the original window.
Thank you!
public
override
void
OnBeforeTestStarted(BeforeTestStartedArgs args)
{
string
defaultEnvName =
"xxxx"
;
string
envName = args.Context.Params.ContainsKey(
"environment"
) ? args.Context.Params[
"environment"
] : defaultEnvName;
}
I am evaluating test studio, but I am having trouble. I have two apps that need to interact with each other during the test case. One is the primary app (app1) and the other is a hardware emulation app (app2).
1. App2 needs to open and load a script and begin it's run,
2. App1 opens
3. App1 begins to communicate with app2 (which starts running the script that was previously loaded).
4. If the script runs successful, app1 will open show a successful connection to app2.
Hope that is not too confusing.
In this scenario, when I run test studio to complete the first step, app2 closes. App2 needs to stay open and wait for app1 to run.
How can I create a test for this scenario?
We use Jenkins to run Test Studio tests against our API following publishes and I'm getting the following error:
1/27/2020 11:04:29 AM' - System.TimeoutException: Wait for condition has timed out\r\n at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)\r\n at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)\r\n at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)\r\n at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)\r\n at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)\r\n at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)\r\n at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)\r\n at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)\r\n------------------------------------------------------------\r\n'1/27/2020 11:04:29 AM' - Test completed!\r\n
I don't think the tests are running at all. We have logging on the API and it's not logging any attempts that would have been generated by this process. The API is fine when I access it directly and with our applications. This is happening in multiple environments so it's not confined to one API server. I've tried shutting down and restarting the agent, but that didn't help. How can I go about troubleshooting this further?
Hello
I'm trying to find documentation around how to use ArtOfTest.Runner to execute tests remotely distributed across machines.
We're planning to use Azure Devops which I've setup the agents.
I've been unable though to find using CLI how to have tests execute distributed in a remote fashion.
We have 4 remote servers (1 controller, 3 runtimes)
I'm hoping to be able to distribute execution of a test list across those machines using ArtOfTest.Runner.
We've encountered quite a frustrating issue.
One of our testers using Test Studio was testing some changes with an existing test. They were prompted to "push to the scheduling server" and accidentally clicked yes.
Now despite the fact we've removed those changes from his file, and not been prompted to push to scheduling server. The changes never made it to source control either. Our remote servers continue to run these changes the user put in.
How can I get our tests on remote servers back to not using that test the user pushed?