Scenario: Create a new user via the Admissions Portal
Given I will navigate to the Admissions Portal login page
When I click the Create an Account link
Then I will be on the Register page
Given I have entered a Title
And I have entered a First Name
And I have entered a Middle Name
And I have entered a Surname
And I have entered a Date of Birth
And I have entered a Gender
And I have entered an Email
And I have entered a Mobile
And I have entered a Password
And I have entered a Confirm Password
And I have entered a Password Reminder Question
And I have entered a Password Reminder Answer
When I click on the 'Register' button
Then I will get a popup displaying my account details
And I will get an email with my account details
And I will navigate to the Admissions Portal login pageBackground:
Given I go to the application URL
Scenario: Create a new user via the Admissions Portal
Given I click the Create an Account link on the Admissions Portal
When I fill in the Registration page with user information |title|firstName|middleName|surname|dob|gender|email|mobile|
And I create password info on the Registration page |password|confirmPassword|
And on the Registration page I create password reminder question and answer |question|answer|
And I fill in the Register page with DOB information |
Then I click on the 'Register' button on the Registration Page
And I will get a popup displaying my account details
Then I will get an email with my account details
And I will navigate to the Admissions Portal login pageBackground:
Given I go to the application URL
Scenario: Create a new user via the Admissions Portal
Given I click the Create an Account link on the Admissions Portal
When I fill in the Registration page with user information |Mr|random|random|surname|random|Male|random|random|
And I create password info on the Registration page |myPass|myPass|
And on the Registration page I create password reminder question and answer |random|random|
Then I click on the 'Register' button on the Registration Page
And I will get a popup displaying my account details
Then I will get an email with my account details
And I will navigate to the Admissions Portal login pageWhen I fill in the Registration page with user information \|{title}\|{firstName}\|{middleName}\|{surname}\|{dob}\|{gender}\|{email}\|{mobile}\|When I fill in the Registration page with user information |Mr|random|random|surname|random|Male|random|random|When I fill in the Registration page with user information \|{title}\|{firstName}\|{middleName}\|{surname}\|{dob}\|{gender}\|{email}\|{mobile}\| [When(@"I fill in the Registration page with user information \|Mr\|random\|random\|surname\|random\|Male\|random\|random\|")]
public void WhenIFillInTheRegistrationPageWithUserInformationMrRandomRandomSurnameRandomMaleRandomRandom() {
ScenarioContext.Current.Pending();
}
[When(@"I fill in the Registration page with user information \\\|\{title}\\\|\{firstName}\\\|\{middleName}\\\|\{surname}\\\|\{dob}\\\|\{gender}\\\|\{email}\\\|\{mobile}\\\|")]
public void WhenIFillInTheRegistrationPageWithUserInformationTitleFirstNameMiddleNameSurnameDobGenderEmailMobile() {
ScenarioContext.Current.Pending();
}
When I fill in the Registration page with user information |title|firstName|middleName|surname|dob|gender|email|mobile| so you have your field names listed first.When I fill in the Registration page with user information |Mr|random|random|Jones|random|Male|random|random|
This will use random firstname, middlename, dob, email and mobile. The rest will use the user input.When I fill in the Registration page with user information \|{title}\|{firstName}\|{middleName}\|{surname}\|{dob}\|{gender}\|{email}\|{mobile}\|When I fill in the Registration page with user information user title |title| and firstname |firstName| and middle name |middleName| and surname |surname| and date of birth |dob| and gender |gender| and email address |email| and mobile phone number |mobile|--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Try to describe the desired behaviour in succinct business terms, not in terms of the UI layer.
Thanks for this.I think I get the concept (?). Is the UserFactory a separate class that stores all the properties for a user from the registration form? If I use properties I guess I could pass the whole object reference into RegisterAccount, or have a dictionary in UserFactory that as you say returns key value pairs. UserFactory and RegisterAccount would then be doing the heavy lifting I guess.If I needed to go back down into specifics, e.g....
Scenario: Create a new user via the Admissions Portal
Given I am on the Admissions Portal
login page
When I Register a new Account
And I enter an invalid email
Then I will see validation against the email fieldMaybe I could have an invalid method in my page class that binds to....I enter an invalid (.*)And updates the field accordingly.At the moment there is only one type of user, and only likely to be one for the foreseeable future, however I can see how the structure might be better.Many thanks,
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
Scenario: Create a new user via the Admissions Portal
Given I will navigate to the Admissions Portal login page
When I click the Create an Account link
Then I will be on the ontrack: prospect - Register page
Given I have entered the following values on the registration page
| fieldName | value |
| Title | random |
| Firstname | random |
| Middlename | random |
| Surname | random |
| DOB | random |
| Gender | random |
| EmailAddress | random |
| MobileNumber | 0 |
| Password | random |
| SecurityQuestion | random |
| SecurityAnswer | random |
And I click on the Register button
Then I will be on the Login page
And I will get a popup confirming my registration detailsScenario: Create user via Admissions Portal
Given I am viewing the Admissions Portal
When I create an Account
Then I ashould be asked to Login
And I should see a confirmation of my registration details