• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Apache JMeter and CAS ticket when login  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am newbie in JMeter.

Now striving with a tests. unfortunately this HTTPS login uses CAS ticket
the base page is:  https://portaltest.swps.edu.pl/

how to cope with a dynamic CAS ticket ?


The server-side log contains:



do you know a tutorial or something like.

any hint will be appreciated.
 
Ranch Hand
Posts: 49
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look into the page source, you will see something like:


The "value" might be different, but you need to pass this as a parameter along with credentials, so your test plan should look as follows:

  • Open https://portaltest.swps.edu.pl/ page (HTTP GET request)
  • Perform login (HTTP POST Request). You will need to provide "lt" input value from the previous step along with credentials


  • The process of extracting dynamic parameters from previous responses and adding them to the next request is called correlation and there is a plenty of material on it over the Internet.

    Another way of handling it in automated manner is using BlazeMeter Proxy Recorder (Mobile And Web), it is capable of exporting recorded scenarios in "SmartJMX" mode with automatic correlations applied so you should be able to record your scenario and it will be ready for replaying without any extra effort. See How to Cut Your JMeter Scripting Time by 80% article for more details.  
     
    IgorH Janicki
    Greenhorn
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks you very much for your answer.
    Some features are clear now.

    So I extracted the lt parameter then used as ticket.
    However it seems the ticket parameter needs a transformation.

    As I see tickects starts from ST- (example: ST-245-UJJFGpjzoLJTyXdurfcS-cas01.example.org) while the parameter from hidden field LT- (example: LT-10692-q3KN1kvxTVDomB4AVQa4I3Wd3PRjbb)

    =============================================================
    WHO: audit:unknown
    WHAT: LT-10692-q3KN1kvxTVDomB4AVQa4I3Wd3PRjbb
    ACTION: SERVICE_TICKET_VALIDATE_FAILED
    APPLICATION: CAS
    WHEN: Tue May 30 12:57:19 CEST 2017
    CLIENT IP ADDRESS: 192.168.9.127
    SERVER IP ADDRESS: 192.168.9.127
    =============================================================



    What to do ?
     
    IgorH Janicki
    Greenhorn
    Posts: 7
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    solved
     
    Greenhorn
    Posts: 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    IgorH Janicki wrote:solved



    Hello, I'm facing de same problem, what did you do to get the token with this format ST- (example: ST-245-UJJFGpjzoLJTyXdurfcS-cas01.example.org) ?

    I appreciate your help.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!