Advertisement
Guest User

Test

a guest
Jun 30th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Scenario: A *new* customer, associated with a new company inputs signs up, to get a quote but doesn't check out.
  2.   Given a new order is placed that looks like this:
  3.     | Order Name        | Widget Company HR Retreat 2015 |
  4.     | Customer          | Bob Loblaw                     |
  5.     | Garment 1 Name    | Amazon Jersey Tee              |
  6.     | Garment 1 QTYs    | 10xs, 15s, 6m, 2xxl            |
  7.     | Garment 1 Price   | $10.25                         |
  8.     | Customer Biz Name | Widget Company XYZ             |
  9.   And Salesforce does not have a record for a customer named "Bob LobLaw"
  10.   Then POST to the SalesForce API to create a new Lead with the name "Bob LobLaw"
  11.   And POST to the SalesForce API to create a new Account with the name "Widget Company XYZ"
  12.   And POST to the Salesforce API to create a new Opportunity with the name "Widget Company HR Retreat 2015"
  13.   And POST to the Salesforce API to create a quote for Opportunity "Widget Company HR Retreat 2015" at stage "Price Quote/ Prospect".
  14.   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