SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Junior Member
    Join Date
    Oct 2004
    Location
    Tennessee
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Clearing cookie and login info

    I keep clearing the cookies and even delete files in temp folders... but still some of the log in info is there and hence cant run some of my scripts. Can I write some script that will clear the cookies or log in info with out having to manually do it everytime????

  2. #2
    Member
    Join Date
    Aug 2004
    Location
    India
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    Hi,

    If you are testing a Web Site then, it might be creating cookies while test run. You can write some VBScript code for clearing you temporary files folder. Use File System Object for the same.
    Otherwise just create a Shell object in VBScript and fire delete command to delete all the files from the folder.

    Regards,
    Unmesh

  3. #3
    Junior Member
    Join Date
    Oct 2004
    Location
    Tennessee
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    how do u write the script for the above steps.

  4. #4
    Junior Member
    Join Date
    Oct 2004
    Location
    Tennessee
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    how to write this script... some samples please

  5. #5
    Junior Member
    Join Date
    Aug 2004
    Location
    US
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    Hi,
    For Deleting Cookies Use:
    WebUtil.DeleteCookies

    'Delete all the files of the temp folder
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.GetFolder("Path of tmp folder")
    Set fc = f.Files
    For Each f1 In fc
    f1.Delete
    Next

    Hope this helps.

    Ravi

  6. #6
    Junior Member
    Join Date
    Oct 2004
    Location
    Tennessee
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    does this come before or after the recorded script... can u email me so I can ask u further... thanks...

  7. #7
    Senior Member
    Join Date
    Feb 2004
    Posts
    339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    Hey Sheelaqa

    In reading your original post I had a few thoughts. Is there a setting in your application that retains the username? If so disable that so when you end a session it won't retain previous data.

    If you are using Internet Explorer click Tools -> Internet Options. Click on the Content tab and make sure that the checkboxes for retaining username/password are not ON, and click the buttons to clear previously stored Forms and Passwords.

    Thanks,

  8. #8
    Junior Member
    Join Date
    Oct 2004
    Location
    Tennessee
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    I have done all that. I spoke to the developers and they say that they have made the settings to remember the user choices.... hence I have to cheat QTP in beleieveing otherwise.... I am able to do so by logging of multiple times (coz there are more then 2 servers involved)... and also by clearing cookies and temp files.

  9. #9
    Junior Member
    Join Date
    Aug 2004
    Location
    US
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    The code can used at the appropriate place. U can mail me @ ravidkumar@yahoo.com

  10. #10
    Senior Member
    Join Date
    Feb 2004
    Posts
    339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clearing cookie and login info

    sheelaqa, is it just the username that is retained or is the password as well?

    I'm unclear as to why your script doesn't overwrite any existing values with the values you need. That shouldn't be a problem with most websites.

 

 
Page 1 of 2 12 LastLast

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.00%
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:27 AM.

Copyright BetaSoft Inc.