是否有无论如何我们可以多次运行相同的测试来验证功能。如何使用不同的用户角色多次运行相同的BDD功能
这是我的特点文件:
Feature: End to end tests
I want an End to End test pack
As Super user and Admin user
So that I can ensure that the integrated components of the application function as expected
Background:
Given I have the login Page
When I login to application
Then the list is displayed
@javascript
Scenario: To verify the functionality on the Dashboard
When I navigate to the Dashboard Page
Then the Dashboard Page is displayed
我想运行此方案2个不同的用户。有没有办法使用多个用户/角色来运行相同的功能。
我有几个其他的特征文件,这需要使用,我需要在夜间运行
请参考下面的内容档案2级或3个不同的用户运行:
public function iLoginToApplication() {
$page = $this->getSession()->getPage();
$page->find('css', '#username')->setValue("admin");
$page->find('css', '#password')->setValue("Password");
$signInButton->press();
}
有些人会考虑帮助,当你通过所有你的19个问题,并接受答案,补充了你13年的工作经验。社区花费你知道的时间... – 2014-09-06 21:39:32
我完全理解并欣赏你来自哪里。我已经接受并评论了相关的人。你可以更具体的 – 2014-09-07 22:45:41