SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8

Thread: New to Jmeter

  1. #1
    New Member
    Join Date
    May 2012
    Location
    Penna, USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    New to Jmeter

    I am having a problem when running a recording in jmeter. In the Results Tree it shows that the login screen is hit over and over - it should be accessing other pages. During the recording I was able to login and access the restricted pages.

    My plan was this:

    1. Login to the internal site
    2. Click on various pages in the site
    3. Create objects on the site
    4. Logout

    I was able to record this using jmeter and also using bad boy (tried both).
    But, when I run the script back in jmeter, I see the login page shown in the Results Tree anytime it tries to access a page after the login. No errors on those pages though???? I am confused. With Bad Boy, I get an error about Unknown protocol: Javascript.

    Any suggestions? This is only HTTP.

    Thanks.

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    India
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    "When playing back in JMeter the tool is hitting the login page again & again?" is this your problem statement?

    This happens, when the login does not happen successfully.

    Generally the tools capture the requests and play it back sequentially.

    In your case:
    First request is to your login screen.
    Second is clicking on various pages in the site. But if the first step is not successful then the server again redirects to the login page. (This redirection mechanism is purely driven by code deployed on the server)

    In your case authentication is failing and it is redirecting to login page. Please note that the response is the login page. If you check the request, it will be for a different page.

    Why is the authentication failing?
    1. Does your application have NTLM authentication?
    2. Did you use cookie manager?
    No one can see beyond their choice!

  3. #3
    New Member
    Join Date
    May 2012
    Location
    Penna, USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    Thanks. I should have phrased it better. The problem is that I record my steps, but then the login portion of the script fails when I run it.

    I have tried redoing the steps numerous times with different logins - all work manually. It is only when the script runs that the login fails. But, the return on the results in jmeter doesn't show an error on the login part.

    Suggestions?

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    India
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    You need to understand how your application authentication works. Check with your development team.
    No one can see beyond their choice!

  5. #5
    Member
    Join Date
    Sep 2008
    Location
    India
    Posts
    394
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    Do you have a cookie manager?

    Adding a cookie manger should solve your problem..
    Best Regards,
    Sanket Vaidya

    Om - Effortless Text Generation http://sourceforge.net/p/omfortesting/home/description/

  6. #6
    Junior Member
    Join Date
    Nov 2011
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    Check this block:

    apache-jmeter.blogspot.com

  7. #7
    Member
    Join Date
    Jan 2010
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    Sounds like you didn't add a cookie manager in your test script. Put it below the thread spool. You usually don't have to monkey around with the protocol

  8. #8
    Apprentice
    Join Date
    Mar 2012
    Location
    Minsk, Belarus
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: New to Jmeter

    First you should check, if you've added HTTP Cookie manager to your test. For more details read How to use HTTP Cookie Manager

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.57%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:11 PM.

Copyright BetaSoft Inc.