Parsing a SubString
Locate the row of the name/value pair
and check its row box or select SubString as the value retrieval method (in some cases it
may already be selected). The SubString Parser box appears.If the box doesn't appear,
click the Edit button (with SubString selected as the Value Retrieval Method for the
row).The SubString Parser box appears. The recorded value is highlighted in orange. If the
string is very long the box will scroll right to display as much of it as possible.
- To extract this string, specify Leading Text or Trailing Text to delimit it by first selecting the given text to use and then clicking the Insert Selected button for that value.
- Specify the Leading Text before the string by selecting it and clicking Insert Selected on that row. This will include it in the string search.
- Specify the Trailing Text after the string by selecting it to include and clicking Insert Selected on that row. Using Trailing Text will further delimit the sub-string search.
- In the Test Result row, click the Test button to test the current selections. If the expression is not successful “No match” is posted in the Test Result field. If this occurs try providing additional criteria from among the below:
What you should see
- Value Length – Specify the value length to search.
- End of Text – Specify the EOT (or accept the default).
- Test Result – Click the Test button to test the current selections. If the expression is not successful “No match” is posted in the Test Result field.
In the shot on the right the Test Result field shows the __VIEWSTATE value has been successfully extracted.