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

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 ?

0 votes

Comments

You would select that component as the current context in your RQM web page. 

1 vote

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 ?

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.

Cloning of test artifacts between components was introduced in RQM-6.0.3.

So in addition to ensuring you are in the right component context for future plan creation, you can fix-up the current situation by cloning the test plans to the right component, and then deleting/archiving them from the wrong component.

1 vote

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!

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

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

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

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.

showing 5 of 9 show 4 more comments

Accepted answer

Permanent link

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?

Sharadha Murugappan selected this answer as the correct answer

0 votes

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

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

Question asked: Apr 06 '18, 4:19 a.m.

Question was seen: 2,181 times

Last updated: May 18 '18, 11:54 p.m.

Confirmation Cancel Confirm