One method of the interface Test is getTestObjectClass(). It determines the class of the test object which the test is supposed to be executed on.
Class<T> getTestObjectClass();
For example, if a test should run on wiki articles, the method should be implemented like this:
public Class<Article> getTestObjectClass()
Please implement the method getDescription() in a meaningful way, return a concise description about what this test is about. It will be used to generated the documentation table of all available tests of the system, c.f. Doc CIDashboard.
String getDescription();
this.addParameter("SearchString", TestParameter.Type.Regex, TestParameter.Mode.Mandatory, SEARCH_STRING_DESCRIPTION);details about parameter definition can be looked up in the class TestParameter. The testing framework then will assert that the parameter values are specified in a consistent way and otherwise inform the user accordingly. Hence, the implementation of the test does not need to deal with error handling about the parameters.
The actual test processing is executed within the method execute() of the Test-interface. The parameters are passed by a String array.
public static int execute(String[] args) throws IOException