Is it possible to fetch the Test Suite from RQM through Lyo OSLC V2
One answer
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.
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.