2.8 KiB
2.8 KiB
Import Synthetics Test (10 min)
Notes
- The test refers to a couple [csv] files:
- They are located in the 'docs\testing\import_synthetics' dir
- If any security conflicts arise due to expired securities in the contract legs, please update the csv file with unexpired securities.
- synthetics are displayed (in the main dialog) in the order in which they are listed in the csv file.
- the security cells should be easy to identify, since every other cell, except for 'name,' is a number.
- Direct concerns/complaints to John.
- Open the Synthetic Management window (Launcher->Spreader->Synthetics).
- Right click anywhere in the grid to open the context menu, then click "Import Synthetics..." to open the import dialog.
- Select the 'valid_synths' file, then click 'Open.'
- The 'Import Synthetics' dialog should appear with a synthetic row for each line in the file (should be 2).
- Click OK to import/persist the synthetics.
- Verify that the import succeeded:
- A brief message dialog should appear saying something to the effect of "All synthetics were successfully imported."
- The newly imported synthetics should be present in the Synthetic Management window.
- Import the 'valid_synths' file again, this time the conflicts dialog should appear; it should say that '0/y synthetics have been successfully converted..'
- There should be 1 conflict per line in the file for component 'Name' (because each name already exists).
- Change the names to ones that don't already exist, then click continue to proceed to the main dialog.
- No errors should be present in the main dialog (errors are indicated by a red exclamation point to the left of the expander arrow for a particular synthetic).
- Click 'OK' to import/persist the synthetics.
- Verify that the import succeeded.
- A brief message dialog should appear saying something to the effect of "All synthetics were successfully imported."
- The newly imported synthetics should be present in the Synthetic Management window.
- Import the 'invalid_synths' file, the conflicts dialog should have the following errors (note the numbers at the end of the error text matches the line number of this error in the file):
- Security: "bad sec 1," "bad sec 2"
- Price Mult: "bad price mult 1"
- Quantity: "bad quantity 2"
- Tick Factors: "bad ticks 3"
- Resolve each error with distinct values, take a screenshot of the conflicts dialog, then click 'Continue.'
- Verify that the resolutions were applied to the correct rows (use the screenshot you just took as a reference).
- Click 'OK' to import the persisted synthetics.
- Verify that the import succeeded.
- A brief message dialog should appear saying something to the effect of "All synthetics were successfully imported."
- The newly imported synthetics should be present in the Synthetic Management window.