...
It can be chained to another test to operate on the browser requests that occur as web scenario steps execute. Or , it can be used as a standalone test that operates on the file/text specified in the tool configuration panel’s Input tab.
...
Show informational messages: With the default tool configuration, this option determines whether SOAtest reports the changes made during cleanup. If you changed the HTML Cleanup configuration so that it no longer sends a "transformed source" output to the Edit tool or another tool, this option determines whether SOAtest reports the changes that are required to make the designated transformation. Messages will be reported in a results window , and can be accessed via the Window menu.
Process ASP, JSP, PHP files: Determines whether SOAtest attempts to perform the specified target action on available ASP, JSP, and PHP files. Note that SOAtest will ignore ASP <% ... %>, JSP <% ... %>, and PHP <? ... ?> tags in those files—as files, as well as ignore JSP scriptlets and custom actions that dynamically generate HTML attributes or attribute values—when values, when this option is enabled.
Keep embedded scripts and styles: Determines whether SOAtest attempts to extract all scripts and styles (including those that contain special characters) to external files.
- Target Document Type: Configures the type and level of cleanup performed. For more information on the available options, see Customizing Target Document Type.
Add XML Declaration: Determines whether SOAtest adds an XML declaration (
<?xml version="1.0"?>
) at the beginning of the transformed source. This option is only available in XHTML (DTD) mode.Update IDs in DOCTYPE declaration: Determines whether SOAtest replaces the IDs of the DOCTYPE declaration (if the document already contains a DOCTYPE declaration) or adds the DOCTYPE declaration with IDs (if the document does not yet contain a DOCTYPE declaration). This option is only available in XHTML (DTD) mode.
...
Option | Description | Example | |||||
---|---|---|---|---|---|---|---|
HTML Fragment | Cleans HTML fragments, but does not convert them to XHTML. In this mode, SOAtest:
|
is transformed into
| |||||
HTML Document | Cleans complete HTML documents, but does not convert them to XHTML. In this mode, SOAtest:
|
is transformed into
| |||||
XHTML Fragment | Cleans HTML fragments and converts them to XHTML. In this mode, SOAtest:
|
is transformed into
| |||||
XHTML (DTD) | Cleans HTML documents and converts them to XHTML. In this mode, SOAtest:
|
is transformed into
|
...
- Right-click the HTML Cleanup tool node in the Test Case Explorer tab and select choose Add Output from the shortcut menu. The Add Output dialog displaysopens.
- Select Transformed Source from the left pane and Write File from the right pane of the Add Output dialog and click Finish. A Transformed Source> Source > Write File node is added to the HTML Cleanup node.
- (Optional) Customize the Write File tool as described in Write File.