SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Check Login page in Jmeter

    Hi,
    I am new to Jmeter. I created a test plan with a login page. The login page is for user to enter user name and password. I use the User Parameters to parametized the username and password. I want to write something to check the user name and password valid or not BEFORE continuing login to the web page. Can someone help? Thank you!

  2. #2
    Senior Member
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    Hi,

    You can use Assertions to validate it.

    http://jakarta.apache.org/jmeter/use...tml#assertions


    I hope it helps.

  3. #3
    Member
    Join Date
    Jan 2009
    Posts
    110
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    What is it you want to check?

    - Do you want to make sure that the Username and Password are valid (they will provide access to the app)? If so why would you need to do this in a performance test?

    When you parameterize the user/pw you should provide valid login credentials so the VU's can access the AUT.

    To get a better answer you will need to add some information about what is the scope of your project.
    ALM 11.0 Patch: 12
    PC 11.0 Patch: 7
    Vugen 11.0 Patch: 4

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    Jose - Thank you for the information. I will take a look at the link.

    Colombian - Thank you for your input. I have a list of username/password on a csv file. If a username or password are incorrected, the test will stop for that particular thread. I want to do a negative testing on the login page as well. Can that be achieved throught jmeter? All the input is greatly appreciated.

    Thanks again!
    -K

  5. #5
    Member
    Join Date
    Jan 2009
    Posts
    110
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    Are you using JMeter for functional or performance testing?
    ALM 11.0 Patch: 12
    PC 11.0 Patch: 7
    Vugen 11.0 Patch: 4

  6. #6
    Junior Member
    Join Date
    Jan 2009
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    Mainly for performance testing. However, I do want reuse the same test plan to cover other functional test. Thanks!

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

    Re: Check Login page in Jmeter

    There are very different approaches depending on which test you are asking about. You need to define business transactions most common to the use of the AUT.

    Do you really want to set a whole business transaction (Thread Group) just to see how well the application will respond to (lets say) 100 concurrent users with incorrect credentials?

    For negative functional testing you would create the transaction group and add all the necessary assertions to validate all your requirements.

    In performance tests we limit assertions just to the necessary, mostly where there are SAL in response time or to verify a specific (text) response is present after a request.

    For a performance test of HomePage -> Login -> Logout, you will want to record and modify a successful iteration and parameterize to replay with load.
    ALM 11.0 Patch: 12
    PC 11.0 Patch: 7
    Vugen 11.0 Patch: 4

  8. #8
    Junior Member
    Join Date
    Jan 2009
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    Thank you for the infor! You are absoluetly corrected. I am using Jmeter test to test the concurrent users (100+ users) and performance our web application. We have a LDAP server to manage all the user logins. I have a CSV file contains user name passwords information which passes the logins information to jmeter for concurrent users testing (100+ threads ).
    My question is IF one or more logins no longer valid during the login (login not longer exists in LDAP ), is there a way for jmeter to stop that particular thread and log the invalid login to log file and continue with other thread?
    Appreciate your input on this. Thanks.

  9. #9
    Member
    Join Date
    Jan 2009
    Posts
    110
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    When running a performance test the thread execution is not sequential, it is concurrent all threads will be executing according to the controllers and samples in the thread group. And that is the default behavior for JMeter it will continue all the steps in your given transaction and will flag as failed the steps, then just continue with the next iteration. I've actually been trying to figure out how to make the thread stop execution and restart the next iteration.

    So in the case you are running 100 VU's let say you provide a csv with 500 "valid" credentials, you could run a thread group of 100 to iterate 5 times. Try reading the documentation on CSV data set config to get a better idea of how the concurrent threads access the file.

    Remember to test a business transaction it must be set up in the most realistic way possible (include think time, transaction pacing).

    Hope this makes sense...
    ALM 11.0 Patch: 12
    PC 11.0 Patch: 7
    Vugen 11.0 Patch: 4

  10. #10
    Junior Member
    Join Date
    Jan 2009
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Login page in Jmeter

    Good advice! Many Thanks.

 

 

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 10.71%
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 03:32 AM.

Copyright BetaSoft Inc.