RCP AUT and Invoke Method in plugin results in ClassNotFoundException [message #1760186] |
Mon, 24 April 2017 08:39  |
Eclipse User |
|
|
|
Hi,
we're currently evaluating how we can possibly use Jubula for testing an RCP application. One thing which isn't yet working is an Invoke Method action for a method in one of the RCP's plugins, executing it (on a Reflection Component) throws a ClassNotFoundException.
I think the basic question here is how the ITE would know where to actually look for the AUTs plugins, the AUT definition only points to the RCP's launcher exe after all.
The concrete question is: What do we need to do to be able to call a method in an AUT's RCP plugin?
Thanks,
Armin
|
|
|
Re: RCP AUT and Invoke Method in plugin results in ClassNotFoundException [message #1760249 is a reply to message #1760186] |
Tue, 25 April 2017 04:08  |
Eclipse User |
|
|
|
Hi Armin,
there are two different Invoke Method actions: Invoke External Method and just Invoke Method.
Invoke Method uses the plug-ins of the AUT. This works through the RCP accessor you have to deploy in your AUT. Just like all other test steps, Invoke Method is being executed by the accessor and its remote control part.
However, there is a limitation due to OSGi. This does not allow us to see all other packages and access them per se. The usage of Invoke Method is therefore a bit limited in RCP applications. What should work is using the invoke method action that executes on a graphical components of the AUT (ub_grc_invoke) but I am not sure what can be accessed through this.
Invoke External Method on the other hand uses a folder located in the ITE folder of Jubula. You would have to create a folder called externaljars and put the jars containing the classes and methods that should be executed in that folder. These methods are, at least as far as I know, being executed through the AUT agent. You would therefore have no access to the AUT itself from the method.
If you would like to have access to the AUT itself, too, you would have to write a Jubula extension [1] [2].
Best regards,
Kevin
[1] https://testing.bredex.de/files/content/software/documentation/developerManual/toolkitExtension/ch03.html
[2] https://testing.bredex.de/files/content/software/documentation/developerManual/extensionWizard/ch05.html
|
|
|
Powered by
FUDForum. Page generated in 0.04044 seconds