0
我正在使用runner.html
E2E测试文件在Angular项目上进行集成测试。Angularjs E2E方案测试是否可以访问GET参数?
//In runner.html
<script src="scenarios.js"></script>
//In this scenarios.js file, we have some code like this:
describe('App', function() {
pauseAll = false;
it('Testing index.html', function() {
....
if (pauseAll) pause();
});
这段JavaScript代码允许我们只是改变在文件的顶部pauseAll
变量时,我们想人工审查每一个在测试过程中加载页面。
我的问题:如果GET参数pauseAll通过runner.html url传入,我该如何让pauseAll等于true?例如:
../test/e2e/runner.html?pauseAll=true