Automate the GUI testing

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Automate the GUI testing

Postby workerTwo » Thu Mar 31, 2011 7:02 am

I have an RCP application and I wrote tests for it. I can run these tests as JUnit Plug-in Test within Eclipse.

I want to automate the GUI testing on Eclipse 3.6 with WindowTester 6.0.
Is it possible to use Ant (or any command using terminal) for that?

Where can i read ant script or command examples?

Posts: 2
Joined: Thu Mar 31, 2011 6:43 am

Re: Automate the GUI testing

Postby fredg » Thu May 12, 2011 8:54 am

It's possible to execute GUI tests with Ant.
Basically you need an Eclipse installation which contains the Eclipse Testing Framework, Window Tester Pro plugins, your application specific plugins and your WTP tests.
You can then call the "ui-test" ant target in the eclipse-test-library file, like this:

Code: Select all
<target name="guiTest">
   <ant target="ui-test" antfile="${eclipse-test-library-file}" dir="${eclipse-test-home}">
      <property name="os" value="${baseos}"/>
      <property name="ws" value="${basews}"/>
      <property name="arch" value="${basearch}"/>
      <property name="data-dir" value="${eclipse-test-home}/junit-workspace" />
      <property name="plugin-name" value="${pluginName}" />
      <property name="classname" value="${testClassName}" />

Hope that helps.
Posts: 7
Joined: Fri Nov 19, 2010 3:35 am

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest