Is there anyway we can run the same tests multiple times to verify the functionality.
Here is my feature file:
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
I would like to run this scenario for 2 different users. Is there way I can run the same features using multiple users/roles.
I have several other feature files which needs to be run using 2 or 3 different users which I need to run overnight
Refer to the context file below:
public function iLoginToApplication() {
$page = $this->getSession()->getPage();
$page->find('css', '#username')->setValue("admin");
$page->find('css', '#password')->setValue("Password");
$signInButton->press();
}