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

Is it possible to fetch the Test Suite from RQM through Lyo OSLC V2

I am trying to fetch the Test Suite from RQM using Lyo OSLC/Java but didn't find any way to do this. Is it not supported in RQM 6.0 and OSLC V2 ?. Thanks.

0 votes



One answer

Permanent link
OSLC V2? Yes.
https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op

Lyo? Probably not. I checked the Lyo sample code on my machine (may not be the latest version) and only five RQM resources are supported - they are Test Case, Test Execution Record, Test Plan, Test Result and Test Script. You can find them in the project "org.eclipse.lyo.client.java", under src/main/java/org.eclipse.lyo.client.oslc.resources.

0 votes

Comments

Yes.
I have Checked lyo API and there is no Class for Test Suite.
But problem is, i have completed huge work through Lyo almost for all artifacts expect Test Suite. What should i do now?.
Should i do same work for OSLC V2 or is there any way i can use OSLC V2 in current Java project where i am using Lyo?

Dobald, Can you please provide me link to download OSLC V2 API.

You may consider extending Lyo by yourself, but I don't know how difficult it is. Last time I tried with RM and had little success.

I believe Lyo and the RQM reportable REST API is OSLC v2 compliant all along, so I don't quite understand your last request. Maybe somehow I gave you the impression that there is another API. If so, I apologize for the confusion caused.

Donald, I am able to create the the class and getting some of the fields value but in case of runTestcase it is showing zero when there are multiple test cases in Test Suite. Can you please loot into it.

@OslcDescription("Test Test Case used by the Test Suite.")
    @OslcName("runsTestCase")
    @OslcPropertyDefinition(QmConstants.QUALITY_MANAGEMENT_NAMESPACE+ "runsTestCase")
    @OslcRange(QmConstants.TYPE_TEST_CASE)
    @OslcReadOnly(false)
    @OslcTitle("Runs Test Cases")
    public Link[] getRunsTestCases()
    {
        return runsTestCases.toArray(new Link[runsTestCases.size()]);
    }
   
    public void setContributors(final URI[] contributors)
    {
        this.contributors.clear();

        if (contributors != null)
        {
            this.contributors.addAll(Arrays.asList(contributors));
        }
    }

QmConstants.QUALITY_MANAGEMENT_NAMESPACE = "http://open-services.net/ns/qm#"
QmConstants.TYPE_TEST_CASE = "http://open-services.net/ns/qm#TestCase"

Sorry for the late reply. I think you've got it resolved? From memory, the getter and setter should work as long as the object class is correctly initiated (from the XML source). The problem is if there is a mistake, the responding attribute will just be null and you get no warnings at all.

Can't say much but i have tried almost everything, changed the annotation paramants to every single possibility but didn't work. I had to stop the activity.
One solution is  since i am getting xml response so i can parse the xml data and get the link of all the test cases in test suite. But i was looking for something similar to the entity class which is working in my case i am able to create and get the Test suite but only Test suite description and title, retrieval and creation is not working for linked test cases to Test Suite.

showing 5 of 8 show 3 more comments

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,939

Question asked: May 12 '16, 3:05 a.m.

Question was seen: 2,441 times

Last updated: Jun 28 '16, 4:22 a.m.

Confirmation Cancel Confirm