运行 量角器硒中的单次测试
Run single test in protractor selenium
如何 运行 在 Protractor selenium 中进行单次测试。
describe('Login page', function() {
beforeEach(function() {
browser.ignoreSynchronization = true;
ptor = protractor.getInstance();
});
it('should contain navigation items', function(){
//test case code here
});
it('should login the user successfully', function(){
//test case code here
})
});
我想运行只考一次。我可以 运行 它使用 fit
但我想从命令行完成它而不更改测试。
另外,我如何 运行 使用 G运行t 进行单项测试?
您可以使用 --grep
command-line argument:
protractor conf.js --grep="navigation"
如何 运行 在 Protractor selenium 中进行单次测试。
describe('Login page', function() {
beforeEach(function() {
browser.ignoreSynchronization = true;
ptor = protractor.getInstance();
});
it('should contain navigation items', function(){
//test case code here
});
it('should login the user successfully', function(){
//test case code here
})
});
我想运行只考一次。我可以 运行 它使用 fit
但我想从命令行完成它而不更改测试。
另外,我如何 运行 使用 G运行t 进行单项测试?
您可以使用 --grep
command-line argument:
protractor conf.js --grep="navigation"