This is a migrated thread and some comments may be shown as answers.

Visual Studio not run tests

4 Answers 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adriane
Top achievements
Rank 1
Adriane asked on 01 Aug 2012, 08:08 AM
Hi,

I have a exported telerik Tests from Test Studio into Visual Studio, but I cannot run the tests.In Test Studio, they run, in Visual Studio, the same test gave the message following.
Can yomeone tell me, what I have to to in Visual Studio to run the tests?

------------------------------------------------------------
'01.08.2012 10:02:53' - Using .Net Runtime version: '4.0.30319.269' for tests execution.
'01.08.2012 10:02:53' - Starting execution....
'01.08.2012 10:02:53' - Detected a Silverlight Test. Setting EnableSilverlight=True
'01.08.2012 10:02:53' - Failure detected during execution. Details:
------------------------------------------------------------
'01.08.2012 10:02:53' - System.ApplicationException: Exception thrown attempting to launch Silverlight application. Please make sure Silverlight is properly installed and you are able to launch it. ---> System.ArgumentException: Invalid path to Out-Of-Browser application: http://dmm-vm-prod/MediaCenterTRANS/
   at ArtOfTest.WebAii.BrowserSpecialized.SilverlightOutOfBrowser.SilverlightOutOfBrowserActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String arguments, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.SilverlightOutOfBrowser.SilverlightOutOfBrowserActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String arguments, 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)
------------------------------------------------------------
'01.08.2012 10:02:53' - Test completed!

 

4 Answers, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 01 Aug 2012, 05:10 PM
Hello Adriane,

It appears that Visual Studio cannot find the target Silverlight out-of-browser application at the location http://dmm-vm-prod/MediaCenterTRANS/. I recommend opening the Configure Silverlight App dialog in the VS plugin and resetting the path to the application. Browse for the Local Application Directory or drag and drop a link to your Silverlight application, and you should be able to run the test. If you have changed machines, Test Studio may no longer have access to a local copy of the out-of-browser app. If this is the case, you may need to create a local copy and configure the test to use that copy. Please let us know if we can assist you further.

All the best,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Adriane
Top achievements
Rank 1
answered on 02 Aug 2012, 08:51 AM
Hi Byron,

we do not have a out-of-browser application, just the telerik settingsbutton is named as this, where I put in the URL that I want to open.
I did not change the local machine.

So what I did, create Project and Tests in Telerik Test Studio, exported it to visual studio.
Then open the project in VisualStudio and then want to play a test from there. The test is running, if I start it from Telerik Test Studio, but if I start it from Visual Studio it is not. And I got the error below.

Best regards,
Adriane
0
Byron
Telerik team
answered on 02 Aug 2012, 04:12 PM
Hi Adriane,

If your application is in-browser, you do not need to use the Out of Browser dialog to set the address. You can simply navigate to the location of the in-browser application in the recording browser. This will create a navigate step. When Test Studio records or executes against a Silverlight in-browser application, it automatically detects Silverlight and automates accordingly. You can uncheck the first checkbox in the 'Configure Silverlight Out-Of-Browser Options' dialog and record a step at the beginning of your test that navigates to the address of the in-browser application. 

If this does not resolve your issue, we will need more information about your test scenario. Please provide us with a copy of your test and access to your application. Also, please provide your failure log . You can export this to file from the failure tab for your test and add it to a .zip archive. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here. A Jing video demonstrating the issue may also help us to better understand what is happening. Thanks for providing the information we need to best advise you.

Regards,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Adriane
Top achievements
Rank 1
answered on 03 Aug 2012, 07:56 AM
Hi Byron,

if we do not check the optionbox you see in the screenshot Telerik records no Silverlight Step in SilverlightControls, so that it could work.
But I found the problem, in VisualStudio there is another way of choosing browser and there was set "out-of-browser", I changed it and it also works.

If I check it, it works for the most times... not everytime... but this is another support case here.
Sometimes it recordes correct and we can replay it, sometimes it records nothing and sometimes it records crude steps, that it crashes if we replay it... so we are searching for that problem in another support ticket.

So this here can be closed.
Best regards,
Adriane



Tags
General Discussions
Asked by
Adriane
Top achievements
Rank 1
Answers by
Byron
Telerik team
Adriane
Top achievements
Rank 1
Share this question
or