Verify Contains Rule
The Verify Contains rule is similar to the Verify Title rule but is more general—text can be searched for anywhere in the response content.
Related:
Example Script Code Changes (Java)
try (Response response1 = request1.send())
{
....
}
Changes to the following:
try (Response response1 = request1.send())
{
response1.verifyContains("Login successful!", ActionType.ACT_WARNING);
....
}
Generation Rules Wizard Pages
Set expected response content page
Use the Set the expected response content page to specify the content you want to look for.
After the Set the expected response content page, the common Success/failure options page is used to determine what action to take if the title matches or doesn't match.
After the Select Success/Failure options page, the common pages Create Request Filter and Rule name and summary follow.