동일한 테스트를 여러 번 실행하여 기능을 확인할 수 있습니까? 나는 2 개의 다른 사용자를 위해이 시나리오를 실행하려는다른 사용자 역할을 사용하여 동일한 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
:
여기 내 기능 파일입니다. 여러 사용자/역할을 사용하여 동일한 기능을 실행할 수있는 방법이 있습니까? 예, 당신이 할 수있는
public function iLoginToApplication() {
$page = $this->getSession()->getPage();
$page->find('css', '#username')->setValue("admin");
$page->find('css', '#password')->setValue("Password");
$signInButton->press();
}
19 개 질문을 모두 거쳐 13 세 이상의 직장 경험을 보완 할 때 도움이 될만한 사람들도 있습니다. 커뮤니티는 당신이 알고있는 시간을 보낸다. –
나는 어디에서 왔는지 완전히 이해하고 감사한다. 그리고 나는 관련성있는 것을 받아 들였고 그것에 대해 논평했다. 좀 더 구체적이 될 수 있습니까 –