Menu

Run the Demo

Juan P Paz Grau
Attachments
CheckTestAP.png (46946 bytes)
PrepareTestAP.png (47463 bytes)
RunTestCase.png (108046 bytes)
SnifferAgent.png (53229 bytes)
SnifferButton.png (874 bytes)

Run the TDD for MAS Toolkit Demo

In the following sections we will describe how you can setup the toolkit demo with the provided Jade Test AP and demo test case.

Prepare the Jade Test AP

Start by downloading and decompressing the provided Jade Test AP from the "Files" section in this page. After decompresssing, locate the startup script in the root directory of the AP:

  • For windows, double click "StartTestRMA.bat"
  • For Linux/Unix, double click or type in a terminal "StartTestRMA.sh"

This will launch the Jade AP as shown below:

PrepareTestAP

Check the Jade Test AP

The RMA (Remote Agent Management) GUI is launched automatically when the Test AP is started. The RMA GUI looks as follows:

CheckTestAP

Check that the MonitorManagerAgent (our AUT) has been initialized and is present and running in the main container

Startup the sniffer agent

To startup the sniffer agent, click on the SnifferButton button in the RMA GUI. This will display a new GUI to manage the sniffer agent, as shown below:

SnifferAgent

Start tracing the AUT agent and the AMS agent. You will be able to trace all the message passing when the test case is running. You cannot trace the mock agents or test agents yet; they will be automatically created and destroy while the test case is running.

Run the test case

All the files you need to setup and run the demo test case are included in the zip file available in the "Files" section. Download and decompress the files, you will find the following structure:

  1. MonitorManagerAgentTest.java: The test case source code.
  2. MonitorManagerAgentTest.class The compiled test case, which you can run with JUnit from the command line
  3. runTest: A convenience shell script (.sh for Linux/Unix, .bat for Windows) to run the test case and check the results. You can also use any JUnit GUI available, using the provided source code
  4. lib: A directory with the minimal required libraries to run the test case

A run of the test case looks as follows:

RunTestCase

Note that the final result of the test is "OK (2 Tests)", which means that both test (for the SUBSCRIBE and UNSUBSCRIBE protocols) were successful. You can also check the Jade Sniffer agent GUI and trace all the messages that were exchanged between the test agents and the AUT during the test case execution.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.