SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Dec 1999
    Location
    Phoenix, AZ, USA
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Adding Test Set Description content to Defect Description

    Hi,

    A user has asked if when logging a defect during a manual test run at the point that the step has failed if it is possible to capture the Description of the Test Set and add it automatically to the Description of the Defect being opened during the test run? Has anyone attempted this before and would be so kind as to share how this might be done?

    Take care,
    Mark
    *****************************
    * Mark J. Herbert
    * MarkJHerbert@gmail.com
    *****************************

  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
    It is definitely possible as I've done similar before at another client site. You basically need to work out what action is called (should be in the admin guide), trap the action in action can execute and add the text then. You may not be able to still have the auto text generate though without it overwriting your test set description so you might need to generate it yourself. There are also potentially multiple actions to trap as the action changes depending on if step is the only place they want the text added or they want the same functionality from the run or the test instance or even the test set itself. I think there were complications due to not getting access to the link object as it wasn't created at the time I needed the run id etc so I needed to use global variables to move data between the lab module and the defect module (actually I think I might have the user environment object or something adapting some code in the admin guide and making it more generic), but this was two years ago so I may be mis-remembering. And if you want to extend the functionality to sprinter then there are additional actions to trap again.

  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Phoenix, AZ, USA
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    I was able to identify that the "StepsView.NewDefect" action is what is called when you initiate adding a defect during a test run from the Manual Runner (we currently don't use Sprinter). However I can't seem to take the text captured from the Test Set Description and pass it into the Description field of the new Defect that is being opened. Any ideas?
    *****************************
    * Mark J. Herbert
    * MarkJHerbert@gmail.com
    *****************************

  4. #4
    Apprentice
    Join Date
    Mar 2007
    Location
    Torino, Italy
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hi,

    as Brendan say, if you would like only to catch the description of the TestSet and then copy this information to the defect you can do this using global variable.

    I suggest you to retreive the Description Information of the TestSet in the MoveTo event (TestSet_MoveTo). When you identify that the "StepsView.NewDefect" action is called than set the Bug field with this information.

    Let me know if you need more details.

    You can see also something particular that is the data transfer between ManualRunner module (run and step objects) and Defect Module:
    Data Transfer from Run to Bug - Welcome to motu4qc-en!

    Ciao,
    Massimo.
    Mt

  5. #5
    Member
    Join Date
    Dec 1999
    Location
    Phoenix, AZ, USA
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    How do I declare and work with global variables in QC?
    *****************************
    * Mark J. Herbert
    * MarkJHerbert@gmail.com
    *****************************

  6. #6
    Advanced Member
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    797
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Put them in the white space of the relevant module (ie. Test Lab Scripts), or Common Scripts if you want them to be accessible everywhere.
    Tip: They aren't usually needed.
    Regards,

    Alex
    ... just another Tester ...

  7. #7
    Apprentice
    Join Date
    Mar 2007
    Location
    Torino, Italy
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hi,

    as you need to pass data from TestLab to Defect I suggest you to create a variable in Common Module as global just put it in the white space as Irvine said:
    Dim strTestSetDescription

    in TestSet_MoveTo event in TestLab module put this code:
    strTestSetDescription = TestSet_Field("CY_COMMENT").Value

    Then in Bug_New event of Defect Module put this code:

    Bug_Field("BG_DESCRIPTION").Value = strTestSetDescription


    Try this and let us know.

    Ciao,
    Massimo.
    Mt

 

 

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 10.00%
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 10:43 AM.

Copyright BetaSoft Inc.