Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » RCP AUT and Invoke Method in plugin results in ClassNotFoundException
RCP AUT and Invoke Method in plugin results in ClassNotFoundException [message #1760186] Mon, 24 April 2017 12:39 Go to next message
Armin Mueller is currently offline Armin MuellerFriend
Messages: 33
Registered: July 2009
Member
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 08:08 Go to previous message
Kevin Barbe is currently offline Kevin BarbeFriend
Messages: 64
Registered: July 2016
Member
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
Previous Topic:Run testcase on a remote machine jubula 8.4
Next Topic:Jubula support some features
Goto Forum:
  


Current Time: Sun Sep 23 12:16:29 GMT 2018

Powered by FUDForum. Page generated in 0.02031 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top