| Extend jubula with a self-written RCP Plugin [message #927998] |
Sun, 30 September 2012 03:04  |
Marco Franke Messages: 10 Registered: April 2012 Location: Bremen |
Junior Member |
|
|
Good morning,
I read the tutorial how I can implement own functions for setting values to paramters in jubula.
In this tutorial, the author describes that you have to implement the interface IFunctionEvaluator and to spefify the extension org.eclipse.jubula.client.core.functions. Nothing more.
My question is now, how can I add this project to jubula. In the example, the author exported the project as a jar and copy it to the plugin directory. But the information is missing how I can export it. What is the main function/ running configuration.
Furthermore, his integrating approach (copy the jar) doesn't work. The function is not there. The syntax validator say, that there is no function with this name.
Can somebody help me.....
|
|
|
|
| Re: Extend jubula with a self-written RCP Plugin [message #928407 is a reply to message #928124] |
Sun, 30 September 2012 11:44   |
Marco Franke Messages: 10 Registered: April 2012 Location: Bremen |
Junior Member |
|
|
Hi,
you are right I have not a loft of experience in plugin developement. For that reason, I used a tutorial (eclispe.org/index.php/blog_article_en/items/using-data-cohesion-for-better-test-cases.html)(this is the wrong link. You have to replace eclispe.org through bredex.de), but the tutorial doesn't explain in detail to create a *.jar.
First, I used the orginial plugin of the tutorial(just downloaded it) and it doesn't work. The tutorial said, the plugin, as *.jar, has to be copied into the plugin folder of jubula. In consequence, I took the jar, copied it, restartet Jubula, but Jubula dindn't care.
Second, I used my own developed plugin and follow the same steps of deploying but it doesn't work.
The question is now, which requirements has to be satisfied that jubula use the plugin. Second, why jubula gives no exception if the plugin is not valid. In Eclipse, the syntax and so on are correct.
Thanks for your hint that I should read tutorials. 
Has somenody else tried the above mentioned tutorial to extend jubula which an own function?
|
|
|
| Re: Extend jubula with a self-written RCP Plugin [message #930507 is a reply to message #927998] |
Tue, 02 October 2012 07:35   |
Alejo Abdala Messages: 12 Registered: September 2012 |
Junior Member |
|
|
Hi, I did manage to use my own plugins (both accessibility and functions) for Jubula. I recommend that you read "EXTEND.pdf" that ships with Jubula Standalone.
Edit: just checking, both the EXTEND and UserManual have information on developing accessibility plugins, not much on functions though. But it is quite easy, just set the target platform to your jubula installation plugins folder, build a plugin project and a feature project that includes that plugin. Deploy the feature project as "Deployable features". This will create a folder with an update site. From Jubula, go to "Install new software", point to that update site and install its contents. (Uncheck the "Group items by category" checkbox).
Just one thing I've come across (that I don't know certainly if it was the cause of the function not showing): create one extension for each function you declare. Declaring several functions in the same extension didn't work for me. (At the same time, the classes that implemented IFunctionEvaluators were inner classes, so, either that or the multiple-functions-per-extension issue was blocking me). But keeping things simple works 
For functions, what I'm doing is exporting the feature project as an update site and installing it into Jubula as you would with any plugin (Help->Install New Software).
Related with this issue: does Jubula take the evaluator attribute of the extension into account? I wrote a plugin that checks something with the running jobs of the RCP but it just isn't working, because even though I defined that the 'evaluator' is the AUT, the jobs that it is seeing are the ones running in Jubula. Any hints on this side?
Thanks!
[Updated on: Tue, 02 October 2012 08:08] Report message to a moderator
|
|
|
|
|
|
|
| Re: Extend jubula with a self-written RCP Plugin [message #932458 is a reply to message #931524] |
Thu, 04 October 2012 01:52  |
Marco Franke Messages: 10 Registered: April 2012 Location: Bremen |
Junior Member |
|
|
Good morning,
I have already tried the implementation of an own function (for setting a parameter value) for jubula in different ways. All above mentioned ways didn't work for my jubula version(Version: 1.2.1). The mentioned workaround to insert a function to jubula (copy *.jar and adapt the configuration file manually) works only sometimes and not in general. At any time, there were any exception or any cue whereby I could understand the problem. Now, I don't use the jubula stand alone edition but the eclipse Juno Testing Edition. All self written functions, which didn't work in Jubula, are working in Eclipse Juno Testing Edition now. I changed nothing in the implementation or the way of exporting my functions.
Thanks Alejo Abdala for the help to export the self written function as a feature. It's a nice way to integrate the functions easily.
I have already wasted a lof of hours in this issue.
|
|
|
Powered by
FUDForum. Page generated in 0.02710 seconds