??????????????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??????????瑁⊿tep????“Logging in with valid credentials”?????械???????????“Given I am at the login page”???貌????????????宕�?瓒�?澹�??????????????????test runner????????????????貌??琛pec 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??????????????????纾篧hite???????????Windows Forms??WPF????写?????????????
???????????????????????????????????????????????????????????????????????????????repository?????????repository????????????????????????????????????????斜?????渭??????????????????????????