Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How do you execute JUnit tests from SCTM?

How do you execute JUnit tests from SCTM?


How do you execute JUnit tests from SCTM?


How do you execute JUnit tests from SCTM?

SilkCentral Test Manager allows the user to run JUnit tests on any properly configured machine with an Execution Server. It is important to note that SilkCentral currently only supports JUnit 3.8.1, a change in the way JUnit tests were written was introduce in JUnit 4.0 and is not supported.

To run a JUnit test from SilkCentral Test Manager create a new test definition selecting "JUnit" from the drop down. Fill in the rest of the details as you see fit.

Press "Next" which will load the JUnit Test Properties dialog. From here we define the following properties:

Test Class: The Java class which implements the JUnit functionality and contains JUnit tests to be executed.

Test Method: Enter the name of a single JUnit method to be executed.

Java home directory: Enter the directory of your JRE, do not append "\bin" as SCTM will do this for you.

Classpath: Enter the classpath required to successfully execute the JUnit tests.

Click "Finish" to save your JUnit Test Definition.

You should now be able to right click your newly created Test Defintion and perform a "Try Run Test Definition" to execute your JUnit tests.

Old KB# 24508


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:46
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.