locked
Angular JS and coded UI RRS feed

  • Question

  • Hi 

    our website is developed using angularJS and HTML5 . I am trying to record a coded UI for the login.

    Recording is good and code is generated properly, however when i run the script, it presses the login button but login is not successful.

    Infact nothing happens on the login page, and userid and password field becomes empty without user being on the next page.

    However, if i login manually - things works perfect.

    i tried to debug the jscript in IE11 and i found one error (when running from coded UI)

    "Accessing the 'arguments' property of a function is not allowed in strict mode"

    Does any one else have the same issue -?

    any solution?


    Friday, June 13, 2014 6:15 PM

All replies

  • it works

    Tests work again. The problem was not the update, it was a label inserted in app.config  

    <appSettings>

    <add key="WebWaitForReadyLevel" value="3"/>

     </appSettings>

    We added it to work with AngularJs and CodedUI Tests, but it makes that lot of tests fail.

    source

    http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/17/coded-ui-mtm-issues-on-internet-explorer-with-kb2870699.aspx?PageIndex=5



    • Edited by Mikhailenko Vladimir Friday, August 22, 2014 9:09 AM solved the problem
    • Proposed as answer by Ahetejaz Friday, February 27, 2015 3:41 PM
    Wednesday, August 20, 2014 12:57 PM
  • Please check the below links it should solve your problem.

    The work-around is to add the following to the App.config file for your test project:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <appSettings>
        <add key="WebWaitForReadyLevel" value="3"/>
      </appSettings>
    </configuration>

    Links: For more details please visit this links:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/fda7f05a-4db1-43fc-a81a-5b2e46f6355f/ie-clicking-on-signin-button-does-not-take-user-to-next-page?forum=vstest#892375d4-2e5b-49f1-9c1b-f0251a40b1f4

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ce509aa3-cb60-4596-b1ff-1ea11242d981/coded-ui-automation-issue-with-vs2013?forum=vstest

    http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project

    Regards,

    Ahetejazahmad Khan.

    • Proposed as answer by Ahetejaz Friday, February 27, 2015 3:45 PM
    Friday, February 27, 2015 3:45 PM