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
38 Answers, 1 is accepted
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();
}
}
}
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
Thanks
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 ?
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
Test Studio Trainings
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
Test Studio Trainings
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
Test Studio Trainings
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
I have sent a mail from my mail.
Please send the link there.
Thank you.
Regards,
Boyan Boev
Telerik
Test Studio Trainings
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
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
Test Studio Trainings
Telerik version is 152.9.23.0.
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
Test Studio Trainings
Hi Boyan,
Only difference is I have not installed Visual studio in the VM machine.
Regards,
Stephly
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
Would really appreciate if you can help me on this.
Thanks,
Stephly
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
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
Test Studio Trainings
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
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
Test Studio Trainings
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
I have a location to your mail where you can upload the project.
Thank you!
Regards,
Boyan Boev
Telerik
Test Studio Trainings
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
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
Test Studio Trainings
Hi Boyan,
Has there been any update to this?
Thanks.
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
Test Studio Trainings
Hi Boyan,
Were you able to reproduce the issue? Any update on this?
Thanks,
Stephly
No, unfortunately there is no update about this issue.
We are still not able to reproduce this issue.
When I get further information I will update this thread.
Thank you for your understandings.
Regards,
Boyan Boev
Telerik
Test Studio Trainings
Hi Boyan ,
For our project, we have set the policy setting "Set the Turn off Page Zooming Functionality" (Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Internet Explorer) to "Enabled" in IE group Policy Settings.
We found that, by reverting this settings back to "Not configured" and also by installing Visual Studio in that machine, we are able to fix the issue.
Regards,
Stephly
I am very happy to hear that!
I have added Telerik points to your account for sharing that information.
Thank you!
Regards,
Boyan Boev
Telerik
Test Studio Trainings
Hi Boyan,
The above solution solved our problem but we had to install Visual studio inorder to make it work. Does that mean it has a dependency on Visual Studio? Is there anything we can do to avoid this dependency? Please let me know. We really don't want VS to be installed as a prerequisite for the application to work.
Thanks,
Stephly
Thank you for sharing that information.
There shouldn't be any dependency on Visual Studio.
I will pass this information to our developers.
Thank you for the feedback.
Regards,
Boyan Boev
Telerik by Progress
Test Studio Trainings
Steps to Reproduce:
1. Create a console application in the Development machine. Add reference to ArtOfTest.WebAii dll.
2. Write a Program that tries to open up a google Page. (Please use the cs file attached. Was taken from one of the samples found in Telerik Forum )
3. Build the solution and deploy this application in a clean Machine/clean VM which has .net 4.6 and Telerik Framework installed. (Telerik Version 152.9.23.0) Make sure Visual studio is not installed in the Clean machine.
4. Do all the setting that has to be done in IE as per Telerik IE settings
5. Try to run the Test Application in this clean machine >> Observed that the Google page doesn't open up, and it ends up in a timeout exception
6. Step 5 works if we install VS in this clean machine.
Boyan, could you please check and let me know if you can reproduce this at your end?
Thanks,
Stephly
Hi Boyan,
As Stephly mentioned we are unable to run the test (which opens google.com) on a machine which doesn't have visual studio installed on it. Its clear that the visual studio installer puts in some components which is required for running the tests. After installing visual studio, i deleted the install folder under "c:\program files (x86)\microsoft visual studio 14.0" and i was able to run the tests. So the tests depend on some change the visual studio installer makes on to a clean machine (registry, etc).
To get to the root of the issue i stopped at different points during installation, to see which part of the VS installation is required. And I found that during the installation of "visual studio core features", the tests started running. There has been a lot of changes that happened to the GAC and System Registry during this point in time, but i am not able to find which one is really required for running the tests.
Any help in this regard is very much useful for us.
Thank you for the detailed information. I am now setting up a clear environment in order to reproduce this.
I will update this ticket as soon as possible.
Thank you for your understandings.
Regards,
Boyan Boev
Telerik by Progress
Test Studio Trainings