Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » RQM TestPlan containing link to RTC Developmentplan
RQM TestPlan containing link to RTC Developmentplan [message #1759936] Thu, 20 April 2017 07:35 Go to next message
Matthias Buettgen is currently offline Matthias BuettgenFriend
Messages: 8
Registered: April 2016
Junior Member
Hi.

In Rational Quality Manager it's possible to link one or more Rational Team Concert Development Plans to a Test Plan. Therefore I extended the Test Plan class with this capability.

private Set<Link>	developmentPlanLink = new HashSet<Link>();

public void addDevelopPlanLink (final Link developPlanLink) 
{
    	this.developmentPlanLink.add(developPlanLink);
}

@OslcDescription("Development plan linked to this test plan.")
@OslcPropertyDefinition("http://jazz.net/xmlns/prod/jazz/calm/1.0/" + "testsDevelopmentPlan")
@OslcTitle("Development Plan")
public Set<Link> getDevelopmentPlanLink()
{
    return developmentPlanLink;
}

public void setDevelopmentPlanLink (final Link[] developmentPlanLink) 
{
    	this.developmentPlanLink.clear();
    	
    	if (developmentPlanLink != null)
    	{
    		this.developmentPlanLink.addAll(Arrays.asList(developmentPlanLink));
    	}
}



Unfortunately the extension doesn't work and throws the following exeception : java.lang.reflect.InvocationTargetException. The exceptions printStackTrace() method seems to run in an endless loop and shows the following result:

java.lang.reflect.UndeclaredThrowableException
	at com.sun.proxy.$Proxy8.getAcceptableMediaTypes(Unknown Source)
	at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.determineErrorMediaType(AbstractOslcRdfXmlProvider.java:391)
	at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.buildBadRequestResponse(AbstractOslcRdfXmlProvider.java:368)
	at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.readFrom(AbstractOslcRdfXmlProvider.java:358)
	at org.eclipse.lyo.oslc4j.provider.jena.OslcRdfXmlProvider.readFrom(OslcRdfXmlProvider.java:270)
	at org.apache.wink.client.internal.handlers.ClientResponseImpl.readEntity(ClientResponseImpl.java:126)
	at org.apache.wink.client.internal.handlers.ClientResponseImpl.getEntity(ClientResponseImpl.java:65)
	at org.apache.wink.client.internal.handlers.ClientResponseImpl.getEntity(ClientResponseImpl.java:52)
	at com.bosch.gspe.rqm.client.synchronizer.RqmRtcSynchronizationClient.fetchAllTestPlans(RqmRtcSynchronizationClient.java:378)
	at com.bosch.gspe.rqm.client.synchronizer.RqmRtcSynchronizationClient.main(RqmRtcSynchronizationClient.java:153)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.wink.common.internal.registry.ContextAccessor$1.invoke(ContextAccessor.java:114)
	... 10 more
Caused by: java.lang.reflect.UndeclaredThrowableException
	at com.sun.proxy.$Proxy8.getAcceptableMediaTypes(Unknown Source)
	... 15 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.wink.common.internal.registry.ContextAccessor$1.invoke(ContextAccessor.java:114)
	... 16 more
Caused by: java.lang.reflect.UndeclaredThrowableException
	at com.sun.proxy.$Proxy8.getAcceptableMediaTypes(Unknown Source)
	... 21 more


Is there anything wrong in my development plan definition or could this be a defect.

Greetings
Matthias

Here is also the rdf output I got using the Firefox Rest Client.

<rdf:RDF>
<oslc_qm:TestPlanQuery rdf:about="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestPlan">
<oslc_qm:testPlan>
<oslc_qm:TestPlan rdf:about="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestPlan/_AJ4Y0BrFEeeh64OpDpkAtg">
<rqm_qm:category rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_oS4U0CF5EeaPoKjHlJu0-A"/>
<process:projectArea rdf:resource="https://localhost:9443/qm/process/project-areas/_ngtRACF5EeaPoKjHlJu0-A"/>
<oslc:serviceProvider rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/services.xml"/>
<dcterms:relation rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_ngtRACF5EeaPoKjHlJu0-A/testplan/urn:com.ibm.rqm:testplan:5"/>
<oslc:shortId rdf:datatype="http://www.w3.org/2001/XMLSchema#int">5</oslc:shortId>
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Test Plan</dcterms:title>
<acc:accessContext rdf:resource="https://localhost:9443/qm/acclist#_ngtRACF5EeaPoKjHlJu0-A"/>
<rqm_process:hasWorkflowState rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_ngtRACF5EeaPoKjHlJu0-A/workflowstate/com.ibm.rqm.process.testplan.workflow/com.ibm.rqm.planning.common.new"/>
<dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
<dcterms:creator rdf:resource="https://localhost:9443/jts/users/jazzadmin"/>
<rqm_process:hasPriority rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_ngtRACF5EeaPoKjHlJu0-A/priority/literal.priority.101"/>
<oslc_qm:usesTestCase rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestCase/_o4P4wKtPEeaZTYQQJFWP9A"/>
<dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestPlan/_AJ4Y0BrFEeeh64OpDpkAtg
</dcterms:identifier>
<rqm_qm:template rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/template/testplan/com.ibm.rqm.planning.templates.testplan.default"/>
<acp:accessControl rdf:resource="https://localhost:9443/qm/oslc_qm/accessControl/_ngtRACF5EeaPoKjHlJu0-A"/>
<oslc_qm:usesTestCase rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestCase/_OpUXkawcEeaZTYQQJFWP9A"/>
<oslc:instanceShape rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/shape/resource/com.ibm.rqm.planning.VersionedTestPlan"/>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-04-20T06:23:11.781Z</dcterms:modified>
<rqm_qm:orderIndex rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</rqm_qm:orderIndex>
<rqm_qm:category rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_oS7_MCF5EeaPoKjHlJu0-A"/>
<oslc_qm:usesTestCase rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestCase/_wodnIB6aEeeKMZ-teeeXJw"/>
<dcterms:contributor rdf:resource="https://localhost:9443/jts/users/unassigned"/>
<rqm_qm:category rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/category/urn:com.ibm.rqm:category:_oS_ChyF5EeaPoKjHlJu0-A"/>
<oslc_qm:usesTestCase rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestCase/_6ccl8BlFEeeIDdiYdiBTqw"/>
<calm:testsDevelopmentPlan rdf:ID="n0" rdf:resource="https://localhost:9443/ccm/resource/itemOid/com.ibm.team.apt.IterationPlanRecord/_6Wcd0KdFEeaiJaW6Hy4jeQ"/>
<oslc_qm:usesTestCase rdf:resource="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestCase/_KaIL8F5MEeagksRcf6zMdw"/>
<dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-04-06T12:31:47.932Z</dcterms:created>
<rqm_qm:isLocked rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</rqm_qm:isLocked>
</oslc_qm:TestPlan>
</oslc_qm:testPlan>
</oslc_qm:TestPlanQuery>
<oslc:ResponseInfo rdf:about="https://localhost:9443/qm/oslc_qm/contexts/_ngtRACF5EeaPoKjHlJu0-A/resources/com.ibm.rqm.planning.VersionedTestPlan?oslc.where=oslc%3AshortId%3D%225%22">
<oslc:totalCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</oslc:totalCount>
<bp:containerSortPredicates rdf:datatype="http://www.w3.org/2001/XMLSchema#string">rqm_qm:orderIndex</bp:containerSortPredicates>
<dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Results of a QM V2 Test Plan query.</dcterms:description>
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">QM V2 Test Plan Query Results</dcterms:title>
</oslc:ResponseInfo>
<rdf:Description rdf:about="#n0">
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/>
<dcterms:title>TEst</dcterms:title>
</rdf:Description>
</rdf:RDF>
Re: RQM TestPlan containing link to RTC Developmentplan [message #1759946 is a reply to message #1759936] Thu, 20 April 2017 09:47 Go to previous messageGo to next message
Andrii BerezovskyiFriend
Messages: 17
Registered: May 2016
Junior Member
Hallo Matthias,

Could you please try the same with all Lyo artifactId set at 2.1.2, please?

Andrew


Best regards,
Andrew
Eclipse Lyo project lead & OSLC Core TC voting member
Re: RQM TestPlan containing link to RTC Developmentplan [message #1759949 is a reply to message #1759946] Thu, 20 April 2017 10:08 Go to previous messageGo to next message
Matthias Buettgen is currently offline Matthias BuettgenFriend
Messages: 8
Registered: April 2016
Junior Member
Hello Andrii.

I tested it with 3.0.0-SNAPSHOT as well as with 2.1.2 and always got the described problem.

I also extended the Test Plan with the Test Suite URIs which doesn't cause any problems.

Regards
Matthias
Re: RQM TestPlan containing link to RTC Developmentplan [message #1759983 is a reply to message #1759949] Thu, 20 April 2017 20:20 Go to previous message
Andrii BerezovskyiFriend
Messages: 17
Registered: May 2016
Junior Member
Thanks, we will look into this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=515546

If you find the solution earlier, you are welcome to submit a patch!


Best regards,
Andrew
Eclipse Lyo project lead & OSLC Core TC voting member
Previous Topic:ToolModelingChain
Next Topic:Trace Link
Goto Forum:
  


Current Time: Thu Sep 20 00:23:14 GMT 2018

Powered by FUDForum. Page generated in 0.01567 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top