All traders start with $1000 in cash in their portfolio
CASH amounts are recorded in cents, so 50000 represents $500
Key capabilities include the ability to buy and sell shares, e.g.
Given Tom Smith is a registered trader
When he purchases 5 AAPL shares at $100 each
And he sells 3 AAPL shares for $150 each
Then he should have the following positions:
| securityCode | amount |
|---|---|
| CASH | 95000 |
| AAPL | 2 |
{result:Buying and selling shares!Buying and selling shares}
More details
Given Tom Smith is a registered trader
When he purchases 5 AAPL shares at $100 each
And he sells 3 AAPL shares for $150 each
Then he should have the following positions:
| securityCode | amount |
|---|---|
| CASH | 95000 |
| AAPL | 2 |
Given Tom Smith is a registered trader
When he purchases 5 AAPL shares at $100 each
Then he should have the following positions:
| securityCode | amount |
|---|---|
| CASH | 50000 |
| AAPL | 5 |
| Number of Scenarios | 2 | Total Duration | 3s |
| Total Number of Test Cases | 2 | Fastest Test | 313ms |
| Number of Manual Test Cases | 0 | Slowest Test | 3s |
| Tests Started | Aug 15, 2024 19:49:39 | Average Execution Time | 2s |
| Tests Finished | Aug 15, 2024 19:49:43 | Total Execution Time | 4s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Buying and selling shares | Buying and selling shares | 4 | 19:49:39 | 3s 829ms | ||
| Buying and selling shares | Buying shares | 3 | 19:49:42 | 313ms |