[英]Protractor is running all the before() when running one single e2e test
我有一堆 e2e Protractor 测试(每个测试都有自己的 before()、after()、Given()、When() 和 Then()。
我已经看到在执行每个单独的 e2e 测试之前,Protrator 运行它看到的每个 Before(),即使是那些不属于测试的。 这是量角器的预期行为吗?
它是由场景字符串中的一些命名冲突引起的吗?
这不是在量角器上,而是在 Cucumber 上。
是的:
Before hooks will be run before the first step of each scenario.
https://github.com/cucumber/cucumber/wiki/Hooks
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.