This topic explains how to apply and configure the Search tool in SOAtest and Virtualize. This tool searches text for user-defined keywords. It can be configured to detect either the presence of unwanted terms or the absence of expected terms.
Sections include:
The Search tool searches text for user-defined keywords and reports failures if the specified keywords are present or absent (depending on the tool settings). It is useful if you want to be notified of either the presence of unwanted terms or the absence of expected terms.
Since the purpose of the tool is to search for the presence or absence of user-defined keywords, you must customize it before using it to specify a) what term you want to search for and b) whether you want messages reported if the term is absent or present.
The Search tool is highly-customizable to allow precise searches. You can add keywords, remove key-words, or clear the list of keywords. Additionally, you can specify whether the presence or absence of the keyword should be reported, and what message is reported if the specified pattern is detected. You can also control whether searches use regular expressions or whether searches are case sensitive.
You can customize the following options
Custom Output Message: Specifies the message that displays in the Quality Tasks view when a failure is found. When using a search tool in the context of a project (for example, in a test suite), you can parameterize the messages that the search tool outputs if a search term is found (or not found, depending on the settings). This allows you to use a list of output messages from a data source, which is not possible any other way.
Two special wildcards are allowed in messages. The wildcards will be replaced with the appropriate values:
%0
will be replaced by the keyword that was or was not found. In regular expression mode, this will be the actual string on the page that matched the regular expression.
%1
: will be replaced with the regular expression pattern that was being used to search when the search tool is in regular expression mode.