是否有無論如何我們可以多次運行相同的測試來驗證功能。如何使用不同的用戶角色多次運行相同的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