Canoo WebTest Community Site
[ start | index | login ]
start > WebTest FAQ

WebTest FAQ

Frequently Asked Questions


This is the frequently asked questions page, i.e. a page of questions that WebTest users often have.

It is maintained by those users that usually answer question on the >>mailinglist (and are tired from answering the same question too often).

If you use this page to post your own personal question, you will be disappointed because you will not get any speedy answer. Please refer to the >>mailinglist for that pupose. Your question may even be deleted here, if it is not a the _frequent_ one.


Q: Where do I find more Information about Canoo WebTest?
A: Online at >>http://webtest.canoo.com and on the Canoo WebTest Mailing list >>http://lists.canoo.com/mailman/listinfo/webtest

Q: How do I use this site?
A: After logging in to this site, every page has an edit-button at the bottom that enables you to change the page content. You can change the content of this page, e.g. by adding another Q-A section (be careful, see above). You will find out easily how to change the page content. There also is a snipsnap-help.

Q: How do I rebuild WebTest from the source?
A: Rebuilding WebTest is not needed for using it. It is an advanced task for those that want to change its internal behaviour. Follow the instructions and see the notes under >>http://webtest.canoo.com/manual/install.html#Rebuilding%20WebTest

Q: When I run my tests, I get an endless list of INFO messages scrolling by on my screen. How do I turn these off?
A: This is logging on the INFO level. To customize logging you can edit the file log4j.properties that is in the lib dir. E.g. Replace "info" with "off" to suppress any output or "warn" to at least get a message when something is wrong.

13 comments (by Gilles, ianWallace, curlesm, toddiuszho, jamapor, prettyhandling, mobrien, Mittie, dlouvton) | post comment
labels
attachments
Created by admin. Last edited by Mittie, 5 years and 40 days ago. Viewed 135,173 times. #20
[diff] [history] [edit] [rdf]

Icon-Comment prettyhandling, 5 years and 193 days ago. Icon-Permalink

Hi,

is there any where to simulate like 1000 users login to your website using webtest in order to test the stability of your web application?

regards, Prettyhandling

Icon-Comment dlouvton, 5 years and 193 days ago. Icon-Permalink

Webtest is a test functionality tool. For the purpose of load/stress testing you can use tools like Grinder (>>http://grinder.sourceforge.net - a good tool that i used in the past) or TestMaker (>>http://www.pushtotest.com/ptt/). You can find an elaborate list of tools at >>http://www.opensourcetesting.org/performance.php

Icon-Comment toddiuszho, 5 years and 183 days ago. Icon-Permalink

Is there a list of all the dependencies a WebTest build requires? I've been trying to do a full build all day and have come across these complications:

Problem: JDK 1.3 complains about versions of groovy.lang classfiles
Solution: Switch to JDK 1.4

Problem: Clover ant tasks can't load
Solution: CVS clover.jar and clover.license, as per WebTest mailing list

Problem: Old version of CVS cannot handle unusual CVS port for WebTest
Solution: Upgrade cvs.exe, as per Canoo website

Problem: JUnit ant task won't load
Solution: CLASSPATH manipulation, as per the Ant Manual

Problem: Cannot execute perl
Solution: Acquire and install Perl

Problem: build.xml packaged in src.zip of Build 501 refers to supplemental buildfiles and other xml files not included in Build 501's build.zip, src.zip, or doc.zip (as acquired from Canoo website)
Solution: Do a full pull from CVS and copy over missing files, as needed.

Problem: Last Solution cannot reliably call what is built as an accurate reproduction of Build 501
Solution: Don't CVS to HEAD, but to Build 501's tag. I'm assuming such a marker exists. I haven't investigated as I'm still learning CVS.

Icon-Comment Mittie, 5 years and 183 days ago. Icon-Permalink

For guidance on how to rebuild WebTest I added a Q/A above.

For JDK requirements see >>http://webtest.canoo.com/manual/install.html . The special dependency to JDK 1.4 for the Groovy step is documented under Groovy Prerequisites.

I appreciate that you collected the solutions for the problems you came across. I understand the whole task took you longer than expected. However, your last sentence is beyond the netiquette.
Make sure you read the available documentation before complaining.

Icon-Comment jamapor, 5 years and 86 days ago. Icon-Permalink

I am having problems when I try and build Webtest for the first time, and I can't seem to find any help anywhere.

I am trying to build installTest.xml from <WEB_TEST_HOME>docsamples and I am getting the following error:

BUILD FAILED C:JavaDevCanoodocsamplesinstallTest.xml:23: taskdef A class needed by class com.canoo.webtest.extension.ExportProperty cannot be found: junit/framework/Ass ertionFailedError

I think this has to do with one of two things. 1) My classpath OR 2) Location in which I am attempting to build WebTest.

Can somebody please help me out here? Thanks guys.

Icon-Comment ianWallace, 5 years and 86 days ago. Icon-Permalink

jamapor - I believe you just need to install Junit in ant. If you have a version of junit you could copy the junit.jar to <ANT_HOME>/lib/ - that seems to solve problems like these (or that's what I've read in the mailing list).

Icon-Comment jamapor, 5 years and 86 days ago. Icon-Permalink

I seem to have solved the problem.

The problem occured because in the installTest.XML file, the reference to the build folder jar's was not declared in the classpath.

For example, the following fileset directory needed to be added as well to the classpath:

<fileset dir="${webtest.home}" includes="lib/build/*.jar"/>

This is because the Junit JAR file was located in this folder, and it was not included in the XML file, as you stated above.

The build is now successful. Thanks for the help Ian.

Icon-Comment ianWallace, 5 years and 86 days ago. Icon-Permalink

Ok. Are you using Ant 1.6.x? I'm assuming then that this also fixes the Clover issues … b/c I had to symlink clover into my distribution to get it to work. Glad that I could be of help.

Icon-Comment ianWallace, 5 years and 86 days ago. Icon-Permalink

BTW - This discussion is probably more appropriate for the mailing list, than on the Wiki. Maybe you could post your question on <webtest@lists.canoo.com>. I've still got some questions for you. Where are you adding this <fileset> line? In build.xml (that's what I'm assuming). I add a line like that and it doesn't work (clover at least).

Icon-Comment jamapor, 5 years and 86 days ago. Icon-Permalink

I have posted to the mailing list, so please find the above mentioned information there. =)

In case you didn't want to wait for the daily update, I didn't add the line in the build file, but rather in the installTest.XML file.

Icon-Comment mobrien, 5 years and 86 days ago. Icon-Permalink

ant classpath settings not working for taskdef on a particular machine, but not the other.

<project name="SimpleTest" basedir="." default="Login"> <taskdef file="../webtestTaskdefs.properties"> <classpath> <fileset dir=".." includes="**/lib/*.jar"/> </classpath> </taskdef>

everything else the same

ant 1.6.2

setting classpath through windows 'set classpath=' works, but tedious.

Icon-Comment curlesm, 5 years and 64 days ago. Icon-Permalink

Can someone post the resolution to the how do I enable followRedirests question??

Thanks

Icon-Comment Gilles, 5 years and 61 days ago. Icon-Permalink

Hi all; I don't know if it's the right place, (please tell me), but I've got a problem with <clickbutton> when my page has a mix of <input type="submit"> and <input type="button"> . They all have the same name "dispatch" as I'm working with LookupDispatchActions. It seems like the first existing <input type="button"> is taken in priority by my <clickbutton label="WhatEver" name="dispatch">. I can't submit anything else as soon as I have a <input type="button">. Everything goes fine if I only have <input type="submit"> on my form. Any idea? Gilles
Name
Email:

Registration
Want to contribute? You can register here.

Help
For hints about formatting text see snipsnap-help.

Entry Points:

Editor's Pick:
Logged in Users: (0)
… and 2 Guests.

Recently Changed
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt