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 2004
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Req Coverage for a test instance in TL using OTA

    I am trying (unsuccessfully) to extract the Requirements Coverage for a test instance in Test Lab. I have been able to extract the Requirements Coverage for a test in Test Plan using the following code:

    Set tdTestFactory = tdCnx.TestFactory
    Set tdTestFilter = tdTestFactory.Filter
    tdTestFilter.Filter("TS_SUBJECT") = "^" & strTestName & "^"
    Set tdTestListInFactory = tdTestFactory.NewList(tdTestFilter.Text)
    Set t = tdTestListInFactory.Item(1)
    blnHasCoverage = t.HasCoverage
    If blnHasCoverage = True Then
    Set reqList = t.GetCoverList
    For Each req In reqList
    ReqCover = ReqCover & Chr(10) & req.Name
    Next

    The GetCoverList method is available for a Test Object but it is not available for a TSTest Object. This wouldn't be a problem except that a test in Test Plan can have different Requirements Coverage compared to the same test in Test Lab. At the moment, I can only extract the Requirements Coverage for a planning test but not for a test instance. Does anyone know if it is possible to extract the Requirements Coverage for a test instance in Test Lab using OTA?

    Thanks,
    Matthew

  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: Req Coverage for a test instance in TL using OTA

    TSTest implements ICoverable so you might be able to cast to ICoverable, get the coverage factory and then requirements from there. I haven't tried this though, its just a thought.

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

Copyright BetaSoft Inc.