SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Jul 2006
    Location
    Fairfax, VA
    Posts
    145
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    unable to get filter value in API

    Hi All,

    I want to get total no of positive and negative test cases. I have one user defined field test case type which takes positive or negative input. i am able to get total count of test cases for "2007 R3" which is "51" by using following code

    <font class="small">Code:</font><hr /><pre>
    Dim TestFactory, myTest , TestFilter , TestList , theTest ,StepF, aFilter, StepName ,aaFilter, TotalPositiveCase,TotalNegativeCase ,stepslist
    Set TestFactory = QCConnection.TestFactory
    Set TestFilter = TestFactory.filter
    TestFilter.Filter("TS_USER_02") = """2007 R3"""
    Set TestList = TestFilter.newList
    msgbox TestList.count

    </pre><hr />

    Now i created designstep factory object by using test object and trying to get total counts of "positive" test cases for each test by using same technique. I am getting "Failed to get Des Step Value"

    Any idea ?

    Here is the rest of the code

    <font class="small">Code:</font><hr /><pre>


    For Each myTest in TestList
    Set StepF = myTest.DesignStepFactory
    Set aaFilter = StepF.Filter
    aaFilter.Filter("ST_USER_01") = "Positive"
    Set TotalPositiveCase = aaFilter.NewList
    msgbox TotalPositiveCase.count

    Next

    </pre><hr />

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Posts
    678
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: unable to get filter value in API

    http://tdforums.tdadmins.com/index.p...st&amp;p=17849

    You are using the wrong field name. You want DS_USER_01.

 

 

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

Copyright BetaSoft Inc.