SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Feb 2007
    Posts
    252
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Typical programing problem - DP

    Friends,

    Here is typical problem that's killing me. In my script i am sending Http request for html links and check the response code to (200, 404 etc) to see if link is broken.. It's fine till here.

    I use following code to send HTTP request
    HttpObject.Send

    Here for some of the links I get the alert window while sending Http request and now the problem is when this happens script doesn't execute the next line of code and stays there until i close the alert window manually..

    I tried putting checkpoint on HttpObject.Send

    I can handle that alert window by putting code in if condition but that will decrease the performance of my script because this happens with one out of 100 links so for 99 time if condition will execute unnecessarily..

    Need expert thought... kindly help..

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Typical programing problem - DP

    Did you see which links causes this? In case there are some links which you can predict then you can use if else based on the link.

  3. #3
    Senior Member
    Join Date
    Feb 2007
    Posts
    252
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Typical programing problem - DP

    there are around 8-9 links across the site which causes this.. how ever there are some hundreds links which are checked this way recursively so if i put if condition for these four links that line of code will be executed everytime.. for example if i check 300 links it will execute this if condition 300 times..
    I am not able to figure out what causes 'Security alert' window for those some links.. and after sending request for those links why QTP waits before executing the next step..?

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Typical programing problem - DP

    I would suggest you to put timers and notice the time differences when you use if and when you don't. I guess you are worrying more than is required.

  5. #5
    Senior Member
    Join Date
    Feb 2007
    Posts
    252
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Typical programing problem - DP

    Tarun your point may be right! but let me give you stastics in one of my script i have around 467 links checked (thats largest) so my result window looks odd when i put if condition before checking any link...

    One more thing i never had this security alert before with same application. Can we handle it through browser so that it didn't displayed again?

  6. #6
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Typical programing problem - DP

    Can you attach screen shot of the window in a word file?

 

 

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 12.50%
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:16 AM.

Copyright BetaSoft Inc.