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

4 posts, 0 answers
  1. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 24 Jan Link to this post

    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

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 28 Jan Link to this post

    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
     
  3. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 28 Jan in reply to Boyan Boev Link to this post

    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.

  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 29 Jan Link to this post

    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
     
Back to Top