It's all about the answers!

Ask a question

How implement OSLC delegate UI in RQM?


Jérôme Beauquis (1112) | asked Sep 13 '13, 11:18 a.m.
Hello,

I'm developing a custom execution adapter based on the OSLC 2.0 public API.
To have a good integration in Rational Quality Manager, I want to provide a delegate UI dialog for selection, as described in this example .
Could you indicate how customize RQM to do as shown in the example?

Thanks in advance!

Comments
Rosa Naranjo commented Sep 13 '13, 4:49 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Is your custom execution adapter attempting to be an OSLC consumer of RQM as an OSLC provider? What are you trying to select via the dialog? If your adapter is an OSLC consumer and RQM is the OSLC provider, then you are actually in this scenario:  http://open-services.net/resources/tutorials/integrating-products-with-oslc/integrating-with-an-oslc-provider/making-incident-to-defect-linking-easy/
If this is not the correct scenario, please describe why you think you need to customize RQM? Perhaps explain what integration scenario you are trying to accomplish.


Ajay Chebbi commented Sep 15 '13, 9:15 a.m. | edited Sep 16 '13, 9:46 a.m.
JAZZ DEVELOPER

@jerome though I am not answering your question on delegated UI directly, I am sure you have looked at https://jazz.net/wiki/bin/view/Main/RQMTestAutomationAdapterAPI#Developing_an_Automation_adapter  that explains how you can go about developing a Execution Adapter for RQM.

like @rosa says  - can you explain the use case for the delegated UI you are looking at?


Jérôme Beauquis commented Sep 16 '13, 5:49 a.m. | edited Sep 16 '13, 9:49 a.m.

I have my own automation tool for non-regression tests. To use it via RQM, I developped an automation adapter (OSLC consumer) to communicate via the automation provider. The automation adapter is based on the Lyo Client example: http://wiki.eclipse.org/Lyo/BuildClient#RQMAutomationSample

Now, I can execute a test case of my tool by executing a RQM test script.
Parameters (test case identifier, report creation, ...) are indicated "manually" in text fields, in the RQM test script page. User has to know identifiers before using RQM or user has to switch between RQM application and my application to get parameters values to put in the RQM test script page.
To avoid this and to have a more user-friend UI, I want to use delegate UI dialogs like shown in the example of @rosa.
If I understand well this example, the "RQMTestScript.jsp" page has to be customized. Is there a way to do this?

2 answers



permanent link
Rosa Naranjo (2.9k11723) | answered Sep 16 '13, 10:01 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Jerome,
in the example I posted the code that is being modified is for the OSLC consumer application, ninaCRM. There is code added to the consumer app that invokes the delegated UI of the OSLC provider (in this case, a change management app like RTC).  It uses the post message protocol. The whole point of OSLC is so that it can be used instead of having to know anything about the internal API or workings of the OSLC provider.  RQM and any other OSLC provider that supports delegated UI dialogs makes these dialogs available to OSLC consumers who use an IFrame for ex., to display the delegated UI dialog.
Hopefully you can take this explanation and apply it to your use case. I still am having trouble visualizing what you are trying to accomplish.
Please keep in mind that delegated UI dialogs provide very specific integration points such as to select existing provider artifacts or create new provider artifacts.
Read intro in the link I provided regarding OSLC Delegated UI

Comments
Jérôme Beauquis commented Sep 16 '13, 11:56 a.m. | edited Sep 16 '13, 12:12 p.m.

Rosa,

Thanks for you reply!

Image is better than text to clarify what I want to implement :)

The first image is a snapshot of RQM (sorry for the french interface) test script definition of type "Command line". In the bottom left, surrounded in red, there is a button which allows selection action.
The second image is the definition of test script of my type ("ARCAD-Verifier automation adapter"). In the bottom left, there are parameters as I could define them in the project area, menu "Test artefacts" -> "Customize execution adapter type" (I'm not sure of label in english).
I would like to add buttons (as in first image) to select scenario Id and context Id.
Is it possible to do it with OSLC delegate UI mechanism?
If not, is there an other way?
Image1-CommandLineAdapter
Image2-ArcadVerifierAdapter


Rosa Naranjo commented Sep 16 '13, 1:23 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

I think the answer is No. The OSLC delegated UI dialogs are defined by the provider, in this case, RQM, and thus display what the provider wants to display as part of their delegated UI.  The OSLC APIs exposed by RQM allow you to see what dialogs it exposes when the service provider catalog is retrieved.

Have you already tried to invoke a resource selection or resource creation delegated dialog and DO NOT see the attributes you expect?

I am guessing that if you added something custom to RQM in its project area that this customization is not exposed by the OSLC API.  But, the only way to know is to invoke a resource selection dialog and select the artifact type from the drop down and see what happens.

I'm also hoping that in this discussion you understand what the concept of the delegated UI is because if not, then that may explain why we are not making progress.
http://open-services.net/bin/view/Main/OslcCoreSpecification?sortcol=table;table=up#Delegated_User_Interface_Dialogs


Jérôme Beauquis commented Sep 17 '13, 12:27 p.m.

Thanks for your explanations

Just a question to confirm.
If I develop an OSLC provider which affords to invoke a resource selection delegated dialog. Is there an entry point in RQM to invoke this resource?


Rosa Naranjo commented Sep 17 '13, 1:21 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

If you develop a provider, then it's up to a consumer to invoke a resource selection delegated UI dialog that you provide as part of the OSLC provider.  So, you can't control RQM as a consumer to your OSLC provider.  What I have been trying to say is that since RQM is an OLSC provider, an app which is a OSLC consumer can invoke the resource selection dialog that RQM makes available as an OSLC provider.

Now, there are existing integrations where RTC or RQM have interacted with other products such as DOORs where they (RTC or RQM) are the OSLC consumer and the other app (DOORs) is the OSLC provider. But, of course, in that case, the integration has been written by RQM or RTC team.


Jérôme Beauquis commented Sep 24 '13, 12:07 p.m.

Thanks for your answers.
The possibles interactions with RQM, via OSLC, are more clear now.


permanent link
Abhijit Mandal (111) | answered Feb 17 '16, 6:47 a.m.
Hello Jérôme,

I have my own adapter which i need to add to RQM.
where in Test Script i need to modify or have new UI for my Adapter Type .
How did you resolved your issue ,
i need some Plug-in with which i shall be able to create a UI in RQM.
can you please help me.

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.