Bug 459193 - Jubula client JavaAPI - expose additional information of CAPs
Summary: Jubula client JavaAPI - expose additional information of CAPs
Status: CLOSED FIXED
Alias: None
Product: Jubula (Archived)
Classification: Technology
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 459191
  Show dependency tree
 
Reported: 2015-02-05 04:06 EST by Markus Tiede CLA
Modified: 2015-03-20 06:37 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Tiede CLA 2015-02-05 04:06:47 EST
We could think about exposing additional information of CAPs e.g.: 

String getMethod();
String getParameter();
String getCI();

However we have to make sure to only expose stable / public information.
Comment 1 Markus Tiede CLA 2015-02-06 10:05:33 EST
I think adding a method to retrieve the originally used component identifier instance:

org.eclipse.jubula.tools.ComponentIdentifier<T> getIdentifier()

would be useful for further CAP processing.

Exposing the in the RC-context reflectively called (internal) method name does not make much sense as these information tend to change over time.

And accessing the parameter information of the CAP executed should be achieved in a different way e.g. by storing the (only) relevant values within the payload of the execute method.
Comment 2 Sebastian Struckmann CLA 2015-02-13 09:58:45 EST
I believe it would be helpful to provide descriptive information about the CAPs that have been executed e.g. a verbose toString() implementation of the CAP reflecting the data / components / methods used within the execution.
Comment 3 Markus Tiede CLA 2015-02-25 03:28:58 EST
A method to retrieve the originally (untyped) used component identifier:

org.eclipse.jubula.tools.ComponentIdentifier getIdentifier()

has been added with:

http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=c09b2dd1deae0663d73cf075d24d1e297518d27e
Comment 4 Marcel Hein CLA 2015-02-25 09:06:15 EST
Verified by code review and an api-test with the JavaFX Simple Adder.