SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Capturing Links javascript:WebForm_DoPostBackWithO

    Hi,
    I am new to OpenSTA.
    I am testing .net application.
    In my Application i have a link which Expands and Colapses.
    when i Place the mouse cursor on the link in the Status bar it displays :
    javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctrlPOC$cmdPOC", "", true, "", "", false, true))

    Is there any way to Capture/ record this link .
    or any Scl script to Make the tool click on this link.

    Thanks,
    Pradeep

  2. #2
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Capturing Links javascript:WebForm_DoPostBackWithO

    Did you try recording it?
    If so, what happened?
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

  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: Capturing Links javascript:WebForm_DoPostBackWithO

    OpenSTA records the http traffic between a browser (or non-browser http client) and server. It has no idea what the UI is doing, only the http requests that result from some UI action are seen. Odds are that expanding/collapsing the control produces no http traffic at all. If you want to be 100% sure, do as Joe suggested and record it. When recording add a start timer before you perform the UI action and an end timer after you do it then view the script. Any http requests generated as a result of the UI action will show up between the start and end timer statements in the script.

    It is both a strength and a weakness. A strength because OpenSTA tends to be immune to new browser programming paradigms (e.g. Ajax). A weakness because it takes more manual scripting to deal with basic correlations like viewstates, eventargs, etc.

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

    Re: Capturing Links javascript:WebForm_DoPostBackWithO

    Thanks for your reply.

    My application has so many edit fields and 1 save button.
    i want to edit one text field out of all the text fields and click on save button.
    Is there a way to send only these 2 fields in body and post the request.

    when i record its recording all the objects and there value in body.
    so whati want is to send only 2 objects in the post request.

  5. #5
    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: Capturing Links javascript:WebForm_DoPostBackWithO

    OpenSTA will record only what it observes. You can edit the script until you get it to do what you want, but you need to understand how UI actions modify the contents of the post body.

 

 

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 11:56 PM.

Copyright BetaSoft Inc.