Login | Register
My pages Projects Community openCollabNet

Frequently asked questions



Log4j: WARN No appenders could be found for logger
When running mbt and a warning message like this appears:

    Log4j: WARN No appenders could be found for logger (org.tigris.mbt.generators.RandomPathGenerator)
    Log4j: WARN Please initialize the log4j system properly.

To remedy this, make sure that the mbt.properties file exists in the same folder as mbt.jar.

What does 'java -jar -jar mbt.jar requirements' do?
It lists all requirements found in a model. Also:

$>  java -jar mbt.jar help requirements
usage: java -jar mbt.jar requirements [-f <file>]
Print a list of requiremnts found in the model.

-f,--input_graphml <file> The file (or folder) containing graphml
formatted files.

How does the keyword BLOCKED work?

This key means that the edge or vertex containing this keyword, will not be considered during the merge and thus not part of the model when generating test sequences.
Sometimes it can be useful, to mark vertcies or edges as BLOCKED due to bugs in the system you test. When the bug is removed, the BLOCKED keyword can be removed.
This key is valid for both vertices and edges.


 MBT doesn’t accept " | " symbol between two stop condition

When trying to use 2 alternative stop conditions, mbt does not accept the input if the "|" is not enclosed in quotioation marks. This depends on the terminal. When using Linux and bash, the terminal will interpret the | as a pipe commnand.
This is also true when using 2 generators.
This will work:

$>  java -jar mbt.jar offline -f ../demo/model/UC01.graphml -g RANDOM -s EDGE_COVERAGE:50|STATE_COVERAGE:50 
-bash: STATE_COVERAGE:50: command not found
This will work:
$>  java -jar mbt.jar offline -f ../demo/model/UC01.graphml -g RANDOM -s "EDGE_COVERAGE:50|STATE_COVERAGE:50"
e_init
v_BrowserStopped
e_StartBrowser
v_BrowserStarted
e_EnterBaseURL
v_BaseURL