The LISA_HOME home directory contains a file named wizards.xml. This file drives many of the wizards that are rendered in DevTest. Any wizard that prompts the user with frequently accessed test elements (assertions, test steps, filters, and so on) consults this file for the information to display in the tree view. You can add your custom extensions to this file to make them easily available to users. You can also remove built-in elements that are not used frequently. The wizards.xml file itself provides some useful information about how to read and modify its contents, but the concepts are here.
Wizard Tag
The wizard tag is used to provide a list of elements for a given type of test element and a given type of use. For example:
<Wizard element="assert" type="http">
DevTest predefines the element values (in this case "assert") and the types (in this case "http"). New element values or types are ignored. The type is the short name for the kind of elements that is described in the contained Entry tags. In this example, the Entry tags are documenting assertions. The type attribute drives when DevTest renders the given list. For common testing needs (like web testing, XML testing, and Java testing), DevTest allows the wizards.xml file to contain different assertions and filters that are appropriate.
Entry Tag
Here is a sample Entry tag:
<Entry> <Name>Make Diff-like Comparisons on the HTML Result</Name> <Help>This is the right assertion to use when you have a HTML result and you wish to perform diff-like operations on it. It lets you define simply what portions of the text may change, what may not change, and what portions must match current property values.</Help> <Type>com.itko.lisa.web.WebHTMLComparisonAssert</Type> </Entry>
The following child tags are required to define a wizard entry:
Copyright © 2014 CA Technologies.
All rights reserved.
|
|