Hi, 

Checking that it's present in the response should be just: 

Response Assertion: 

    1. Select "Text Response" 
    2. Select "Contains" 
    3. In Pattern to Test simply add " Created a new user account\. No e-mail 
has been sent\. " (without quotes) 

More complex regexes can be constructed to make it more robust, but this should 
work as a simple example. 

Regards, 
Noel 

----- "Paul Harris" <[email protected]> wrote: 
> 
> Hi all, 
> 
> After creating a user a successmessage will display in my application 
> like 
> "Created a new user account. No e-mail has been sent." I want to 
> capture it 
> in response assertions. how can i do that 
> 
> I tried with so many ways like 
> Text Response - Contains 
> Text Response - Matches 
> Text Response - equals 
> 
> but the assertion is failing. This text is not html when i see the souce 
> code it is displaying as "<div class="messages status"> 
> Created a new user account. No e-mail has been sent.</div>." 
> 
> Please help me how can match this text in response assertion 
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-use-response-assertions-for-text-maching-tp24367962p24367962.html
>  
> Sent from the JMeter - User mailing list archive at Nabble.com. 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [email protected] 
> For additional commands, e-mail: [email protected] 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [email protected] 
> For additional commands, e-mail: [email protected] 
> 
> 

-- 
Regards, 
Noel 

Reply via email to