Previous Topic: Create a Custom Java Test StepNext Topic: Define a Custom Java Test Step


Deploy a Custom Java Test Step

You must make a custom Java test step available to the model editor before you can use it in a test case.

To deploy a custom Java test step:

  1. Create a lisaextensions file or use an existing one if one exists.

    In the lisaextensions file, mention this class against the simpleNodes element.

    simpleNodes=com.mycompany.lisa.FTPCustJavaNode 
    
  2. Copy the JAR file that contains your custom Java test step and the lisaextensions file to the LISA_HOME\hotDeploy directory.

    If your custom Java test step depends on any third-party libraries, copy those libraries to the LISA_HOME\hotDeploy directory.

    For this example, the FTPCustJavaNode described previously has been packaged for you at LISA_HOME\doc\DevGuide\lisaint-examples.jar. This custom Java test step depends on the FTP client that is packaged at LISA_HOME\doc\DevGuide\lib\ftp.jar.

    Copy both of these files to the LISA_HOME\hotDeploy directory.

    Note: The FTP client that is used in the sample code is provided by www.amoebacode.com/.

    This client puts the given class name in a convenient drop-down list for users when authoring a test case. This is optional because DevTest can be given the class name at authoring time by typing or using the Class Path Navigator.

    If you are already running DevTest, exit and restart the program for this new setting to take effect.