jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Modifying data while filling forms and basic Jmeter help
Date Mon, 13 Jul 2009 15:42:11 GMT
Hi
>Hey the url doesnt really exist indeed, but why is it appearing in the
recorded commands?
Because the HTML page contains a reference to your css file in the form of
<link>, the browser will make a request to this CSS file and it will get
recorded (the browser however ignores this error)
>(I said stop test on sampler error and it didnt- so I guess this means no
errors)
Not necessarily. This means there are no HTTP errors (like a 500 error) that
JMeter can detect. You must have good assertions in your test if you want to
be able to make this statement
>But the main problem lies in the fact
>that when I go to http request which contains my login details and change
>them to a wrong id, the test still runs without any error.
If your application returns an error message (e.g. Invalid
username/password) with a 200 status code, JMeter wont know this an error.
You must assert the content of the returned HTML page (either it must
contain a success message, or it must not contain the error message or it
must contain a particular text only found on success) - depends on your app
Use View results tree to view the response you obtain(render it as HTML and
see what you are getting).


On Mon, Jul 13, 2009 at 2:23 AM, phanikishan <phanikishan@gmail.com> wrote:

>
>
>
> Deepak Shetty wrote:
> >
> > a 404 means file not found. Observe the Requested URL and check whether
> > the
> > URL is right and the file really doesnt exist or if the URL is wrong.
> > Directly typing this URL in the browser should give you the same error.
> > Most browser incompatibilities are due to js/css which JMeter doesnt care
> > about.
> >
> Hey the url doesnt really exist indeed, but why is it appearing in the
> recorded commands? (if it doesnt exist, I never even go to the page
> right?).
> Also I'm running it on ie 6 and my web-application/page has loads of java
> scripts. So while recording what should I include the .*\.js and .*\.css
> patterns? (right now I include .* and dont exclude any).
> I have removed the css file from the http requests and run the test plan
> and
> it ran without any "errors" (I said stop test on sampler error and it didnt
> - so I guess this means no errors) . But the main problem lies in the fact
> that when I go to http request which contains my login details and change
> them to a wrong id, the test still runs without any error. I think this is
> the reason why i'm not able to change data while running a test.
> (What I tried doing was - recorded a test case which involves modifying a
> database parameter. Once recorded I tried using the Random() method to
> modify this parameter but it remains the same.)
> Can you help me as to what to do?
>
> Phani Kishan
>
> --
> View this message in context:
> http://www.nabble.com/Modifying-data-while-filling-forms-and-basic-Jmeter-help-tp24371548p24458475.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message