Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scenario: A *new* customer, associated with a new company inputs signs up, to get a quote but doesn't check out.
- Given a new order is placed that looks like this:
- | Order Name | Widget Company HR Retreat 2015 |
- | Customer | Bob Loblaw |
- | Garment 1 Name | Amazon Jersey Tee |
- | Garment 1 QTYs | 10xs, 15s, 6m, 2xxl |
- | Garment 1 Price | $10.25 |
- | Customer Biz Name | Widget Company XYZ |
- And Salesforce does not have a record for a customer named "Bob LobLaw"
- Then POST to the SalesForce API to create a new Lead with the name "Bob LobLaw"
- And POST to the SalesForce API to create a new Account with the name "Widget Company XYZ"
- And POST to the Salesforce API to create a new Opportunity with the name "Widget Company HR Retreat 2015"
- And POST to the Salesforce API to create a quote for Opportunity "Widget Company HR Retreat 2015" at stage "Price Quote/ Prospect".
- And POST to the SalesForce API to add 33 "Amazon Jersey Tee" products with a price of "$10.25" to the same Quote on Opportunity "Widget Company HR Retreat 2015"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement