简体   繁体   English

如何使用量角器降低角度2的e2e测试速度?

[英]How to reduce speed of e2e test in angular2 using protractor?

I am running e2e test cases for angular2 app using protractor. 我正在使用量角器为angular2 app运行e2e测试用例。

So far my tests are getting compiled & results are generated. 到目前为止,我的测试正在编译并生成结果。

But I cant see whats happening on browser as operations are quite fast. 但由于操作速度非常快,我无法看到浏览器上发生了什么。

I want to know how to reduce the speed of these test cases so I will be able to track the form data & other things correctly. 我想知道如何降低这些测试用例的速度,以便我能够正确地跟踪表单数据和其他内容。

If I can add delay then how to do it? 如果我可以添加延迟然后怎么做?

thanks 谢谢

pauses the script, need to have console opend 暂停脚本,需要有控制台打开

 document.body.innerHTML = 20; var x = 15 * 5; debugger; document.body.innerHTML = x; 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM