-
Notifications
You must be signed in to change notification settings - Fork 30
Rendering Tool Test Cases
Test ID: REN-001
Test name: Run Rendering Tool with valid input file and valid world path
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with a valid input and valid world path, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i Modules\Placing_output.xml -w Modules\World
Expected result:
- The Rendering tool will be successfully executed with the following messages:
-- Rendering: Reading input file...
-- Rendering: Reading input file done.
-- Rendering: 40 buildables were found.
-- Rendering: Generating blocks...
-- Rendering: Generating blocks done. 74131 blocks were generated in 0 hours and 0 minutes.
-- Rendering: Placing blocks...
-- Rendering: Placing blocks done in 0 hours and 0 minutes. - The output world will be successfully generated to the given folder.
Test ID: REN-002
Test name: Run Rendering Tool with invalid input file and valid world path.
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with an invalid input file and valid world path, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i g:\Modules\Placing_output.xml -w Modules\World
Expected result:
- Rendering tool will display an error message: Error: The given input XML does not exits.
Test ID: REN-003
Test name: Run Rendering Tool with valid input file and invalid world path.
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with a valid input file and an invalid world path, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i Modules\Placing_output.xml -w g:\Modules\World
Expected result:
- The program will display an error message: Error: The given path of world cannot found!
Test ID: REN-004
Test name: Run Rendering Tool with valid input, valid world path and with help
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with a valid input, a valid world path and with -h parameter, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i Modules\Placing_output.xml -w Modules\World -h
Expected result:
- The program will display the following message:
-- CodeMetropolis Toolchain Rendering (c) University of Szeged, Department of Software Engineering
-- Usage:java -jar rendering.jar -i <inputFile> -world <worldPath>
Test ID: REN-005
Test name: Run Rendering Tool with valid input, valid world path and with valid -s option on existing project
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with a valid input, valid world path and with valid -s parameter, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i Modules\Placing_output.xml -w Modules\World -s
Expected result:
- The Rendering tool will be successfully executed with the following messages and without asking to overwrite the existing folder:
-- Rendering: Reading input file...
-- Rendering: Reading input file done.
-- Rendering: 40 buildables were found.
-- Rendering: Generating blocks...
-- Rendering: Generating blocks done. 74131 blocks were generated in 0 hours and 0 minutes.
-- Rendering: Placing blocks...
-- Rendering: Placing blocks done in 0 hours and 0 minutes. - The output world will be successfully generated to the given folder.
Test ID: REN-006
Test name: Run Rendering Tool with valid input file, valid world path and with invalid -s option
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with a valid input, valid world path and with invalid -s parameter, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i Modules\Placing_output.xml -w Modules\World -s teszt
Expected result:
- The Rendering tool will display an error message:
-- Error: Incorrect command line arguments.
-- Usage:java -jar rendering.jar -i <inputFile> -world <worldPath>
Test ID: REN-007
Test name: Run Rendering Tool with empty input value and with valid world path
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with an empty input and with valid world path, for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i -w Modules\World
Expected result:
- The tool will display an error message:
-- Error: Incorrect command line arguments.
-- Usage:java -jar rendering.jar -i <inputFile> -world <worldPath>
Test ID: REN-008
Test name: Run Rendering Tool with valid input and with empty world path.
Precondition: Input XML file with Placing tool has been generated.
Steps:
- Open a command line.
- Run Rendering Tool with a valid input and with empty world path for example: java -jar codemetropolis-toolchain-rendering-1.3.jar -i Modules\Placing_output.xml -w
Expected result:
- The tool will display an error message:
-- Error: Incorrect command line arguments.
-- Usage:java -jar rendering.jar -i <inputFile> -world <worldPath>