Commands/gametest

is a server-side test automation tool that is based on pairing test code with test structures.

Usage
A GameTest can be registried in GameTest Framework, which is paired with a structure file ( format).

Place a structure block and type the ID (in the format of ) in it, then execute   (or   for multiple structure blocks) to run the GameTest in game. Note that the "structure name" in structure block should be the ID of Gametest instead of structure's ID.

can automatically place the structure block with the specified GameTest ID and run this GameTest.

can automatically run all GameTests in the specified class at the same time.

can place a save mode structure block, a platform made of polished andesite, there-block-thick dirt base, and a command block with a stone button attached on it. It is useful for developer to create a new structure and GameTest.

Syntax

 * Finds nearest structure block within 15 blocks radius, and then try to run GameTest with the ID specified in the structure block.
 * Create a run a specific GameTests.
 * Finds structure blocks within 200 blocks radius, and then try to run GameTests with the ID specified in the structure block.
 * Create and run all GameTests in this class.
 * Clear all GameTests.
 * Places structure block, command block, and polished andesite platform and dirt base.
 * Find nearest structure block within 200 blocks radius.
 * Create and run all GameTests in this class.
 * Clear all GameTests.
 * Places structure block, command block, and polished andesite platform and dirt base.
 * Find nearest structure block within 200 blocks radius.
 * Places structure block, command block, and polished andesite platform and dirt base.
 * Find nearest structure block within 200 blocks radius.
 * Find nearest structure block within 200 blocks radius.
 * Find nearest structure block within 200 blocks radius.

Arguments

 * Specifies a GameTest to run.
 * Must be an existing Gametest ID.


 * Specifies the times the gametest will be repeat.
 * And it should greater than 0.


 * Specifies whether to continue with the next repetition when current test fails.


 * Specifies the angle by which the gametest is rotate.
 * 1 means 90° clockwise; 2 means 180°; 3 means 270° clockwise. Otherwise the gametest won't be rotated.


 * Specifies GameTest class to run.
 * Must be an existing Gametest class ID.


 * Specified a string as gametest ID.


 * Specifies x-axis width of the polished andesite platform and of the structure. Defaults to 5.
 * And it should be less than or equal to 48.


 * Specifies y-axis height of the polished andesite platform and of the structure. Defaults to 5.
 * And it should be less than or equal to 48.


 * Specifies z-axis width of the polished andesite platform and of the structure. Defaults to 5.
 * And it should be less than or equal to 48.

History
Команды консоли/gametest 命令/gametest