SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: In TestCaseExit () - getting Plan Attributes?

    Are you trying to access plan variables or option sets?

    John


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

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Location
    Roseville, CA USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: In TestCaseExit () - getting Plan Attributes?

    I am trying to access plan variables. They are the attributes that can be set in a plan for a specific testcase.

    Thanks

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

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Location
    Roseville, CA USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    In TestCaseExit () - getting Plan Attributes?

    Hi all,

    Many thanks for your help in past.
    Unfortunately, I have come to another stumbling block.

    Is it possible in a TestCaseExit () function that overrides the Default to access attributes for the test case that are set up in the test plan? I see in the help that no built-in function exists, but can I write something that will do it?

    Thanks in advance.

    Elizabeth

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

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: In TestCaseExit () - getting Plan Attributes?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by licholai:
    I am trying to access plan variables... <HR></BLOCKQUOTE>
    Silk does not retain global variables when they're driven from a.pln file - they are reset between testcases.

    One way to get around this is to pass those $variables as parameters to a setup() testcase near the beginning of .pln run. In that setup() routine, write those variables to a .inc file inc mimicking the exact format that you'd use if you were to manually enter those variables in an include file. Variable $s would appear as:
    FileWriteLine (FileHandle, "const string s = {s} ;");
    Then just include that inc file in each subsequent .t file where it will be needed.

    John



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

  5. #5
    Senior Member
    Join Date
    Oct 2001
    Location
    NC, United States
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: In TestCaseExit () - getting Plan Attributes?

    Not sure what all attributes you are looking for but if it is 'Testcase Data:' you could try using 'GetTestCaseArgs()' in the testcase exit and print the values or ....

    ------------------
    -gram
    -gram

  6. #6
    Junior Member
    Join Date
    Mar 2001
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: In TestCaseExit () - getting Plan Attributes?

    I have a similar problem:

    In this case, I want to query - at run-time - the "testtype" attribute as set in the .pln file. Is there any built-in way to do this?

    Tom

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


    [This message has been edited by teble (edited 01-10-2003).]

 

 

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 12:41 PM.

Copyright BetaSoft Inc.