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:
In the lisaextensions file, mention this class against the simpleNodes element.
simpleNodes=com.mycompany.lisa.FTPCustJavaNode
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.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|