我正在使用Chimp.js(与Cucumber.js一起使用),所有测试都需要通过一个登录页面。
我知道webdriverIO对像.before()和.after()这样的东西使用了testrunner配置文件。
如何才是实现这一目标的最佳途径?
谢谢!
发布于 2016-01-26 10:13:11
您可以在Chimp中使用钩子前后Cucumber.js:
// tests/features/clearDatabase.js
var clearDatabase = function() {
this.Before(function() {
server.call('/fixtures/clearDatabase');
});
};
module.exports = clearDatabase;https://stackoverflow.com/questions/34790353
复制相似问题