
Order Book UI Test

Start order book (Trading -> Order Book)

Order book should sort by time desc by default
Create some working orders via the ladder or ticket
Make sure their state is accurately reflected by the order book
Test cancellation: Cancel buys, cancel sells, cancel all, cancel a single order, cancel two orders (ctrl-click)
Test modification: Change price, commit, change size, commit, change price and size, commit.
Test fill: Cross an order, make sure fill is accurately reflected
If you tested cancellation and modification through the side-bar, now do the same through the context menu
Test sorting


Recreate Testing
----------------
After the above, you should have a variety of order statuses in your order book.

Right click on a Completed order
	The Recreate menu item should remain disabled
Left click and drag over over a series of orders, at least one of them being in Canceled status
	The Recreate menu item should now be available
	Click Recreate from the tool well
		Orders should be submitted for all top-level orders (no children of any kind) that have a status of cancelled.
		The Order should be placed at the same price as the original order
		The order should be placed with a Qty of (Qty - Filled Qty)
Left click on a cancelled child order of a parent-child order type
	The Recreate menu item should remain disabled
Left click on a cancelled parent order of a parent-child order type
	Click Recreate from the tool well
		The original order hierarchy will again be working
		Orders should be placed at the same price as their respective original order
		The top parent order should be placed with a Qty of (Qty - Filled Qty)
			* Note, child orders will *NOT* be recreated with a Qty of (Qty - Filled Qty) at this time since their intermediate fill status is unknown to their parent.

Order tree node collapsing testing
----------------------------------
- Create an algo using  the algo studio consisting of IB -> Limit, call it IB2.
- Launch an instance of IB2 on a normal security away from the market so it does not execute immediately
- In an order book form ensure that the setting "Show Full Algo Tree" is checked
- Ensure further that there are no filters on the OB
- You should see in the OB the full tree of the IB2 you launched, that is there should 3 nodes: IB2 -> IB -> Limit
- Now unset the "Show Full Algo Tree" setting
- You should now sett only IB2 -> Limit, that is the intermediate IB node has been hidden
- Now repeat the test but launch IB2 on a synthetic security
- Now if "Show Full Algo Tree" is checked you should see 4 levels: IB2 -> IB -> Spreader -> Limit
- If you uncheck "Show Full Algo Tree" you should see 3 levels: IB2-> Spreader -> Limit

Order tree filter slice/dice
----------------------------
- Create an algo using  the algo studio consisting of Cover -> IB, call it CIB.
- Launch an instance of CIB on a normal security away from the market so it does not execute immediately
- In an order book form ensure that the setting "Show Full Algo Tree" is checked
- Ensure further that there are no filters on the OB
- Now force some fills so that you have a mix of completed and working orders
- Now filter the OB to show only working orders. You should see the non working disappear
- Now filter the OB to show only limit, working orders. You should see only the limit currently being worked by the IB and the hedge orders launched by cove

Filter/Collapse interaction
---------------------------
- Now uncheck the "Show Full Algo Tree" setting and clear all filters
- You should only see the top algo for CIB and the the hedges and currently working limit order
- Now filter for order type = limit, you should only see the hedges and the currently working limit
- Now filter for order type = IB and you should see nothing

Parent/Child
------------
- Enter an algo fo your choice. Verify that the parent child algos show correctly.
- Enter a spreader. The spreader algo should show the name of the spreader as well. Verify
that the filter works for this (the filter only shows the spreader badge).




 
