We were having trouble in a test, getting RadAsyncUpload to open the control in the same directory (where the test is located) across different machines.
It seems that the browser remembers where the open dialog was the last time it was opened. All a tester had to do to cause the test to fail was a) move the test to a machine where the directories were slightly different or b) open any save as or upload dialog on the machine before running the test. Either way, the OpenFile dialog from RadAsyncUpload would be in the wrong location and not be able to open the file expected.
The solution, though it took a while to discover, is easy to implement.
1. Edit the RadAsyncUpload step in code - creating a coded step.
2. Create a full-path by combining the built-in Deployment directory with the sub-directory (if not in the project directory) and the expected file to upload
3. Open the control programmatically with the full-path
Sample Code:
Dim targetFile as String = "Spreadsheet Import Test File.xlsx"
Dim targetDir as String = "Ver_x\Group Test" ' path beyond the project directory
Dim ssFile as String = System.IO.Path.Combine(Me.ExecutionContext.DeploymentDirectory, targetDir & "\" & targetFile)
Console.WriteLine("ssFile=" & ssFile)
' RadAsyncUpload('ctrlGroupUploadWindow_RadAsyncUpload1'): upload file 0
Pages.GroupTestForm.FrameCtl00.CtrlGroupTestWindowRadAsyncUpload1Div.Upload(0, ssFile)
' We use this in the 15 tests that need the same file - and it works without fail no matter which machine or which directory was last opened.
Hi Telerik Team,
requirement is like I want to configure system(windows )login details to Telerik Test studio.Please let me know how I can configure.
Thanks,
Danamma
hey,
i have a problem with dynamic frames that tool can't recognize each time i run the script gives me same error.
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=t4,name=Frame_1,src=mysite,UseQuery:False]' timed out. Error: Wait for condition has timed out
i used the charcter (~) before BaseURL , id and Name as mentioned in http://docs.telerik.com/teststudio/getting-started/test-recording/Frames
but still didn't work correctly.
hope anyone can help me.
Thanks
When I run a performance tests it opens the URL, completes the first part of the test but when I try to get past our shopping cart (checkout) it throws an error either the page cannot be displayed or the proxy settings failed.
We work WITHIN a proxy and the application is within our firewall, although I tried this with our production site and received the same error.
The functional test works just fine and passes all pages as it goes through our test site.
After running the test, my proxy settings in IE have changed and I have to go back in to reset them otherwise I cannot connect to anything using IE (10)
If the functional test works without a hitch and the performance test uses the same test -then why is there an issue?
I also tried recording a new test, but with the same result.
Of course, I cannot find anything in the forums about this issue. This, along with the inability to connect to TFS2013 is making Test Studio look bad in my evaluation (we are going through the trial license to assess value).