Run an integrity test on the gwc-demo applications from scenarios
generated from a log file as described in this task.
Before you begin:
- It is assumed you have generated the test classes from a recorded log file and compiled the
files as detailed in Generate Java test scenarios.
- It is assumed that your new test Java files are in packages placed in the directory
path/to/generate:
- path.to.generate.StartMenuSessionManager
- path.to.generate.DemoPanelSessionManager.
- 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 see Dispatcher: httpdispatch is started and that you can access the GAS demos welcome
page, http://localhost:6394/demos.html, from your browser.
About this task: The integrity test on the
gwc-demo application can be run on all three available protocols or using the
direct connection mode.
-
To run the test simulation for Genero Web Client for JavaScript (GWC-JS) clients, type the
commands shown below:
java com.fourjs.ggc.Launcher -u http://localhost:6394/ua/r/gwc-demo -s path.to.generate.StartMenuSessionManager
java com.fourjs.ggc.Launcher -u http://localhost:6394/ua/r/gwc-demo -s path.to.generate.DemoPanelSessionManager
-
To run the test simulation for GWC-HTML5 clients, type the commands shown below:
java com.fourjs.ggc.Launcher -u http://localhost:6394/wa/r/gwc-demo -s path.to.generate.StartMenuSessionManager
java com.fourjs.ggc.Launcher -u http://localhost:6394/wa/r/gwc-demo -s path.to.generate.DemoPanelSessionManager
-
To run the test simulation for GDC clients, type the commands shown below:
java com.fourjs.ggc.Launcher -u http://localhost:6394/ja/r/gwc-demo -s path.to.generate.StartMenuSessionManager
java com.fourjs.ggc.Launcher -u http://localhost:6394/ja/r/gwc-demo -s path.to.generate.DemoPanelSessionManager
-
To run the tests using a stand-alone DVM, type the commands:
cd FGLDIR\demo ; java com.fourjs.ggc.Launcher -s path.to.generate.StartMenuSessionManager --command "fglrun demo"
cd FGLDIR\demo ; java com.fourjs.ggc.Launcher -s path.to.generate.DemoPanelSessionManager --command "fglrun demo"
Important:
It is assume that the all the Java session and scenario class files;
StartMenuSessionManager.class and DemoPanelSessionManager.class,
etc, have been placed in the same directory as the tested application,
FGLDIR/demo.
As file names must be fully qualified, for example
path.to.generate.DemoPanelSessionManager, files must be located in the
corresponding path, path/to/generate, from where the DVM command is run.