角量角器 - 离开浏览器后,端到端测试开启 [英] Angular Protractor - Leave browser open after E2E tests

查看:109
本文介绍了角量角器 - 离开浏览器后,端到端测试开启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能离开测试浏览器窗口打开后角量角器测试运行?我有一个严峻的考验在FireFox失败,它会是有益的访问网页的状态,看看发生了什么事情。

Is it possible to leave the test browser windows open after Angular Protractor tests run? I have a tough test failing in FireFox and it'd be useful to access the state of the web page to see what's going on.

推荐答案

您可以用量角器调试/暂停功能暂停运行端到端最终将离开浏览器中打开:的more的信息在这里

You can use Protractor debug/pause feature to pause the e2e run which will ultimately leave the browser open: more info here

要做到这一点,之前在你的量角器测试添加此行的一个失败

To do so, add this line on your protractor test before the failing one

browser.pause();

有也被称为一个非常有用的工具 elementor ,你可能想看看以后。

There is also a very useful tool called elementor that you may want to take a look later on.

这篇关于角量角器 - 离开浏览器后,端到端测试开启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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