Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to fetch the RQM Test data from multiple components using OSLC API?

 I am trying to fetch the testcases/testresults data from RQM using the OSLC API. But I can get the data only for one particular component. I cannot get data from the other components in the project area. I am using the below steps for fetching the data.


1. Fetch the root services document

2. Fetch the list of service providers

3. Fetch the list of services

4. Fetch the testcases using the query capability url

5. Fetch the testresults modified after a particular date using the test results query

But the data is being fetched only from one component. 

0 votes


Accepted answer

Permanent link
I think the issue is that you are not specifying a configuration context in your request to the OSLC query base. See https://docs.oasis-open-projects.org/oslc-op/config/v1.0/ps01/config-resources.html#configcontext.

For example, just now I tried a GET on the query base for a query capabilities for test cases in a project area that has multiple components. If I do not specify a configuration context, I think ETM uses the default configuration for the default component. I see test cases from that one ETM configuration. But if I add a Configuration-Context header set to the ETM stream I am interested in, I see the test cases from that stream. I can repeat for a different ETM stream (and component), and I see test cases from that other stream. I also tried specifying a global configuration, but it appears that ETM chooses the first local ETM configuration in that GC hierarchy.

So I think you will need to perform one query for each ETM configuration that you are interested in.
Karthikeyan P selected this answer as the correct answer

0 votes


One other answer

Permanent link

In most ELM applications, the service provider is specific to a project area, and if it declares any query capabilities, they will only return artifacts for that project area. If you want to query artifacts from multiple project areas, you will need to discover the query capabilities for each project area of interest and query each in turn.

0 votes

Comments

 Hi David,


I want to query artifacts from multiple components within a single project area. I have a project area which has two components. One component has 7000 test cases another component has 300 test cases. While using the project area test case query capability, OSLC API is returning only the 7000 cases in the first component. But I would like to have data from both the components.

Thanks,
Karthikeyan P

You likely get the data for the default component. You will have to first find the components and somehow provide the configuration for that. I have not looked at the OSSLC API for ETM so much, so I can't tell how to get the components. I think they should be discoverable as well.



Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,930
× 515
× 30

Question asked: Feb 02 '23, 1:30 a.m.

Question was seen: 1,450 times

Last updated: Feb 02 '23, 11:26 a.m.

Confirmation Cancel Confirm