It's all about the answers!

Ask a question

Not getting linked Test cases in Test Suite using OSLC Lyo


Naveen Tyagi (19769152) | asked May 19 '16, 12:15 a.m.
edited May 19 '16, 12:26 a.m.
Hi,
I have created Test Suite  class to fetch Test Suite from RQM using OSLC Lyo. Though, i am getting Description, creator, extended properties values but not getting Test Cases in Test Suite. is there something wrong in my getRunsTestCases()  method or am i missing something ?

@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));
        }
}

public void addRunsTestCase(final Link testcase)
   {
       this.runsTestCases.add(testcase);
   }
  

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

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered May 24 '16, 10:35 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The following is correct:

@OslcPropertyDefinition(QmConstants.QUALITY_MANAGEMENT_NAMESPACE+ "runsTestCase") 
@OslcRange(QmConstants.TYPE_TEST_CASE) 
@OslcReadOnly(false) 

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

Try changing QmConstants.QUALITY_MANAGEMENT_NAMESPACE+ "runsTestCase" to "oslc_qm:runsTestCase".

You may want to post this question to the Eclipse Lyo newsgroup.

Note, the RQM OSLC QM V2 API has limited support for test suite artifacts (check the service provider document). You may want to use the other public REST API in RQM, called the RQM Reportable REST API

Comments
Naveen Tyagi commented May 25 '16, 4:29 a.m.

I used this but still not working. meanwhile i created the account on Eclipse forum let see if get some idea from there. Thanks for response.

Your answer


Register or 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.