How to compile Java tests

To compile your Java tests, you run the javac command as shown from the command line.

Before you begin:
  • It is assumed that you have built two new test Java files:
    • One SessionManager implementation named, for example, mySessionManager.java that will manage the testing session
    • One Scenario implementation named, for example, myScenario.java that will instantiate real scenarios based on the application launched.
  • It is assumed that your new test Java files are in the package path.to.myTests and therefore you have placed them in the directory path/to/myTests.
  • It is assumed your environment is configured to run Java and the GGC, see Install and configure for Genero Ghost Client.
  • If you are using the GAS:
    • Make sure your GAS version is at least version 2.50.34 or greater.
    • Make sure that the standalone dispatcher httpdispatch is started and that you can access the GAS demos welcome page, http://localhost:6394/demos.html, from your browser. See the Genero Application Server Administrator Guide for more information.
To compile your newly created tests, type the following:

javac path/to/myTests/*.java