Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10330

Re: How to set up automatic GUI JUnit test?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!g7g2000vbd.googlegroups.com!not-for-mail
From www <xsli2@yahoo.com>
Newsgroups comp.lang.java.programmer
Subject Re: How to set up automatic GUI JUnit test?
Date Tue, 29 Nov 2011 10:21:45 -0800 (PST)
Organization http://groups.google.com
Lines 38
Message-ID <e2b738bb-0e44-4094-a6c2-54f8aaeadcf7@g7g2000vbd.googlegroups.com> (permalink)
References <90f60a4c-3429-4718-adea-4ad163c4dd66@u5g2000vbd.googlegroups.com> <KtVAq.18378$ov2.5423@newsfe10.iad>
NNTP-Posting-Host 205.156.36.56
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1322590995 3881 127.0.0.1 (29 Nov 2011 18:23:15 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 29 Nov 2011 18:23:15 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info g7g2000vbd.googlegroups.com; posting-host=205.156.36.56; posting-account=oo44OQoAAABMDvaRlaO3SeQ5MVbxqLdH
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HUALESNKRC
X-HTTP-UserAgent Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10330

Show key headers only | View raw


On Nov 28, 7:14 pm, Arved Sandstrom <asandstrom3min...@eastlink.ca>
wrote:
> On 11-11-28 01:28 PM, www wrote:
>
> > Hi:
> > We have a JAVA GUI program. The program is already finished, but we
> > want to set up one or two JUnit tests for it. Ideally, I hope this
> > JUnit test can record my action: click Button A, click Button B, enter
> > some words in a field, then click Button "Run". Then compare the files
> > in output/ directory against the bench mark files.
>
> > I am completely new to GUI JUnit test, even though I have used JUnit
> > test for many years. I have googled and seen a few tools, but I am
> > unclear if they can record my action like above after reading their
> > user manuals. I am looking for free tools.
>
> > Thank you very much.
>
> One approach is to record a Selenium script, save it as Java "Selenese"
> commands, and wrap those commands in a JUnit test method. JUnit setup
> and teardown handle the establishment of the Selenium environment.
>
> Something like this
> (http://qtp-help.blogspot.com/2009/04/selenium-with-junit.html) will
> give you the gist of it.
>
> In your test method, after the Selenese, you can do your filesystem checks.
>
> AHS

Thank you very, very much. It looks a great tool for my task. I will
study it.

Just for other people's reference, I also found another tool, called
"Marathon"(http://www.marathontesting.com/). I am studying it now too.

I am so glad there are a few free tools available.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to set up automatic GUI JUnit test? www <xsli2@yahoo.com> - 2011-11-28 09:28 -0800
  Re: How to set up automatic GUI JUnit test? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-11-28 20:14 -0400
    Re: How to set up automatic GUI JUnit test? www <xsli2@yahoo.com> - 2011-11-29 10:21 -0800

csiph-web