Quantcast
Channel: Silk Test Knowledge Base
Viewing all articles
Browse latest Browse all 105

When executing my Silk4J category tests via command line I receive the error InitializationError()

$
0
0
Revision 1 posted to Silk Test Knowledge Base by chrislo on 11/1/2016 9:39:14 AM

The InitializationError exception can occur if the command line arguments specify a classpath which references a different version of the JUnit.jar file than that used by the Silk4J project.

To determine which version of JUnit files are used by your Silk4J project please follow the below steps:-

1)    Within Eclipse expand the Silk4J project you wish to execute from command line
2)    Locate the Junit4 folder


3)    Perform a right click on the JUnit4 folder and select properties
4)    Within the ‘Properties for Junit4’ window locate the field ‘current location’ this will then specify the file path and name of the JUnit file with associated version number.


5)    When executing the tests from command line use the above details as a refernce to ensure the correct JUnit.jar version is specified when listing the commandline arguments.

Tags: InitializationError, type mismatch, silk4j

Viewing all articles
Browse latest Browse all 105