SPONSORS:






User Tag List

Results 1 to 4 of 4

Thread: Global variable

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Location
    california
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Global variable

    how can i declare a global variable ??

  2. #2
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global variable

    declare the variable in a .inc file. I have a file globals.inc that I use to store all of my global variables. All of my .t files "use" globals.inc

  3. #3
    Junior Member
    Join Date
    Aug 2000
    Location
    california
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global variable

    i am running all the scripts in a suite and there i am getting problem while doing incriment for the varible when a testcase is run on one machine and when same testcase run on the diff machine counter doesnt increase and that makes the testcase fail

    is there any othe way for declaration of the variable

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    New York, NY, USA
    Posts
    137
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global variable

    Create the Global Variable, Create a Local Variable for each machine, read the value of the Global into the local and increment that one. Would this work for you?

    BTW if using the "Use" statement is causing the problem, you can have the file included by putting it into the runtime options. This will have virtualy the same effect as the "use" statement.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 05:48 AM.

Copyright BetaSoft Inc.