Framework crash when navigating to URL

39 posts, 0 answers
  1. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2014 Link to this post

    We are running Silverlight tests through NUnit on Internet Explorer and we have a test that works perfectly fine on most machines.

    However we have one machine running windows 7 Enterprise which seems to just crash when it navigates to a page. We get a c++ runtime error (see attached) and the browser crashes. I have also attached a screenshot showing what runtimes we have installed.

    I'm 100% sure its not our application as we can navigate to the page without issue outside the test but as soon as the framework tries to navigate to the page it has issues. It opens the browser without issue and then tries to navigate to the page as soon as the silverlight portion loads it just crashes and we get that error.

    As this works fine on all our other machines (also windows 7) I'm guessing its some sort of configuration or set up/dependency issue. I've made sure its in a trused zone and security is low.

    I have tried to re-install the Telerik framework (latest version) but it doesn't make any difference. Are there any security settings I should look out for?
    Is there some sort of browser extension that gets installed that may be disabled ?

    I'm really stuck so any ideas how to move forward are appreciated.

    My next step will be to decompile the code and step through to see exactly what is breaking inside the framework, I'll post my findings in this thread.

    Thanks
  2. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2014 in reply to donovan Link to this post

    I hope this helps this is where it fails while waiting for the silverlight control 

    public static void WriteCommandToPipe(PipeCommand command, PipeStream pipe, bool waitForDrain)
    {
    byte[] binary = command.ToBinary();
    object pipeSync = PipeCommunication.GetPipeSync(pipe);
    lock (pipeSync)
    {
    pipe.Write(binary, 0, (int)binary.Length);
    if (waitForDrain)
    {
    pipe.WaitForPipeDrain();
    }
    }
    }
  3. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2014 Link to this post

    Here is the Telerik trace
  4. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2014 Link to this post

    Searching through your forums I found this which looks similar 

    http://www.telerik.com/forums/timeoutexception-on-activebrowser-launchnewbrowser

    But the link at the bottom of this page is no longer working.

    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/installation-problems/failed-pia-deployment.aspx

    Also we are running as administrator on this machine and the UAC is turned off
  5. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 30 Jul 2014 Link to this post

    Another thing Im running inside a VM

    Thanks
  6. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 31 Jul 2014 Link to this post

    Can I get some help on this ?

    Its definitely the VM works fine on all other machines are there any restrictions or special steps I need to follow to get this working on a VM ?

  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 01 Aug 2014 Link to this post

    Hello Donovan,

    Thank you for contacting us.

    Please install our latest internal version of Testing Framework and let us know the results.

    You can download it from here.

    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
     
  8. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 04 Aug 2014 in reply to Boyan Boev Link to this post

    Thanks but after installing that we still have the same issue.
  9. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 07 Aug 2014 Link to this post

    Hi Donovan,

    I am sorry to hear you are still experiencing this issue.

    In order to assist you best we need to reproduce this behavior on our end. Please grant us a direct access to your application so we can try to replicate the problem and give you a solution.

    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
     
  10. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 10 Aug 2014 in reply to Boyan Boev Link to this post

    This is not an issue with our application its an issue with the framework running inside a VM. It never gets to our application. 
  11. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 13 Aug 2014 Link to this post

    Hello Donovan,

    I understand that, however we need to reproduce it somehow locally.

    We have no problem with some others SL applications in a VM.

    We really need an access to your application and your test project. Is that possible?

    Have configured the browser according this article?

    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
     
  12. donovan
    donovan avatar
    15 posts
    Member since:
    Jun 2011

    Posted 13 Aug 2014 in reply to Boyan Boev Link to this post

    The issue is if I connect to the app on that server from my machine it works fine.

    It only fails if you run the Framework inside the VM. Have you tried that ?

    I may be able to send you the VM so you can see for yourself but it may be quite large. Alternatively if you can give me access to one of your VM's I can try replicate it there. Can you please give me your email address so I can send you a download link.

    Thanks
  13. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 14 Aug 2014 Link to this post

    Hello Donovan,

    I have sent a mail from my mail.

    Please send the link there.

    Thank you.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  14. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 25 Jan Link to this post

    Hi, 

    Would like to if there was any solution to this. I run into the same problem when i try my application in the VM.

    Thanks.

    Stephly

  15. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 25 Jan Link to this post

    Hi Stephly,

    What exactly issue do you experience?

    Please give us more detailed information about your scenario (screen shots, video, detailed description) in order to assist you best.

    Also what version of Test Studio do you use?

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

    Posted 27 Jan Link to this post

    We are running Silverlight tests through NUnit on Internet Explorer and we have a test where it navigates to the Webpage and executes a command to take the Screenshot. 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. I'll attach a copy of how the installed folder looks like.
    Telerik version is 152.9.23.0. 
  17. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 01 Feb Link to this post

    Hello Stephly,

    Are there any differences between your local machine where the tests pass and the VM where they fail?

    If everything is the same they should work on the VM correctly.

    Could you please send us the test project so we can review it?

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

    Posted 01 Feb in reply to Boyan Boev Link to this post

    Hi Boyan,

    Only difference is I have not installed Visual studio in the VM machine. 

    Regards,
    Stephly

  19. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 02 Feb Link to this post

    Hi Boyan,

    If i give it as                

    Manager.LaunchNewBrowser(BrowserType.InternetExplorer,false);

    it runs into an exception 

    System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object
    But if i run this on development machine, no such exceptions are thrown. 

    Would really appreciate if you can help me on this.

    Thanks,
    Stephly

  20. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 03 Feb Link to this post

    Hi Boyan, 

    Can you try this at your end. 

    Create a simple project . I used your example to create an application which calls www.google.com. Works fine in the development machine. Create a setup project for the same and add the project output of sample solution to this. Try installing the setup in a new machine which doesnt have VS, but has .net4.6 , Telerik test studio. Let me know, if you can run the application and is able to see google site opening.

    Thanks,
    Stephly

     

  21. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 04 Feb Link to this post

    Hello Stephly,

    I am not sure if I understand exactly what you are doing.

    First you create a sample test project which runs fine and after that you run the same project on another machine?

    Could you please give us more detailed information about the second machine what exactly you are doing.

    Some Jing video would really help.

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

    Posted 04 Feb Link to this post

    Hello Boyan,

    I'm attaching the Zip files of the project and the setup file that i created. 

    TelerikTest contains the sample project which navigates to Google.com. Setup1 is a setup project for this teleriktest project. 

    In the second machine, I wont have visual studio installed. Thats why I'm creating a setup Project.(msi file) and use this to install my exe in the new machine.  If I try to run this exe, (As administrator) it displays only a blank page.
    I tried making a Jing video. Unfortunately i'm not able to upload it. 

    Thanks,
    Stephly

  23. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 04 Feb Link to this post

    PFA.Could not upload the whole project due to size limit
  24. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 10 Feb Link to this post

    Hi Stephly,

    I am not sure what this msi does? 

    In order to execute our test on the other machine you just need to install Telerik Testing Framework on it. Without this installation you cannot run the tests.

    Have you installed it on the second machine?

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  25. stephly
    stephly avatar
    19 posts
    Member since:
    Dec 2015

    Posted 10 Feb Link to this post

    Hi,

    Yes, telerik framework is installed in the second machine. Is there a way I can send you the entire project. Couldnot do it due to the size limit.

    Thanks,

    Stephly

  26. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 15 Feb Link to this post

    Hello Stephly,

    I have a location to your mail where you can upload the project.

    Thank you!

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  27. Maurice
    Maurice avatar
    2 posts
    Member since:
    Feb 2016

    Posted 15 Feb Link to this post

    Hi,

    I'm also working on this, and am able to replicate the same error. Here's what I've tried (using the "getting started" project linked above):

    • Running the project from VS2015 on my development PC - success
    • Running the executable output built from VS2015 on my development PC - success
    • Run on a deployed environment from executable (without VS2015 installed and with no network access, but with Telerik Test Studio installed) - I receive a timeout exception waiting for the browser to connect (event viewer log attached)
    • Running an executable which is otherwise the same but using Chrome - success (i.e. Chrome attempts to connect to Google).

    This seems to point to the issue occurring due to IE configuration settings, however since I have followed the guide at http://docs.telerik.com/teststudio/getting-started/configure-your-browser/internet-explorer I am not sure what else could be different between the deployed PC and my development machine.

     

    Please advise as to any next steps to find the root cause of this issue

  28. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 18 Feb Link to this post

    Hello Maurice,

    Thank you for the project.

    I am now setting up the environment to test this scenario.

    I will update this thread accordingly.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  29. Maurice
    Maurice avatar
    2 posts
    Member since:
    Feb 2016

    Posted 07 Mar in reply to Boyan Boev Link to this post

    Hi Boyan,

    Has there been any update to this?

    Thanks.

  30. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 10 Mar Link to this post

    Hello Maurice,

    Unfortunately we cannot reproduce this.

    I am now setting a completely new environment in order to reproduce this.

    Thank you for your patience.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top