SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Cookies in GUI Scripts

    I want to get a value stored in a cookie in a GUI Script. How could I do this with SQABasic?

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cookies in GUI Scripts

    User (rperez@intesys.es.nospam) posted:

    I want to get a value stored in a cookie in a GUI Script. How could I do
    this with SQABasic?

    ---

  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cookies in GUI Scripts

    User (lgoodwin@russell.com.nospam) posted:

    Cookies are text files, so you can use SQABasic's 'File' functions to open
    a cookie file, read the contents one line at a time, check each line for
    the desired value, then close the file.

    If you are simply verifying that the expected value is somewhere in the
    file, this is easy. If you are trying to verify that a value is in a
    specific place in the file, you will have to do more coding.

    Luke


    ---

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

    Re: Cookies in GUI Scripts

    Thank you Luke for your answer.

    I have discovered another way to get a value
    from a cookie. If you insert an object properties verification point in the HTMLDocument, there is a property called 'cookie' where you can get cookie values;

    R.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Robot:
    User (lgoodwin@russell.com.nospam) posted:

    Cookies are text files, so you can use SQABasic's 'File' functions to open
    a cookie file, read the contents one line at a time, check each line for
    the desired value, then close the file.

    If you are simply verifying that the expected value is somewhere in the
    file, this is easy. If you are trying to verify that a value is in a
    specific place in the file, you will have to do more coding.

    Luke


    ---
    <HR></BLOCKQUOTE>



    ------------------

 

 

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 02:08 AM.

Copyright BetaSoft Inc.