Previous Topic: Create a New AssertionNext Topic: Define and Test a New Assertion


Deploy a New Assertion

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

Follow these steps:

  1. Tell DevTest to look for a new custom assertion in the lisaextensions file, as:
    asserts=com.mycompany.lisa.AssertFileStartsWith
     com.mycompany.lisa.AssertFileStartsWith=com.itko.lisa.editor.DefaultAssertController,com.itko.lisa.editor.DefaultAssertEditor
    

    You can also add this assertion to the wizards in the wizards.xml file.

  2. Copy the JAR file that contains your custom assertion and lisaextensions file to the LISA_HOME\hotDeploy directory.

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

    In this example, the AssertionFileStartsWith described previously has already been packaged for you at LISA_HOME\doc\DevGuide\lisaint-examples.jar. This custom assertion does not depend on any third-party libraries.

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