You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Pratik Oza <oz...@yahoo.co.in> on 2014/12/04 11:31:36 UTC

Jmeter Response data help

Hi All,
I am new to Jmeter and have learnt few things which are still of beginner level.I have created a simple Test Plan for eCommerce website where, I entered the URL and the Path for navigating different pages. While checking it in View results in tree in response data tab in HTML view, the page shows the Login page, with error message as the unsupported browser version, but the request shows successful with no error.
I have entered the URL for site and the Path of a page, but the response data shows the login page in HTML view. This is happening for all the pages, where the correct path to different web pages are mentioned but the response data shows the Login page.
I have attached the screenshot  for reference.
Kindly assist.
Thanks.Pratik


  

Re: Jmeter Response data help

Posted by Flavio Cysne <fl...@gmail.com>.
Pratik,

    HTML view in View Results in Tree's Response Data tab does not support
Javascript, that's why you're seen this message. If you want to validate
that the Login page is loaded as expected then add a Response Data
Assertion using an expression that represents a textual reference only
shown when Login page is correctly loaded.

Re: Jmeter Response data help

Posted by sebb <se...@gmail.com>.
On 4 December 2014 at 10:31, Pratik Oza <oz...@yahoo.co.in> wrote:
>
> Hi All,
>
> I am new to Jmeter and have learnt few things which are still of beginner
> level.
> I have created a simple Test Plan for eCommerce website where, I entered the
> URL and the Path for navigating different pages. While checking it in View
> results in tree in response data tab in HTML view, the page shows the Login
> page, with error message as the unsupported browser version, but the request
> shows successful with no error.

If the site depends on a particular browser version to work, then you
need to provide a suitable User-Agent string using the

http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Header_Manager

By default, JMeter only marks a response as unsuccessful if the HTTP
reply has a failed status - e.g. 404.
However in most cases a failed login returns a HTML page with status
200; the content of the page says whether or not the login was
successful.

Use a Response Assertion to check that the page looks OK.

In your case if the script does not work after you have fixed the
User-Agent then try adding a Cookie Manager.

Please read the User Manual, including:

http://jmeter.apache.org/usermanual/build-web-test-plan.html

> I have entered the URL for site and the Path of a page, but the response
> data shows the login page in HTML view. This is happening for all the pages,
> where the correct path to different web pages are mentioned but the response
> data shows the Login page.
>
> I have attached the screenshot  for reference.
>
> Kindly assist.
>
> Thanks.
> Pratik
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org