SSEL/CASSEL Multistage

the Multistage site
 
   

Integrated Test Suite

PDF
PDF

Introduction

The Multistage integrated tests allow for administrating scripted tests with a graphical user interface. This allows you to test your parameter files during game design and also helps verify the workings of Multistage itself.

Supply the test controller with a parameter file describing the game to play and an output file location, and the tester runs the game and verifies the output files.

Fixme (diffusor)
Determine which test is suitable for pre-experiment full-deployment tests

Note that a fully-deployed client-server test should be run prior to performing any real experiment. For more robust testing of the multistage framework itself, the automated test suite and associated unit tests should be used instead.

Running the integrated test controller interface

  • Build Multistage as described in setup.
  • Execute edu.caltechUcla.sselCassel.projects.multistage.test.TestGUI
  • Click on Load Parameter File and choose the game description to test.
  • Click on Select Output File and choose the location and basename for the output files.
  • Set the number of groups as desired.
  • Click Begin Test.
  • The server control window should pop up, and the client authentication windows will zip by. The game should play as directed and shut down automatically when done.

During testing, the controller launches the clients and supresses their output. The controller also launches the game server, but it displays the interface window so you can monitor the game's progess. Interaction with the server interface is also possible.

Fixme (diffusor)
Is that useful, or an unintended "feature?"

Note that the integrated test runs the server and clients as threads in the same Java virtual machine. For a more accurate simulation of lab conditions, one should consider the Automated testing facilities, which provides a way to perform integrated tests across seperate machines.