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

8 posts, 1 answers
  1. Robert
    Robert avatar
    11 posts
    Member since:
    Jan 2012

    Posted 31 May Link to this post

    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);

                        ......

                        ......

                }

  2. Robert
    Robert avatar
    11 posts
    Member since:
    Jan 2012

    Posted 02 Jun Link to this post

    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.
  3. Answer
    Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 04 Jun Link to this post

    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
     
  4. Robert
    Robert avatar
    11 posts
    Member since:
    Jan 2012

    Posted 04 Jun in reply to Elena Tsvetkova Link to this post

    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. 
  5. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 04 Jun Link to this post

    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
     
  6. Shoaib
    Shoaib avatar
    2 posts
    Member since:
    Mar 2018

    Posted 08 Jun Link to this post

    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.





     

  7. Shoaib
    Shoaib avatar
    2 posts
    Member since:
    Mar 2018

    Posted 08 Jun Link to this post

    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.

  8. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 13 Jun Link to this post

    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
     
Back to Top