Created
November 16, 2009 21:06
-
-
Save lsiden/236313 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I xxx'd out the domain part of the URL's to protect the innocent. -ls | |
Feature: Submit Webform | |
As a visitor to xxx.com | |
I want to submit a form with some personal information | |
and be redirected to a thank-you page. | |
Scenario Outline: Form Submission | |
Given I visit "http://xxx/webform.html" | |
And I type "<loan_purpose>" into field "loan_purpose", | |
And I type "<loan_amount>" into field "loan_amount", | |
And I type "<first_name>" into field "first_name", | |
And I type "<last_name>" into field "last_name", | |
And I type "<street_address>" into field "street_address", | |
And I type "<city>" into field "city", | |
And I type "<state>" into field "state", | |
And I type "<zip>" into field "zip", | |
And I type "<send_newsletter>" on radio "send_newsletter", | |
And I type "<how_did_you_find_us>" into field "how_did_you_find_us", | |
And I type "<soc>" into field "soc", | |
And I type "<birthdate>" into field "birthdate", | |
And I type "<current_lender>" into field "current_lender", | |
And I type "<current_loan_amt>" into field "current_loan_amt", | |
And I type "<current_payment>" into field "current_payment", | |
And I type "<is_tax_included>" on radio "is_tax_included", | |
And I type "<est_home_value>" into field "est_home_value", | |
And I type "<monthly_income>" into field "monthly_income", | |
And I type "<time_at_present_employer>" into field "time_at_present_employer", | |
When I hit Submit, | |
Then I should see "Thank you". | |
Scenario Outline: Admin Views Submissions | |
Given I am logged into "http://xxx/admin/" as user="xxx", password="xxx", | |
And I visit "http://xxx/?q=sales_leads", | |
Then I should see "Loan Purpose: <loan_purpose>", | |
And I should see "Loan Amount: <loan_amount>". | |
# I wish this Examples section could apply to both of the above scenario-outlines. | |
# In reality, it will apply only to the one immediately above it. -ls | |
Examples: | |
| loan_purpose | loan_amount | first_name | last_name | street_address | city | state | zip | send_newsletter | how_did_you_find_us | soc | birthdate | current_lender | current_loan_amt | current_payment | is_tax_included | est_home_value | monthly_income | time_at_present_employer | | |
| home | car | Joe | Blo | 123 Elmwood | Fairfield | IL | 55555 | yes | friend | 123456789 | 5-31-56 | First National | 190000 | 1200 | no | 240000 | 3000 | 5 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment