SPONSORS:






User Tag List

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

Thread: Login fails

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Login fails

    (This post moved to start a new topic)

    Hi, i'm now getting on another problem...
    I have recorded my scenario (only a connection and discnonection on my server with a login and password).
    I'm not using https.
    The generated file seems correct.

    But when i replay the scenario, i get a error 500 on login.

    I have downloaded the BView plugin for OpenSTA to see the pages visited by my scenario, and i see that the first page (go on login page) is well loaded and the second (connection) returns an error 500.

    [ QUOTE ]
    !Begin replay
    1-1 :[31]:START TIMER: T_TEST_2
    1-1 :[32]:CONNECT(1) to proxy server ptx.proxy.corp.sopra:8080
    1-1 :[35]:REQUEST(1): GET http://172.30.209.181:8080/snw-web42050/pages/login.jsf HTTP/1.1
    1-1 :[45]:Connection 1: receiving results with status 200
    1-1 :[45]:REQUEST(1): POST http://172.30.209.181:8080/snw-web42050/pages/login.jsf HTTP/1.1
    1-1 :[59]:Connection 1: receiving results with status 500
    1-1 :[59]:REQUEST(1): GET http://172.30.209.181:8080/snw-web42....jsf?init=true HTTP/1.1
    1-1 :[69]ISCONNECT(1)
    1-1 :[69]:Connection 1: receiving results with status 302
    1-1 :[73]:CONNECT(2) to proxy server ptx.proxy.corp.sopra:8080
    1-1 :[75]:REQUEST(2): POST http://172.30.209.181:8080/snw-web42...es/accueil.jsf HTTP/1.1

    [/ QUOTE ]


    Do you know why the replay does not work ?

    Thanks

  2. #2
    Junior Member
    Join Date
    Mar 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Login fails

    i think this is this part of code that cause the problem :
    [ QUOTE ]
    PRIMARY POST URI &
    "http://172.30.209.181:8080/snw-web42050/pages/" &
    "login.jsf;jsessionid=93B5E41132E7F10ED97348699DEC 17FB HTTP/1.1" ON 6 &
    HEADER DEFAULT_HEADERS &
    ,WITH {"Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, " &
    "application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, " &
    "application/msword, application/x-ms-application, application/x-ms-xbap, " &
    "application/vnd.ms-xpsdocument, application/xaml+xml, */*", &
    "Referer: http://172.30.209.181:8080/snw-web42...ges/login.jsf", &
    "Accept-Language: fr", &
    "Content-Type: application/x-www-form-urlencoded", &
    "Content-Length: 141", &
    "Pragma: no-cache", &
    "Cookie: "+cookie_1_0, &
    "X-NovINet: v1.2"} &
    ,BODY "j_username=1&j_password=X&org.apache.myfa ces.trinidad.faces.FORM=j_id39&_noJavaScript=f alse&ja" &
    "vax.faces.ViewState=%211357i1s7sp&source=j_id 43"

    [/ QUOTE ]

    which returns :
    [ QUOTE ]

    1-1 :[181]:REQUEST(6): POST http://172.30.209.181:8080/snw-web42...7348699DEC17FB HTTP/1.1
    1-1 :[199]:Connection 6: receiving results with status 500

    [/ QUOTE ]

    Could you help me ?

    Thanks

  3. #3
    Moderator
    Join Date
    Jun 2003
    Location
    Hollis, NH, USA
    Posts
    1,551
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Login fails

    you need to correlate jsessionid and (possibly) viewstate.

    A good way to see what you need to correlate is to record the exact same actions twice (delete cookies prior to each recording). Next, use a program like windiff to see the difference between the two scripts. This will help you identify what values need to be correlated. Odds are good that if you see two different values (like jsession id, or viewstate) in the two scripts, you will need to correlate these values in your script.

    Read more about correlation here http://www.sqaforums.com/showflat.ph...c=1#Post500366

 

 

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 11.54%
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 06:23 PM.

Copyright BetaSoft Inc.