0
私は、QC APIのためにVBで次のコードを "テストセットに含まれていないテストを検索する"というコードを持っています。 Python?特に、ラインtestSetFilder.Filter("CY_CYLE") = ">= 0"
Quality Center OTA API - Pythonを使用したTDFilter
VBコード
Public Sub ListUnusedTests()
'Get the list of tests that are not in any test set
Dim testSetF As TestSetFactory
Dim testF As TestFactory
Dim testSetFilter As TDFilter
Dim TestFilter As TDFilter
Dim aTest As Test
Dim testL As List
Set testSetF = tdc.TestSetFactory
Set testSetFilter = testSetF.Filter
' Exclude the default test set.
testSetFilter.Filter("CY_CYCLE") = ">= 0"
Set testF = tdc.TestFactory
Set TestFilter = testF.Filter
TestFilter.SetXFilter "TEST-TESTSET", False, testSetFilter.Text
Set testL = testF.NewList(TestFilter.Text)
Dim Item
For Each Item In testL
Debug.Print Item.Name
Next Item
End Sub
ありがとう
を使用することですか?私はQCワークフロー(VBScript)自体ではなく、PythonでQAの自動化を行っただけです。おそらく、この投稿は役に立ちます:[リンク](http://stackoverflow.com/q/2627419/589520) – Raceyman
私は実際に問題を解決しました。私の短い答えは、私はSetFilter()を使用しています!あなたがQCでいくつかの助けをしたい場合私に教えてください...ありがとう、 – abarik