How to run single test in 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
})
});
I would like to run only single test. I can run it using fit
but I would like to do it from command line and without changing test.
Also how can I run singe test using Grunt?
您可以使用--grep
命令行参数 :
protractor conf.js --grep="navigation"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.