Install and configure for Genero Ghost Client
The Genero Ghost Client is embedded in the FGLGWS package. No additional installation is required, however configuration may be necessary.
The GGC is embedded in the FGLGWS package in the $FGLDIR/testing_utilities/ggc directory.
To use Genero Ghost Client API, you need a Java Development Kit (JDK). Make sure that your JDK version is at least version 1.7 or greater.
Configure for Genero BDL tests
At a command prompt, navigate to FGLDIR and execute the script to set the environment.
- On Linux®/UNIX™/macOS™ execute envcomp.sh
- On Windows®, execute envcomp.bat
- On Linux/UNIX/macOS set the PATH to a directory containing
libjvm.so:
export PATH=/JDK_DIR/server:$PATH
- On Windows, set the PATH to a
directory containing
JVM.DLL:
set PATH=%PATH%;C:\Program Files\Java\jdk1.8.0_20\jre\bin\server
- On Linux/UNIX/macOS:
export CLASSPATH=/FGLDIR/testing_utilities/ggc/ggc.jar:/FGLDIR/lib/fgl.jar
- On Windows:
set CLASSPATH=C:\FGLDIR\testing_utilities\ggc\ggc.jar;C:\FGLDIR\lib\fgl.jar
To check your configuration, run the demo testing application. See Demos.
Configure for Java tests
- On Linux/UNIX/macOS:
export PATH=/JDK_DIR/bin:$PATH
- On Windows:
set PATH=C:\JDK_DIR\bin;%PATH%
- On Linux/UNIX/macOS:
export CLASSPATH=/FGLDIR/testing_utilities/ggc/ggc.jar:/FGLDIR/lib/fgl.jar
- On Windows:
set CLASSPATH=C:\FGLDIR\testing_utilities\ggc\ggc.jar;C:\FGLDIR\lib\fgl.jar
- Compile:
javac userWorkspace/path/to/generated/.*java
- Run:
java com.fourjs.ggc.Launcher -s userWorkspace.path.to.generated.UserClass -u http://application/url
On Linux/UNIX/macOS:
- Compile: javac -cp /absolute/path/to/userWorkspace:/absolute/path/to/ggc.jar userWorkspace/path/to/generated/.*java
- Run:
java -cp /absolute/path/to/userWorkspace:/absolute/path/to/ggc.jar com.fourjs.ggc.Launcher -s userWorkspace.path.to.generated.UserClass -u http://application/url
On Windows:
- Compile:
javac -cp C:\absolute\path\to\userWorkspace;C:\absolute\path\to\ggc.jar userWorkspace\path\to\generated\.*java
- Run:
java -cp C:\absolute\path\to\userWorkspace;C:\absolute\path\to\ggc.jar com.fourjs.ggc.Launcher -s userWorkspace.path.to.generated.UserClass -u http://application/url
For more information on -classpath (-cp ) option, see the Java documentation.