Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] SWT Recorder & Generator functions

>>You can see that: 
>>- there's runner to run Generator 
>That's quite useful. I recently made some updates in the way Generator is started so it should be easier to do so. Have you re-used it? 
>However, I think this integration, since it adds some UI, should be something optional, in its own plugin. WDYT?

Yes. Definitely. I will separate it into its own plugin.

>All that is great. Does that mean that the test generator now depends on JDT ? If so it might not fit for some use-cases of very light product that don't include JDT. Maybe the Dialog you provide for recorder could be an >alternative dialog to the default one, and could be part of another bundle such as org.eclipse.swtbot.generator.jdt so one can still choose the default one if they don't want to embed JDT. 

You are right. Code coloring depends on JDT. So I will separate it into generator.jdt plugin.



----- Original Message -----
From: "Mickael Istria" <mistria@xxxxxxxxxx> 
To: swtbot-dev@xxxxxxxxxxx 
Sent: Thursday, June 20, 2013 2:08:59 PM 
Subject: Re: [swtbot-dev] SWT Recorder & Generator functions 

On 06/20/2013 01:46 PM, Rastislav Wagner wrote: 



I'd like to ask your opinion concerning functionality you would like to see in SWT recorder & generator. 
I've been working on a few new functions. See the video i did today https://vimeo.com/68764983 
Wow that's great, and they are very concrete and useful improvements for people who want to write tests! 
To put some context, we also have to keep in mind that this recorder should also be embeddable into any existing product directly, and that it can be used out of the development process. For example, one could embed the recorder in his product and provide his own process to start it (such as "Help > Record Usage Scenario and Report Bug..." where there wouldn't even be a RecorderDialog pop up). That said, please see my comments inline: 




You can see that: 
- there's runner to run Generator 

That's quite useful. I recently made some updates in the way Generator is started so it should be easier to do so. Have you re-used it? 
However, I think this integration, since it adds some UI, should be something optional, in its own plugin. WDYT? 
 



- imports are being generated 
- you can add classes (I actually forgot to show you this :) ) 
- you can add methods - currently focused method is highlighted 
- you can annotate class/methods 
- code coloring 

All that is great. Does that mean that the test generator now depends on JDT ? If so it might not fit for some use-cases of very light product that don't include JDT. Maybe the Dialog you provide for recorder could be an alternative dialog to the default one, and could be part of another bundle such as org.eclipse.swtbot.generator.jdt so one can still choose the default one if they don't want to embed JDT. 

Feel free to push changes on Gerrit (if possible in several functional commits to make it easier to review) so we can start looking at how to merge this as cleanly as possible. It would be nice if we could have this part of next SWTBot release just after Kepler. 

Cheers, 
-- 
Mickael Istria 
Eclipse developer at JBoss, by Red Hat 
My blog - My Tweets 

_______________________________________________ 
swtbot-dev mailing list 
swtbot-dev@xxxxxxxxxxx 
https://dev.eclipse.org/mailman/listinfo/swtbot-dev 


Back to the top