Telerik Forums
Test Studio Forum
1 answer
161 views

I have been running into problems with our automated test scripts failing intermittently. I have narrowed it down to when we try to run the tests using remote execution. I have created a simple demo test which runs successfully on the local VM (Machine A which has Test Studio Functional installed) but when I try to run that same test list on the remote execution server (Machine B which has Test Studio Run-time installed), the test "hangs" and eventually fails.

 

I have attached the test project along with the execution server log for you to look at. There is also a video demonstrating the issue at this link: http://www.screencast.com/t/Ys1YAmvdICl

 

STEPS TO RECREATE:

1. Open Test Studio and open the "Google_Test" folder

2. Select "Test Lists" -> "All Browsers" Test List -> "Run List"

3. The test executes and passes

4. Select "Run List Remotely" and run the same test list on a remote execution server

5. The test runs much slower and even hangs after awhile, causing the script to fail eventually (see video at this link: http://www.screencast.com/t/Ys1YAmvdICl)

Ivaylo
Telerik team
 answered on 28 Apr 2015
1 answer
49 views
I need a script that I'm assuming can only be done via a coded step.  What this needs to be is:

1) Validate status code of a url.
2) Validate the url of that status code (internal redirect)
3) Make this script data driven.

I've attached an image explaining what I am attempting.
Cody
Telerik team
 answered on 27 Apr 2015
3 answers
148 views
Hi,
 
How can I retrieve the "HTTP Status Code" in a coded step? I can't find any documentation on it.

Thanks for any help given.
Cody
Telerik team
 answered on 27 Apr 2015
8 answers
237 views

I have telerik test studio edition on one machine(Machine A) , using which I develop all my test cases . Now I have a run time edition on another machine(Machine B) in the same domain.I  configured storage server , scheduling server and started execution server on machine B.

Now i try to access my machine B through run test lists remotely option in machine A. But when ever I click on check button next to machine name option in run lists remotely, it throws an error message as "Service not found". Also attached the screenshot for the same.

Please let me know how i can make use of run time edition as I want to use license edition on my nightly build .So want to try on one test machine before.

Please help me out with this as its highly urgent for me.

Another important question : why its written in the system requirements doc of installation of telerik licenses that " User Account Control" should be set to never notify.

Is it required only for the installation or it has to be like forever. Because my company policy doesn't allow it to be like that for ever.

 

Thanks in advance

 

Cody
Telerik team
 answered on 27 Apr 2015
5 answers
89 views

I have 2 remote windows machines that I would like to run tests on. I have installed Firefox on one and Chrome on the other. I also uninstalled IE on those machines as the Firefox and Chrome would be the default browser. When I check the status of the machines in the Test Studio Ultimate in the Scheduling section of the ribbon, it shows Firefox and IE (or Chrome and IE) installed. How do I get the Test Studio real-time execution agents to stop reporting that IE is on the machines. This affects running lists remotely as I will get the following error:

 

4/20/2015 1:46:36 PM' - System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)

 

 

Ivaylo
Telerik team
 answered on 27 Apr 2015
4 answers
165 views

Greetings,

 

I've disconnected my test studio project from VSO and deleted the VSO project because I want to move it to a different VSO project.

Now when I click the Connect To Source control button, nothing happens, but the log says that the project doesn't exists.

It's trying to connect to the old project that doesn't exist. It won't give me the dialog box to reconfigure the source control.

Thanks

Wade

 

Ivaylo
Telerik team
 answered on 27 Apr 2015
5 answers
95 views

Hi, 

I'm following the Data Driven Find Expressions mentioned by you on the below mentioned link
http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/data-driven-find-expressions

But I got the following error:

(CS1061) 'TestStudio_demo.Pages' does not contain a definition for 'TelerikExtensionsForASP' and no extension method 'TelerikExtensionsForASP' accepting a first argument of type 'TestStudio_demo.Pages' could be found (are you missing a using directive or an assembly reference?)

I have followed the exact steps mentioned in the above link. Please help me with this.

Thanks in Advance.


Cody
Telerik team
 answered on 23 Apr 2015
1 answer
249 views

Hi All, I'm new to Telerik Test Studio so I apologize if this has already been asked.

When recording a web test, we have a requirement to start the browser in private mode first in order to clear the cache and prompt for appropriate credentials to the site:

  • InPrivate Browsing from IE 
  • New Private Window from Firefox
  • Incognito Mode from Chrome

 How can this be triggered via the Test Studio recorder? 

 

Any answers that can be provided would be greatly appreciated. 

 

Cody
Telerik team
 answered on 23 Apr 2015
6 answers
164 views
Hi,

I'm having this problem wherein I couldn't connect on a pop up browser.

At first instance the script runs without any error, but once the next iterations are run the step is failing already.

I already tried shortening the URL address, clicked on PartialURL tick box but to no avail.

what could be causing this error?

trying to add a jing file but it exceeds the allowed 2mb attachment file size.

if there's an email add where i can send the file to kindly advise. thanks.
Ivaylo
Telerik team
 answered on 23 Apr 2015
1 answer
93 views

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.

Ivaylo
Telerik team
 answered on 23 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?