SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2007
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Global TestSet Configuration Variable?

    Hi Guys,

    I've automated about 50-60 BPT tests. However i am now running into data issue. I'ev decided to run some configuration data from an XML file. But i just relised i have to change the path in each component in each tests.

    is there a concept at testset level where i can specify paramater/variable so my components can use it?

  2. #2
    Member
    Join Date
    Jul 2005
    Location
    Melbourne, Australia
    Posts
    453
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Global TestSet Configuration Variable?

    You could either add a user defined field to the testset (cycle) or add the xml as an attachment to the testset. You can access them using the OTA API.

    Would you need to change the path often or are you running testsets in parallel that require different paths? If you don't you can just set the path in an environment variable for the machine the tests are executing on.

    Without knowing more context it is difficult to say what the best solution is in your case. There are many others beyond what I've suggested above.

    Cheers,
    Brendan.

  3. #3
    Member
    Join Date
    May 2007
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Global TestSet Configuration Variable?

    Thanks Brendon. Yes i do need to change paths often, Per each environment which has different configurations (i.e host addresses, etc)

    I like the user defined one. How would i be able to call that user defined field in a business process component?

  4. #4
    Member
    Join Date
    Jul 2005
    Location
    Melbourne, Australia
    Posts
    453
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Global TestSet Configuration Variable?

    You can access the QC OTA API from within a business component. If you look at both the QTP user guide and the OTA API user guide it shouldn't take too long to work it out. I think you can get the current test set directly but if you can't you can definitely get the current test and from there the current testset. Once you have the testset object you can access its fields.

    Cheers,
    Brendan.

 

 

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 09:23 AM.

Copyright BetaSoft Inc.