Reading Test Case id from Test Result using OSLC
Hi,
|
2 answers
Hi,
|
A simple OSLC based GET on Test case would return a Test Case Shape. ( you can get a sample OSLC XML from following link - http://open-services.net/bin/view/Main/QmSpecificationV2Samples or http://open-services.net/bin/view/Main/QmSpecificationV2Shapes).
Based on that - I think you should have been looking for getIdentifier() routine ( because OSLC shape defines Identifier as per that specification).
You can try something like this -
private static void printTestResultInfo(TestResult tr) {
//See the OSLC4J TestResult class for a full list of attributes you can access.
if (tr != null) {
System.out.println("ID: " + tr.getIdentifier() + ", Title: " + tr.getTitle() + ", Status: " + tr.getStatus());
}
}
I believe you may have been using some sort of ready to use SDk to perform these OSLC operation. Are you using Eclipse LYO?
If so then its API documentation is available at - http://download.eclipse.org/lyo/docs/core/2.1.2/org/eclipse/lyo/oslc4j/core/model/ServiceProvider.html
Thanks,
Abhishek Comments Hi Abhishek,
|
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.