How to create test artifacts(test plans,test cases) in a specific fine grained component in a global configuration ?
How to create the test artefacts(test plans,test cases) in a specific fine grained component in a global configuration ?
Accepted answer
My previous comments assumed you were using the RQM GUI.
Since you are using components, you have enabled configuration management. The RQM API includes this statement about configuration management:
"The configuration URI (local configuration or global configuration) for the configuration management-enabled project area MUST be specified in the
Configuration-Context
header or
oslc_config.context
parameter. If the configuration URI (local configuration or global configuration) for the configuration management-enabled project area is not specified, the default configuration for the configuration management-enabled project area us used."
Did you include the configuration context?
Comments
Thank you very much. I am now able to create test plans at comp level with this new header added.
Hello Kathryn,
Is there any API (or OSLC Query) to get this configuration URI?
I cannot quite tell what you are asking. There can be any number of configurations stored on the server, so you cannot ask the server which global configuration URI you should use.
Hello,
Is there a REST API to add local config(streams and baselines) to global streams to create a global configuration hierarchy[GC tree]. Here the Global comps will have the global streams under which there will be local streams, local baselines of different fine grained components of both RM and QM.
Note : UI has an "Add Configurations" tab which allows us to obtain this hierarchy
Note to readers: This comment was correctly posted as a separate question: https://jazz.net/forum/questions/252962
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 30 '18, 6:04 p.m.You would select that component as the current context in your RQM web page.
1 vote
Sharadha Murugappan
Apr 09 '18, 2:52 a.m.I tried creating test plans inside a specific component(say comp Y), but in global config context, the test plan was created in the default component, the one that was created first(comp X). Now how do I link the test plan to the comp Y. Or how do i move the test plan to comp Y from comp X inside a project area. Or how do i create test plans directly inside comp Y ?
Kathryn Fryer
Apr 11 '18, 12:23 a.m.What steps did you follow to create the test plan? I wonder if you ended up in the wrong component because of the browser cache or something similar that put you in the last component you looked at?
In the RQM UI, the banner shows the project name followed by the component name. You can click the component name to switch to a different component. To create the test plan in your desired Comp Y, make sure that you are in that component. The configuration context banner towards the right will show you which configuration context (i.e. stream or baseline) you are in, both local and global.
Currently you can't link or clone between components in RQM. You'll need to create the test plan in Comp Y. For the erroneous plan in Comp X, you can delete/archive or rename/re-purpose for use in that component.
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 09 '18, 6:44 p.m.Cloning of test artifacts between components was introduced in RQM-6.0.3.
1 vote
Kathryn Fryer
Apr 30 '18, 6:01 p.m.Oh yes, Geoff, you are quite correct that they can clone between RQM components within the same project area. I was thinking across projects for some reason. Thanks for the correction!
Sharadha Murugappan
Apr 10 '18, 1:51 a.m.Hello Kathryn, steps that I followed for test plan creation :
1. OSLC query POST - https://[server]//service/com.ibm.rqm.integration.service.IIntegrationService/resources/[PROJECTAREA_UUID]/testplan - creates test plan inside the first component of the project area
2. OSLC query POST - https://[server]//service/com.ibm.rqm.integration.service.IIntegrationService/resources/[PROJECTAREA_UUID]/testplan/[COMPONENT_UUID] - Again creates the test plan inside the first comp irrespective of the desired comp uuid
Kathryn Fryer
Apr 25 '18, 2:11 p.m.I'm not sure what you mean in terms of your UC. You should be able to use OSLC to get information about a configuration. The RQM API is documented at https://jazz.net/wiki/bin/view/Main/RqmApi
Sharadha Murugappan
May 07 '18, 8:02 a.m.I want the config URI given the project area and the local comp.
https://[host]/service/com.ibm.rational.test.lm.common.IAssetGroupRestService/all?projectAreaItemId=_74SEFKIDGSDM_iQg-VEA&oslc_config.context=_8bIdMPUneBegMO5qxt-R9w
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 08 '18, 1:11 a.m.There can (and usually are) many configurations (streams and baselines) for a given local component. Which of these configurations are you looking for? Perhaps you are looking for the local configuration of a given local component in a given global configuration? If so, you would use the global configuration API to walk down the global configuration graph, until you find a contribution for the local component of interest.