Serenity BDD Trader Demo App
Home > Requirements > Portfolios > Viewing positions
Report generated 15-08-2024 19:49

Feature: Viewing positions

In order to understand how my investments are doing
As a trader
I want to be able to see the profits and losses for my investments

All traders start with $1000 in cash in their portfolio
CASH amounts are recorded in cents, so 50000 represents $500

Feature Coverage By Scenario

Scenarios

Given the following market prices:

securityCodeprice
SNAP200
IBM60

And Sarah Smith is a registered trader

Given Sarah has purchased 5 SNAP shares at $100 each

Then she should have the following position details:

securityCodeamounttotalValueInDollarsprofit
CASH50000500.000.00
SNAP51000.00500.00

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 1 Total Duration 3s
Total Number of Test Cases 1 Fastest Test 3s
Number of Manual Test Cases 0 Slowest Test 3s
Tests Started Aug 15, 2024 19:49:39 Average Execution Time 3s
Tests Finished Aug 15, 2024 19:49:43 Total Execution Time 3s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Viewing positions Making a profit on a single share 4 19:49:39 3s 770ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.1.20