Test Studio no longer opening Chrome

0 Answers 23 Views
Test Execution
Mark
Top achievements
Rank 1
Iron
Mark asked on 08 May 2025, 10:06 AM

For some reason when running a Test in Test Studio and choosing to use Chrome Chrome is not opening at all

Other browsers are working as expected

Log shows as below

 

------------------------------------------------------------
'08/05/2025 11:01:34' - Executing test: 'Reschedule', path: 'Reschedule.tstest.'
'08/05/2025 11:01:34' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2025.1.226.1'.
'08/05/2025 11:01:34' - Starting execution....
'08/05/2025 11:03:08' - Failure detected during execution. Details:
------------------------------------------------------------
'08/05/2025 11:03:08' - 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)
------------------------------------------------------------
'08/05/2025 11:03:08' - Test completed!

Have tried calibrating Chrome but to no effect

Can anyone help on this at all?

Elena
Telerik team
commented on 08 May 2025, 01:07 PM

Hi Mark, 

Please, share some additional details on the occurence. You can use the below topics as basseline:

  1. Did you try starting Chrome outside of Test Studio? Does it launch as expected?
  2. As far as I see you tried to run a specific test using Chrome. Did you try running that same test with the other browsers? Does the test run starts for the other browsers?
  3. Did you try to record a new sample test using Chrome? Does this work as expected? Or Chrome is again not starting?
  4. Did you try to run any other test using Chrome - possibly the newly recorded one. What is the outcome?
  5. Generate the application log during the misbehavior and send it over zipped. Please, check here how you can enable and access the logging

Thank you for your cooperation in advance. 

Regrads,
Elena

Mark
Top achievements
Rank 1
Iron
commented on 08 May 2025, 01:43 PM

Hi Elena

Thanks for helping on this. See  my answers below

  1. Did you try starting Chrome outside of Test Studio? Does it launch as expected? Yes can open Chrome without any issues - File path for this is  "C:\Program Files\Google\Chrome\Application\chrome.exe"
  2. As far as I see you tried to run a specific test using Chrome. Did you try running that same test with the other browsers? Does the test run starts for the other browsers? Can run Test using Edge or Firefox without any issues at all
  3. Did you try to record a new sample test using Chrome? Does this work as expected? Or Chrome is again not starting? Trried this and just hangs on launching recorder - see picture attached
  4. Did you try to run any other test using Chrome - possibly the newly recorded one. What is the outcome? Is not running any Tests at all in Chrome
  5. Generate the application log during the misbehavior and send it over zipped. Please, check here how you can enable and access the loggingZip File of Log file attached when trying to run Test in Chrome

Have tried removing and reinstalling Chrome but to no avail

If you need anything further le me know

Thanks for your help on this

Elena
Telerik team
commented on 08 May 2025, 02:53 PM

Hi Mark, 

Thanks for your prompt response.

It seems that the profile user data for Chrome browser used from Test Studio is corrupted somehow and thus the browser cannot start. Please, follow the below steps to fix this: 

  1. In a File Explorer browser to folder C:\Users\<YourUser>\AppData\Local\ArtOfTest\TSChromeUserData.
  2. Delete all its content - it will be regenerated on next Chrome start from Test Studio, so need to worry for removing it. 
    Note: If you have any concerns, you can just move the content of the folder to any other directory and keep it as backup. 
  3. Switch to Test Studio and try to run or record a test in Chrome again. 
  4. If there's still no difference in the behavior, generate the application log again and send it over zipped. 

Thanks for your time once again.

Regards,
Elena

Mark
Top achievements
Rank 1
Iron
commented on 08 May 2025, 03:17 PM

Hi Elena

Many thanks for your help. This appears to have created a new Profile for Chrome and is now working again

Is there any way to get Test Studio to use a specific Chrome Profile at all?

Thanks for your help in getting this fixed

Elena
Telerik team
commented on 09 May 2025, 10:19 AM

Hi Mark, 

I am pleased to know the suggested steps resolved the issue on your end and you can continue running tests in Chrome.

As to your query about using custom Chrome profile - no, you can't use a profile other than the one outlined in my previous response. Though, you can use the browser installation from the Chrome for testing flavor channel - you can see here how to setup Test Studio to run and record tests in the Chrome for testing browser. I am not familiar with the requirements you need to cover but this is an option which you can explore. 

Thank you for your cooperation in our conversation!

Regards,
Elena

No answers yet. Maybe you can help?

Tags
Test Execution
Asked by
Mark
Top achievements
Rank 1
Iron
Share this question
or