SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Feb 2002
    Location
    Redwood Shores, CA, 94065 USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    repeat use the value of a variable variable

    Hi, all,
    Please help. I had this problem all the time. I do website UI testing use silk, There is a variable I need to repeatly use for different test case one by one. is there anyway I can do it? How can I make it as a globle variable, so once it has the value, I can use all the time.
    thanks a lot!
    Emay

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

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Location
    Vermont
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: repeat use the value of a variable variable

    Yes, simply add it to the var sections in the script (just above the dclrand section)

    Any variable declared here will hold the same value throught all transactions unless it is specifically changed by you somewhere in the script.

    Alternatively if the value will never change then use a constant instead of a variable.

    example:-

    dcluser
    user
    VUser
    transactions
    TInit : begin;
    TMain : 10;

    var //**here is the global var section

    dclrand

    dcltrans
    transaction TInit
    begin


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

 

 

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 04:07 PM.

Copyright BetaSoft Inc.