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

Testing Framework fails to runtest unless I disable and then re-enable the Chrome extension

7 Answers 202 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 31 May 2018, 06:45 PM

I'm running unit tests in VS 2015. 

The testing framework version is 2018.1.418.0

The Chrome extension is : Version 2018.1.54.1

When I begin a test the browser shows this URL and "Extension Loaded" in the window:

http://localhost:55222/WebUI/teststudio_start_page.html?port=55221&mode=0&loadingtimeout=50000

However, it just hangs there forever. If I disable the Chrome extension and then re-enable it I can successfully run one test but it will fail if I run it again.

I don't see anything in the browser console nor does the framework write to the log.

The code is pretty straightforward:

 

            Settings settings = new Settings();
            settings.LogAnnotations = true;
            settings.QueryEventLogErrorsOnExit = false;
            settings.LogLocation = "c:\\deleteme\\uiautomation";
            settings.ClientReadyTimeout = 50000;
            settings.CreateLogFile = true;
            settings.AnnotateExecution = true;
            settings.AnnotationMode = AnnotationMode.All;
            settings.DisableDialogMonitoring = false;

            try
            {
                using (Manager mngr = new Manager(settings))
                {
                    mngr.Start();
                    mngr.LaunchNewBrowser(BrowserType.Chrome, true);

                    mngr.ActiveBrowser.NavigateTo("http://the site......");
                    mngr.ActiveBrowser.WaitUntilReady();

                    mngr.ActiveBrowser.WaitForAjax(5000);
                    mngr.ActiveBrowser.RefreshDomTree();

                    Element element = mngr.ActiveBrowser.Find.ById("some id");
                    mngr.ActiveBrowser.Actions.Click(element);
                    mngr.ActiveBrowser.Actions.SelectDropDown(element, "some id");
                    mngr.ActiveBrowser.Actions.InvokeEvent(element, ScriptEventType.OnChange);

                    ......

                    ......

            }

7 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 02 Jun 2018, 12:02 PM
I installed the Testing Framework on my home PC as comparison and it does exactly the same thing. Even if you don't have an answer, I'd appreciate knowing if someone reading this has it working or not. Thanks.
0
Accepted
Elena
Telerik team
answered on 04 Jun 2018, 01:13 PM
Hi Robert,

Thank you for your query. 

Could you please ensure there is no other Chrome instance running when you start a test execution and then give it a try again? 

Please also double check if you have that single Test Studio extension active in your browser - actually I would recommend you delete any older extension if there are any left. 

Please let me know if you will need any further assistance! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Robert
Top achievements
Rank 1
answered on 04 Jun 2018, 03:14 PM
Thank you for your response. It does seem to work if I have no instances of Chrome running. Is this documented? I don't recall having this issue with a previous version, I'm picking back up my automation testing that I started about a year ago. 
0
Elena
Telerik team
answered on 04 Jun 2018, 03:32 PM
Hi Robert,

Thank you for the prompt reply. 

Please note that if using Test Studio there are automatic verifications for running instances and a prompt that any will be closed. Though when using the Testing Framework only this needs to be ensured from your end. 

You should also be informed that for the last year Chrome changed a lot in its structure and the way the browser works and therefore we had to implement plenty of changes as well. No running instances is also one of these requirements. A note is listed at the beginning of this article

Thank you for your understanding. And in case of any further questions please do not hesitate to get back to us! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Shoaib
Top achievements
Rank 1
answered on 08 Jun 2018, 10:21 AM

Hi Telerik,

I am having almost same problem. I am using unit tests in VS 2015 with Telerik testing framework.
Only one instance of Chrome is running  
I have removed all the old Telerik Extensions too. 
Inspite of above two chrome is till crashing randomly. I could crack on any line of code randomly. Few times it works without crashing and other times it always crashes.





 

0
Shoaib
Top achievements
Rank 1
answered on 08 Jun 2018, 10:23 AM

Hi 

I am having almost same problem. I am using unit tests in VS 2015 with Telerik testing framework.
Only one instance of Chrome is running  
I have removed all the old Telerik Extensions too. 
In-spite of above two chrome is till crashing randomly. I could crack on any line of code randomly. Few times it works without crashing and other times it always crashes.

0
Elena
Telerik team
answered on 13 Jun 2018, 07:58 AM
Hello Shoaib,

Thank you for reaching us out. 

Please let me know which is the version of Telerik Testing Framework you are using. Then double check the Chrome version and which is the extension in use - it should be the latest one as listed here

In addition to the above I would like to kindly ask you to generate the application log during such a crash - please first clear the log, then reproduce the issue and collect the log file after that. You could send it zipped via this thread. 

Thanks in advance for your time and cooperation! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Elena
Telerik team
Shoaib
Top achievements
Rank 1
Share this question
or