??????????????Gherkin??Spec Flow?????
??????????????????????????????????????????????Щ?????????в?????????????????????????????????????????????????????????
?????????????????????????????????????????
Feature: Login
In order to access my account
As a user of the website
I want to log into the website
Scenario: Logging in with valid credentials
Given I am at the login page
When I fill in the following form
| field | value |
| Username | xtrumanx |
| Password | P@55w0Rd |
And I click the login button
Then I should be at the home page
????????????????????????????????????Gherkin?????????????Gherkin????????????????????????????????????????????????£???????????????????С??????????????????????????????????????м????????Gherkin??????Feature??Scenario??Given??When??And??Then???????????????????????????????????????????α??????
????Gherkin?????????е?????????????е????У?Line??????????裨Step????“Logging in with valid credentials”?????е???????????“Given I am at the login page”???ò????????????崠?趨?壬??????????????????test runner????????????????ò??衣Spec Flow?е???趨?????????????б??????????????????????иò???????????????в??趨?巽??????????????????Binding????????С?
[Binding]
class LoginStepDefinitions
{
[Given("I am at the login page")]
public void GivenIAmAtTheLoginPage()
{
// TODO
}
}
?????????????????????????????????????????????????е?????????????????Spec Flow????????趨?巽??????崠?????????
??????????2??趨????????????????WatiN??Nunit??????
????WatiN????????????????????????????????????????????IE????????URL?????????????????????????????????????NUnit?????????????????????????WatiN??NUnit???????????????????Selenium?????????????????????????κ??????????????????????????????????Windows??????????????????磺White???????????Windows Forms??WPF????д?????????????
???????????????????????????????????????????????????????????????????????????????repository?????????repository????????????????????????????????????????б?????μ??????????????????????????