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

Execute tests in IE always fails

8 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fran
Top achievements
Rank 1
Fran asked on 08 Jun 2017, 08:26 PM

Hello - I am a new user - just got the trial version today. I am a QA manager, not a developer - so please be gentle :)

I have Test Studio version 2017.2.530.0, and was able to record a very simple test to just navigate to a website and clink a link. When I execute this test with Firefox or Chrome, it works perfectly. When I execute with IE (v 11.0.9600.17843), it fails every time with error as shown below. The IE browser is calibrated, has the browser extension "Launch Telerik Exploratory Testing" loaded and enabled. The IE browser launches to "about:blank" and just sits there until it times out. Never populates with the "Navigate to..." url.

------------------------------------------------------------
'6/8/2017 4:13:05 PM' - Executing test: 'WebTest(1)', path: 'WebTest(1).tstest.'
'6/8/2017 4:13:05 PM' - Using .Net Runtime version: '4.0.30319.34209' for test execution. Build version is '2017.2.530.0'.
'6/8/2017 4:13:05 PM' - Starting execution....
'6/8/2017 4:14:07 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'6/8/2017 4:14:07 PM' - System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   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)
------------------------------------------------------------
'6/8/2017 4:14:07 PM' - Test completed!


Any assistance would be greatly appreciated. I am tasked with researching and implementing automated testing for our new product, and I'm very impressed with Test Studio.... if I can get it to work :)

Thank you,

Fran


8 Answers, 1 is accepted

Sort by
0
André
Top achievements
Rank 1
answered on 08 Jun 2017, 08:55 PM
Try to install Visual Studio (up to 2013). We had the same problems with IE before.
0
Elena
Telerik team
answered on 12 Jun 2017, 01:13 PM
Hi,

@Matthias: Thank you for sharing your knowledge on Test Studio. I highly appreciate your cooperation! 

@Fran: Matthias advice is one of the correct solutions you could apply for the observed issue. Alternatively you could download and install the Team Explorer only from this link (the download will start automatically) which is a free installation of some libraries IE relies on in some of its specific usages. 

Please let me know if you would need further assistance on that topic.

Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Fran
Top achievements
Rank 1
answered on 13 Jun 2017, 02:34 PM

Thank you both for replying. I tried Elena's suggestion to install the Team Explorer only, but unfortunately - no change. Same results as originally described. I'd really prefer to not have to install Visual Studio since I don't use it - as I said, I'm not a developer.

Could it be something else? Should I try to contact technical support?

0
Elena
Telerik team
answered on 15 Jun 2017, 02:17 PM
Hi Fran,

Thank you for getting back to me. 

Please let me know what is the version of Team Explorer you installed?

Also I would like to kindly ask you to generate the application log while trying to execute a test against IE. Please clear the log prior that to ensure only relative to the current issue records will be stored within the file. Once you generate the file please zip it and send it over this thread. 

Thanks for your cooperation. 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Fran
Top achievements
Rank 1
answered on 16 Jun 2017, 11:43 AM

Hi Elena - thanks for your assistance.

I installed the Team Explorer version from the link you sent earlier in this discussion: Microsoft Visual Studio Team Explorer 2017 Version 15.2 (26430.13) Release.

I enabled logging and captured the log when executing against IE, attaching it here.

Thanks, Fran

0
Elena
Telerik team
answered on 20 Jun 2017, 01:37 PM
Hi Fran,

Thank you for getting back to me. 

I double checked the provided link and it is really for Team Explorer 2017 which unfortunately does not deploy the required dlls as Team Explorer 2013 installation would.

Since the issue is known for us we've been working on resolving it. The workaround we previously provided was the mentioned installation. Though the download links for Team Explorer 2012 and 2013 were recently deprecated from Microsoft so the priority of that task was raised. We possibly have identified a fix which is not yet live in Test Studio version but is expected to be published with our next Service pack release. 

Though we researched for another workaround until that next version comes live and here it is. 
1. Please download the Microsoft.Mshtml.dll from this location and store it to C:\temp folder. 
2. Then Run PowerShell as Administrator (PowerShell is automatically deployed with Windows 10)
3 .Run the attached script.

For your convenience I have saved the script in a txt format and attached it zipped. You could either copy and paste the script text to the PowerShell console or save it as a Windows PowerShell file format (*.ps1 or *.psm1) and run it. Please note that the script searches the dll file in C:\temp. 

The script will register the previously downloaded dll in GAC and will be available to be used by Test Studio which should solve the issue you are facing with IE recording and execution.

Please let me know if you would need any further assistance. Thank you in advance for your cooperation! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Stéphanie
Top achievements
Rank 1
answered on 16 Jul 2018, 11:57 AM
Hello,

I  encounter the same style of problem, since one week, all my tests executed via IE doesn't start no more. Until now all succeded without problems.

I joined my log.file.


Please let me know what is the problem ?

The test goes simply  to a page and click a button.



Thank you
REgards
0
Elena
Telerik team
answered on 18 Jul 2018, 02:59 PM
Hi Stéphanie,

Thank you for sharing details on the topic. 

As you have submitted a support thread with similar issue I would like to kindly ask you to collect the requested details and send them via the ticket. 

Based on the screenshots and files provided here I would like to know if a specific project cannot be opened or this happens for all of your projects? If it is a particular project please send it via the support thread. 

The compiler errors you have shared are due to missing elements in the repository. This could happen if only coded steps are referring an element and all recorded steps targeting the same are deleted from project. To solve the error you could navigate in the test from error message where the element will be available on the page and, using the elements, menu add it to the elements' repository. 

Please let me know if you need further details on any of the topics. Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Fran
Top achievements
Rank 1
Answers by
André
Top achievements
Rank 1
Elena
Telerik team
Fran
Top achievements
Rank 1
Stéphanie
Top achievements
Rank 1
Share this question
or