Converting existing function classes with Eclipse
If you have an existing function that is written for HCL DevOps Test Integrations and APIs (Test Integrations and APIs), you can use Eclipse to convert the function for use with Test Integrations and APIs 5 or later.
About this task
Note: It is unlikely that functions compiled for Test Integrations and APIs 4 work with Test Integrations and APIs 5.
Procedure
-
Remove the
register()
method. - Change the visibility of the default constructor to be public. No other visibility (for example, protected) is allowed. Otherwise, an exception is generated when you try to execute the function.
-
Remove the
super(String, String, int, int)
call in the default constructor.This super constructor does not exist anymore, so any calls to it produce an error. This call is replaced by the information that is contained in the extension definition. -
Remove the method
getSyntax()
. This information is now contained in the extension definition. - Create an extension to provide Test Integrations and APIs with details about your function (see Exposing the function).