Use a regular expression extractor to look for that string and act on it. Fail 
the test if you get that string. 

---
 Bob Nance
 Novation Systems
 256-534-4620
 
(iPhone-flavored)


> On Jun 5, 2015, at 7:37 AM, Vincent Lequertier <[email protected]> wrote:
> 
> Hi,
> 
> I'm building a test plan to test login on a web app. I'm using an HTTP 
> request with the POST method. If the credentials are incorrect, the website 
> is returning an alert() in javascript, like this:
> 
> <script language="JavaScript">
>    alert('le code utilisateur et/ou le mot de passe sont incorrects');
> </script>
> 
> And the URL returned looks like this: xxxxx/login.do?login_error=1
> 
> Actually, although the login fails, the test returns success because IMHO 
> jmeter does not take care of that. How can I make jmeter analyse the response 
> from the request so it can grab the javascript code and/or URL and then 
> indicates the error? As I'm new to the jmeter world, can someone provide me a 
> step by step to do this?
> 
> Let me know if you need more infos. Thanks in advance for any help.
> 
> -- 
> Vincent Lequertier
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to