by a customer, it needs to be booked after being executed Given a customer has made a quote request for 2 tons of AH And the trader replied with an ask price at 35 and a bid price at 45 When the customer buys 2 tons of AH Then the trade should be booked
trader ask price Given a customer has requested to buy "10" actions in euros of "Rockstar" When the trader ask for "30" euros each Then the customer should pay "300" euros
by a customer, it needs to be booked after being executed Given the customer has received prices When the customer sends an execution request Then the transaction should be booked
trader ask price Given a customer has requested to buy "10" actions in euros. When the trader ask for "30" euros each Then the customer should pay "10 * 30" euros, i.e. "300" euros
by a customer, it needs to be booked with pricing information Given the customer has sent a quote request And the trader price is : | ask | 15 | | bid | 10 | When the customer execute the quote with the way ‘Buy’ Then the booking request should have a : | client price | 15 | | trader bid | 10 | | trader ask | 15 |
send a request for a price to a pricer so I can get a price Scenario: Customer sends a price request and the pricer receive it Given a request for a price defined by "generic_price_request.json" When the customer sends the request defined by: | REQUEST_ID | CLIENT_ID | PRODUCT_INFO | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | | 110e8400-e29b-11d4-a716-446655440000 | 42 | X_EUR_BMW_537389873 | 1422207807 | <null> | <null> | <null> | Then the pricer should receive a request defined by: | REQUEST_ID | CLIENT_ID | PRODUCT_INFO | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | | 110e8400-e29b-11d4-a716-446655440000 | 42 | X_EUR_BMW_537389873 | 1422207807 | <null> | <null> | <null> | Scenario: Pricer sends a acknowledgment of the price request to the customer Given the pricer received a price request defined by: | REQUEST_ID | CLIENT_ID | PRODUCT_INFO | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | | 110e8400-e29b-11d4-a716-446655440000 | 42 | X_EUR_BMW_537389873 | 1422207807 | <null> | <null> | <null> | When the pricer sends an acknowledgement defined by: | MESSAGE_ID | REQUEST_ID | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | PRICE | | 1124d9e8-6266-4bcf-8035-37a02ba75c69 | 110e8400-e29b-11d4-a716-446655440000 | 1422219048 | 1 | ACCEPTED | <null> | <null> | Then the customer should receive a acknowledgement defined by: | MESSAGE_ID | REQUEST_ID | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | PRICE | | 1124d9e8-6266-4bcf-8035-37a02ba75c69 | 110e8400-e29b-11d4-a716-446655440000 | 1422219048 | 1 | ACCEPTED | <null> | <null> | Scenario: Pricer sends a price to the customer Given the pricer sent an acknowledgement defined by: | MESSAGE_ID | REQUEST_ID | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | PRICE | | 1124d9e8-6266-4bcf-8035-37a02ba75c69 | 110e8400-e29b-11d4-a716-446655440000 | 1422219048 | 1 | ACCEPTED | <null> | <null> | When the pricer sent a price defined by: | MESSAGE_ID | REQUEST_ID | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | PRICE | | ac56a704-260b-45f5-85ac-e1b451bb79bc | 110e8400-e29b-11d4-a716-446655440000 | 1422219048 | 1 | UPDATED | <null> | 555 | Then the customer should receive the price defined by: | MESSAGE_ID | REQUEST_ID | TIMESTAMP | STATUS_CODE | STATUS_TEXT | TEXT | PRICE | | ac56a704-260b-45f5-85ac-e1b451bb79bc | 110e8400-e29b-11d4-a716-446655440000 | 1422219048 | 1 | UPDATED | <null> | 555 |
price request is converted in order to be understood by the pricer Given a request for a price from the customer containing the following information : | Request Id | 1 | | Customer Id | 42 | | Product Type | Actions | When the request is converted Then the pricer request should contains the following information : | Request Id | 1 | | Customer Id | 42 | | Product Type | A |
all my transactions to be closed when I restart Given a system with 8 opened transactions When the system restarts Then no transactions should be opened
comprendre et lever les ambiguïtés Faire attention à la rédaction des scénarios lisible compréhensible déclaratif Ne pas négliger le code des fixtures même standards que le code de production facile à maintenir