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

Not getting linked Test cases in Test Suite using OSLC Lyo

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"

0 votes



One answer

Permanent link
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

0 votes

Comments

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 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
× 11,074

Question asked: May 19 '16, 12:15 a.m.

Question was seen: 4,324 times

Last updated: May 25 '16, 4:29 a.m.

Confirmation Cancel Confirm