Angular JS和编码的UI [英] Angular JS and coded UI

查看:79
本文介绍了Angular JS和编码的UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 

我们的网站是使用angularJS和HTML5开发的。我正在尝试记录登录的编码用户界面。

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.

我试图调试IE11中的jscript,我发现一个错误(从编码的UI运行时)

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

"在严格模式下不允许访问函数的'arguments'属性"

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

是否有其他人有同样的问题 - ?

Does any one else have the same issue -?

任何解决方案?




推荐答案


可行


测试再次工作。问题不在于更新,它是在app.config中插入的标签 

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


< appSettings>

<appSettings>


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

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


 < / appSettings>

 </appSettings>


我们将其添加到AngularJs和CodedUI测试中,但它使得大量测试失败。

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

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









这篇关于Angular JS和编码的UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆