JaBUTi4Run is a project for just to manipulate the JaBUTi .jar for run it and some examples
- Java 1.6 or above to run
- BCEL 5.2 (Byte Code Enginnering Library)
- CAPI 1.0 (Curve API)
- Mucode (Java API for mobile agent systems)
- JUnit <=4.4 (Framework for writing and running automated tests)
- GraphViz <= 2.20.x
-
Java 1.6 or below
The library we use to manipulate Java bytecode is not completely compatible with Java 7.0 and above. We could still test when using the option "-XX:-SplitVerifier", but this option is ignored by recent Java 7 and 8 virtual machines. Thus, the only safe choice is to use an application compiled to Java 1.6 or below.
- Access here and dowload the project;
- Unzip in some directory of your choise;
- Run the JaBUTi 👍.
Follow the tips and the step-by-step below.
Here's some examples how to execute the JaBUTi.
java -cp jabuti.jar br.jabuti.gui.JabutiGUI
run.sh
java -cp jabuti.jar br.jabuti.probe.ProberLoader -p <project name> <class to execute> [execution parameters]
java -cp jabuti.jar br.jabuti.probe.ProberInstrum -o <file.jar> -p <project name> <class to execute>
java -cp <file.jar> <class to execute> [execution parameters]
- Run JaBUTi
- If is the first time
- Click in File
▶️ Open Class - Put the class (binary - .class) which will be test
- In classpath put the source path of the class file (without package name).
* For example:
- ../src 👍 (It's ok!)
- ../src/paper 🚫 (It's wrong!)
- Click in "OK"
- It will open the Project Manager window
- Select in User Packager the class which will be test (The classpath needs be correct to appear the class file)
- Click in ⏩ (second button) to select the class to instrument
- Click in Select and give a name for the project
- Click in "OK"
- Click in File
▶️ Save Instrumented Classes and after click in Yes, if the class there is a main method, otherwise No and next "OK". - Click in Teste Case
▶️ Executing JUnit Test Set - Put in Path to JUnit test suite source code the test path (java file - whithout package name)
- Put in Path to JUnit test suite binary code the test path (binary file - whithout package name)
- Put in Test suite full qualified name the test file name (whithout extension and with package name)
- Put in JaBUTi's library the JaBUTi's jar
- Check the javac path if is correct
- Click in Compile Test Case and check if the .class file was generated
- Click in Run Normally (no trace) - This action will check and execute the test cases
- Click in Run Collecting Trace Information - This action will enable a red button in the JaBUTi and this is because we need update the JaBUTi informations
- Close the test case window
- Click in Update
▶️ Update - Check the coverage in Summary choosing the scope of coverage
- Click in Reports
▶️ Custom Reports and give a name for the report file
For more informations access here and dowload the manual