Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Running recorded GUI tests automatically
Running recorded GUI tests automatically [message #73654] Fri, 09 June 2006 13:44 Go to next message
Eclipse UserFriend
Originally posted by: richard256.gmx.de

Is it possible to run recoreded GUI tests unattended as part of a nightly
run like it is possible for plain junit or pde-junit tests?

TIA
Richard
Re: Running recorded GUI tests automatically [message #73789 is a reply to message #73654] Mon, 12 June 2006 11:24 Go to previous messageGo to next message
John O'Shea is currently offline John O'SheaFriend
Messages: 43
Registered: July 2009
Member
Richard,
It is possible, though not completely straightforward. You need to use
the TPTP Execution Framework script the execution of the GUI tests. See
"Launching tests from scripts and applications" (under "Testing
Manually") in the TPTP Help docs for the background. You'll find some
sample ant scripts in
eclipse\plugins\org.eclipse.hyades.execution_4.2.0.v20060525 1528

I'm currently in the middle of doing exactly this. So far I've got the
Execution environment running some sample projects/suites. The only
significant issue I can see at the moment is that the Execution
Framework expects a workspace containing test projects to exist. That's
ok for developer driven automated testing but it is slightly more
difficult to set up a nightly build test env as workspaces can't really
be shared across machines. I'm not sure what the best solution is but I
think a setup script that automatically creates the workspace and
imports the projects might be necessary.

John.

rbirenheide wrote:
> Is it possible to run recoreded GUI tests unattended as part of a nightly
> run like it is possible for plain junit or pde-junit tests?
>
> TIA
> Richard
>
>
Re: Running recorded GUI tests automatically [message #73987 is a reply to message #73789] Tue, 13 June 2006 05:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richard256.gmx.de

John,

> Execution environment running some sample projects/suites. The only
> significant issue I can see at the moment is that the Execution Framework
> expects a workspace containing test projects to exist.

what I do not understand here is that I do not need a filled workspace in
advance when I launch a recorded test (just as I need not when doing a PDE
junit test). I understand that everything should be part of a test plugin
which is easy to achieve. But starting from that it would be desirable to
start the workbench and to run the test script inside that plugin. Afaik
this is what Eclipse itself does with the plain PDE junit tests.

Regards
Richard
Re: Running recorded GUI tests automatically [message #74005 is a reply to message #73987] Tue, 13 June 2006 09:01 Go to previous messageGo to next message
John O'Shea is currently offline John O'SheaFriend
Messages: 43
Registered: July 2009
Member
Robert,

> what I do not understand here is that I do not need a filled workspace in
> advance when I launch a recorded test (just as I need not when doing a PDE
> junit test). I understand that everything should be part of a test plugin
> which is easy to achieve. But starting from that it would be desirable to
> start the workbench and to run the test script inside that plugin. Afaik
> this is what Eclipse itself does with the plain PDE junit tests.

Are you saying that you can run recorded tests using the execution
environment without already having prepared a workspace that contains
the project you are executing suites from? I tried that but the
Execution Framework could not find the project that contained the suites
it was trying to run. It worked when I pre-imported the project into
the workspace it that the Execution Framework subsequently used. This
isn't ideal by any means so if I've missed something let me know!

Regards,

John.
Re: Running recorded GUI tests automatically [message #74023 is a reply to message #74005] Tue, 13 June 2006 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richard256.gmx.de

> Are you saying that you can run recorded tests using the execution
> environment without already having prepared a workspace that contains the
> project you are executing suites from? I tried that but the Execution
> Framework could not find the project that contained the suites it was
> trying to run. It worked when I pre-imported the project into the
> workspace it that the Execution Framework subsequently used. This isn't
> ideal by any means so if I've missed something let me know!
>
> Regards,
>
> John.

John,

maybe you got me wrong. What one can do with ordinary junit tests which must
run in an eclipse envirionment (so called PDE junit tests) is to pack them
in a plugin (a test plugin-in) and to deploy them with the eclipse
environment. Then you are able to run these test within the eclipse runtime
which is ideal for unattended automated tests. I am seeking for the same
possibility for recorded GUI tests.

Regards
Richard
Re: Running recorded GUI tests automatically [message #74042 is a reply to message #74023] Tue, 13 June 2006 10:41 Go to previous message
John O'Shea is currently offline John O'SheaFriend
Messages: 43
Registered: July 2009
Member
Robert,
I thought you were ahead of me there, sorry! Recorded GUI tests
(contains in Suites that are in turn contained in plugin projects) can
be run unattended, assuming you have already authored them in a test
project using the AGR (Auto GUI Recorder).

My original comment was hinting to you that the setup it is not quite
as straightforward as automating JUnit plugin tests. The main reason it
is more complicated is that the TPTP Execution Framework targets
executing tests from within projects in a target workspace, rather than
executing tests within plugins (as you would commonly do when automated
the execution of JUnit test plugins). As a result, part of your
automation harness will need to set up a workspace that already contains
the projects that host your GUI test scripts.

John.

rbirenheide wrote:
> John,
>
> maybe you got me wrong. What one can do with ordinary junit tests which must
> run in an eclipse envirionment (so called PDE junit tests) is to pack them
> in a plugin (a test plugin-in) and to deploy them with the eclipse
> environment. Then you are able to run these test within the eclipse runtime
> which is ideal for unattended automated tests. I am seeking for the same
> possibility for recorded GUI tests.
>
> Regards
> Richard
>
>
Previous Topic:BIRT 2.1.0 distribution missing some plugin metadata?
Next Topic:Problems working with Profiling under Eclipse
Goto Forum:
  


Current Time: Mon Dec 30 17:07:47 GMT 2024

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

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

Back to the top