Hi am trying to get a list of test configurations using complex filter I got from ALM GUI (its from the button Copy Filter Settings)
[Filter]{
TableName:CYCLE,
ColumnName:CY_CYCLE_ID,
LogicalFilter:409,
VisualFilter:409,
NO_CASE:
}
{
TableName:CYCLE,
ColumnName:CY_FOLDER_ID,
LogicalFilter:\0000001a\^Root\Test sety 01\Podzim^,
VisualFilter:\0000001a\^Root\Test sety 01\Podzim^,
NO_CASE:
}
{
FLT:[X],
TYPE:TESTSET-TSTEST,
EXISTS_IN_IDS:Y,
IN_IDS:\0000007a\[Filter]{
TableName:TESTCYCL,
ColumnName:TC_TESTER_NAME,
LogicalFilter:username,
VisualFilter:username,
NO_CASE:
}
}
I only know how to filter easily using
TestConfigFactory.Filter.SetXFilter ("Value from database") = "Value"
I only found this example in OTA API Documentation:
' Get the Test filter object. This filter is unconditional.
' We want all the tests from the test set.
'
Dim testF As TestFactory, testFilter As TDFilter
Set testF = tdc.TestFactory
Set testFilter = testF.Filter
' Set the cross filter: All tests associated with the
' test sets that meet the criteria - in this case, the
' one test set whose name was passed to this routine.
testFilter.SetXFilter "TEST-TESTSET", True, tsFilter.Text
Is there any way in ALM Customization to achieve it like this?:
set testConfigFact = TDConnection.TestConfigFactory
set testConfigFilter = testConfigFact.Filter
testConfigFilter.SetXFilter ("SOMETHING") = [Filter]{
TableName:CYCLE,
ColumnName:CY_CYCLE,
LogicalFilter:igor,
VisualFilter:igor,
NO_CASE:
}
set testConfigList = testConfigFilter.NewList()
set testCfg = testConfigList.Item(1)
msgbox "test config: " & testCfg.ID