Home » Eclipse Projects » SWTBot » Start SWTbotTest from Java Application
| | | | | | | | |
Re: Start SWTbotTest from Java Application [message #25298 is a reply to message #25258] |
Mon, 02 March 2009 11:22 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
Luis,
On another thought, you'll need to hack into the SWTBot application
launcher[1] so that it takes in the necessary inputs, and recompile[2]
SWTBot sources with your changes.
[1] -
http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot /trunk/org.eclipse.swtbot.eclipse.core/src/org/eclipse/swtbo t/eclipse/core/UITestApplication.java
[2] -
http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot /trunk/org.eclipse.swtbot.releng/readme.txt
-- Ketan
On 2/3/09 16:45, Ketan Padegaonkar wrote:
> Hi,
>
> The SWTBot tests do something similar. The command line used by SWTBot
> for running its own tests is available in [1]. This would however not
> work with the way Luis is running the tests.
>
> I'd agree with your point that it's cheaper, easier and more error proof
> if the input is read from a file and read by the tests.
>
> [1] -
> http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot /trunk/org.eclipse.swtbot.eclipse.junit4.headless/library.xm l
>
>
> -- Ketan
>
> On 2/3/09 16:27, Marc wrote:
>> Hi,
>>
>> What I would do is:
>>
>> find a command line that will eclipse and automatically launches the
>> SWTbot eclipse plug in test.
>>
>> (I'm highly interested in this, but I have not started seraching for it)
>> might looks like "eclipse -autoLauchConfiguration mylaunchconfigswtbot"
>>
>> Then your UI would not launch the whole thing from java, it would launch
>> this command line.
>> What about the test inputs then? Just write them in a file before
>> throwing the command line. You Eclipse swtbot test would know which file
>> to read and therefore find the input.
>>
>> Hope this helps.
>> If you ever find the command line, please post it (or I will post it if
>> I've got the time to look for it) (I hope there is one, I'm not sure)
>>
>> Bye
>> Marc
>>
>
|
|
| |
Re: Start SWTbotTest from Java Application [message #25577 is a reply to message #25458] |
Tue, 03 March 2009 16:55 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
Unfortunately this looks extremely simple, but not as easy as you
mention it :)
You need a build in place that can generate your plugins, install it
into a working eclipse instance, and then use the ant scripts to run the
tests.
Googling for "pde test automation" and "pde build" should give you a
good headstart.
-- Ketan
On 3/3/09 19:41, Marc wrote:
> Hi,
>
> I looked at the script and it seems interesting.
> I've never worked with Ant script (sorry if following question seems
> newbie ones, I just need to confirm),
> first this is an Ant script, isn't it?
> And you can call it with command line like ">ant myscript.xml"
>
> It can be used to test Eclipse Plugin, not just SWT app?
>
> If all of this is real, then we could put the ant command in a .bat file
> and set its execution at some date by defining a task.
>
> This is very interesting because it is another step into test automation.
>
>
> At last, maybe Luis could execute this ant command from inside his java
> code and get the test executed.
>
>
> Bye
> Marc
>
>
> Ketan Padegaonkar wrote:
>
>> Hi,
>
>> The SWTBot tests do something similar. The command line used by SWTBot
>> for running its own tests is available in [1]. This would however not
>> work with the way Luis is running the tests.
>
> [...]
>
>> [1] -
> http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot /trunk/org.eclipse.swtbot.eclipse.junit4.headless/library.xm l
>
>
>> -- Ketan
>
>
|
|
| | | |
Goto Forum:
Current Time: Sat Nov 09 03:09:34 GMT 2024
Powered by FUDForum. Page generated in 0.04445 seconds
|