Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
moibelgal Absent Member.
Absent Member.
739 views

How to get filtered tests in test set using OTA API?

Hi experts,

In QC Testlab, I can filter tests in test set with attributes (for example: Run Type).
How can I get those filtered tests using OTA API?

Thanks
0 Likes
10 Replies
Eric Schumacher Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

Have you looked at the examples in the API manual?

Where are you stuck?

Eric Schumacher
TDForums.com
0 Likes
Highlighted
moibelgal Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

In example, we need to pass FilterText to GetXFilter/SetXFilter methods.

In my case, user filters tests of a test set in Test Lab. How can I get the test list after filtering?

Please refer to attachment.

Thanks
0 Likes
moibelgal Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

Any update?
0 Likes
moibelgal Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

Hi experts,

Does anybody know?

How to get tests of a test set after filtering?

Steps:
1. Create a test set
2. Add tests to test set
3. Filter tests that Run Type = "Automated"
4. Get tests after filtering

Thanks
0 Likes
Eric Schumacher Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

You aren't really saying what you are doing with them once you 'get' them.

You say you want to get them through the API, but you are describing how to do it in the GUI.

Can you provide more detail to make your needs a little more clear?
0 Likes
moibelgal Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

Hi Eric,

Thanks for your prompt response.

I want to get tests of a test set after filtering to do some business things. And I definitely need to do that.

Please confirm if we could get tests after filtering a test set? Or we can NOT do that and we need to do a work around rely on my business?

0 Likes
Eric Schumacher Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

Cannot.
0 Likes
moibelgal Absent Member.
Absent Member.

Re: How to get filtered tests in test set using OTA API?

Is this the official confirmation from HP?
0 Likes
ran90
Frequent Visitor.

Re: How to get filtered tests in test set using OTA API?

I want to filter my test lab on the basis of priority filed. How can I do that using OTA API.

 

Like to filter by status I am using testFilter.Filter("TC_STATUS") = "Passed" code.

What field should be written in place of TC_STATUS to filter on the basis of priority?

0 Likes
Honored Contributor.. arichtman Honored Contributor..
Honored Contributor..

Re: How to get filtered tests in test set using OTA API?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.