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

Unable to test from a different Machine. Throws Wait for Condition has timed out exception

3 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
stephly
Top achievements
Rank 1
stephly asked on 25 Jan 2016, 05:04 AM

Hi, 

The scenario is , I have a silverlight application and I have created testcases using Telerik Framwork. I'm able to run the tests in my development machine. I tried to create a Setup project for  the same. I want to run the test cases from this setup which would get installed in my machine. its possible from my current development machine. Now i tried to install the setup in a different machine, where i have telerik Framework , .net 4.6 and silverlight installed. VS is not a prerequisite. But here I run into  a "Wait for condition has timed out exception" when the LaunchNewBrowser() is executed.

Here is my sample code:

// Initialize the settings
var settings = GetSettings()
settings.Web.EnableSilverlight = true;
settings.Web.DefaultBrowser = BrowserType.InternetExplorer;
settings.Web.BaseUrl = BaseUrl;
Initialize(settings);
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(BaseUrl);
 

Can someone help me with this.

Thanks in Advance,

Stephly

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 28 Jan 2016, 07:35 AM
Hi Stephly,

Have you installed the Telerik Testing Framework on the other machine?

Also how do you run the tests? Do you use some third party tool?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
stephly
Top achievements
Rank 1
answered on 28 Jan 2016, 08:24 AM

Hi,

yes i have installed telerik test framework. 

We are running Silverlight tests through NUnit on Internet Explorer and we have a test where it navigates to the Webpage and runs the test. The webpage is hosted on a localhost. We are creating a setup project which will have an exe file which calls all these test cases. If i install this setup project on my development machine and runs the exe as an administrator the tests are passed. But if i install the same setup project in a new machine (VM) which has telerik Teststudio, .net 4.6 , silverlight installed, the command times out at the line                " Manager.LaunchNewBrowser(BrowserType.InternetExplorer); ". Please note that i have not installed VS in this new machine. My requirement is i should be able to run these test cases without VS.

0
Boyan Boev
Telerik team
answered on 29 Jan 2016, 03:07 PM
Hello Stephly,

This is a duplicate of this thread.

Let's continue the discussion there.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
stephly
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
stephly
Top achievements
Rank 1
Share this question
or