When PerfCake terminates normally, the exit code returned to the operating system is 0 as usual. In some cases and to ease automation, there might be a non zero return code depending on the situation. In the following table you can find the codes and their root causes.[4]
Exit Code | Root Cause |
---|---|
1 | No scenario was specified on the command line or via the system property. |
2 | Wrong parameters on the command line. |
3 | It was not possible to find, parse or load the scenario. |
4 | There was a general error during execution of the scenario. This can be caused by incorrect or incompatible configuration parameters. |
5 | Some responses to messages did not pass validation. |
6 | There were blocked threads after the test execution that was not possible to terminate cleanly. This can be caused by hanging connections or deadlocks in the application under test. |
7 | There was an error while replaying a provided test record. |
8 | The user requested help/usage information with a command line option and it was printed. |
Table 2.5. PerfCake Exit Codes