An update for the archives...
We've written some tests that step through our swing app that alters
the content of a website. We can then insert a HttpUnit check using a
jython script.
A simple example that tests that "Google" appears on google.com:
from com.meterware.httpunit import *
conv = WebConversation()
request = GetMethodWebRequest("http://www.google.com/")
response = conv.getResponse(request)
if response.getText().find("Google") == -1:
rc.logError("Couldn't find Google on Google!")
You need to download the jars from http://www.httpunit.org/, and place
them in your 'plugins' directory...
Fun for the whole family...
Cheers,
Dave
Gregor Schmid wrote:
Hello Dave,
the setup for qftestJUI is complex. Besides determining the correct
classpath, the qftestJUI launch script (or executable on Windows)
evaluates and changes a few environment variables, things that were
not (easily) possible in older JDK versions. It might be possible to
get it to run embedded in a VM but it's easier by far to make a system
call and run it in batch mode.
If you run
qftestJUI -dbg > qf.log
(you need to redirect the output to a file on Windows) you'll get a
lot of informative output and may be able to set things up yourself.
We're not going to support it though.
Best regards,
Greg
Dave Borgeest <david.borgeest@?.biz> writes:
We've got a reasonably complex application, one component of which is
a Swing desktop application. What would be the best method to make
some qftestJUI tests part of our overall test run?
Our application publishes data to a webpage, so we'd ultimately like
to run an individual qftestJUI test, then run an HttpUnit test to
check the results on the website. Are we forced to make system calls
to start the tests in batch mode? Or is there a Java library we can
use?
ie.
int result = (new QftestJui('name of test')).runTest('test name');
Didn't see anything like this in either the manual or these mailing
lists. Just thought I'd check - :)
thnx - dave
_______________________________________________
qftestJUI-list mailing list
qftestJUI-list@?.de
http://www.qfs.de/mailman/listinfo/qftestjui-list
--
Kind Regards, |
|
|
David Borgeest |
Director - Technology & Development |
|
|
|
WebAlive Technologies |
Level 1, Innovation Building |
Digital Harbour |
1010 La Trobe Street |
Docklands Melbourne VIC 3008 |
|
This email (including all attachments) is intended solely
for the named addressee. It is confidential and may contain legally
privileged information. If you receive it in error, please let us know
by reply email, delete it from your system and destroy any copies. This
email is also subject to copyright. No part of it should be reproduced,
adapted or transmitted without the written consent of the copyright
owner.
Emails may be interfered with, may contain computer viruses or other
defects and may not be successfully replicated on other systems. We
give no warranties in relation to these matters. If you have any doubts
about the authenticity of an email purportedly sent by us, please
contact us immediately. |
|