SnakeGrid? CSV Transformer Test Data
The test data used [http://www.dhp11.com/site04/product/snakegrid_transformer/testdata/csvtestdata/].
To run the tests you need to have Microstation installed and a working version of SnakeGrid Transformer.
All the test assume you have Microstation running and the SnakeGrid CSV Transformer dialog opened.
Test01
- Set the "From Grid" to OSGB
- Set the "To Grid" to OSGB
- Make the "CSV File" text item blank.
- Press the 'Process' button.
- EXPECTED RESULT: Info dialog saying "Already in transformation format"
- REASON: There is no need to convert to the same format.
Test02
- Set the "From Grid" to OSGB
- Set the "To Grid" to LSG
- Make the "CSV File" text item blank.
- Press the 'Process' button.
- EXPECTED RESULT: Info dialog saying "The CSV file [] could not be opened."
- REASON: There is no path to a valid CSV file
Test03
- Set the "From Grid" to OSGB
- Set the "To Grid" to LSG
- Select the "CSV File" text item to the test file "C:\!CsvTestData\invalid.csv"
- Press the 'Process' button.
- EXPECTED RESULT: Info dialog saying "The CSV file [C:\!CsvTestData\invalid.csv] is invalid."
- REASON: There "invalid.csv" is a renamed PNG file not a valid text file.
Test04
- Set the "From Grid" to OSGB
- Set the "To Grid" to LSG
- Select the "CSV File" text item to the test file "C:\!CsvTestData\empty.csv"
- Press the 'Process' button.
- EXPECTED RESULT: Info dialog saying "The CSV file [C:\!CsvTestData\empty.csv] is empty."
- REASON: There "empty.csv" is really empty.
Test05
- Set the "From Grid" to OSGB
- Set the "To Grid" to SNAKE
- Set the "DAT File" to "xrail09.dat"
- Select the "CSV File" text item to the test file "C:\!CsvTestData\Link Node Database.csv"
- Press the 'Process' button.
- EXPECTED RESULT: The file should process successfully (but will report 67842 errors. These are points outside the XRAIL grid)
Test06
- Set the "From Grid" to OSGB
- Set the "To Grid" to SNAKE
- Set the "DAT File" to "xrail09.dat"
- Select the "CSV File" text item to the test file "C:\!CsvTestData\Link Node Model File.csv"
- Press the 'Process' button.
- EXPECTED RESULT: The file should process successfully (but will report 1359431 errors. These are points outside the XRAIL grid)