Hello Jim

Thanks for the answer. I will look if that works on my fitnesse.

Robert

OK, I think I see the problem.

You are calling baseUrl through a press.  I don't think we've set it up
that way.  Oddly it's working, but it's not stripping the argument.  In
fit-world, I don't think press actions take arguments.  So we set up a
specific call for baseUrl on webFixture which you should use.  Example
shown below.  Also, in the CVS tree under fitplugin/test, you will find a
bunch of examples.  These are designed to run with an embedded fitrunner -
not fitnesse, but for the purposes of looking at examples of how to
interact with WebFixture it should do.  It doesn't use the "start" command,
but ignore that - start as per your example is the right way to go.

Test text input field entry, inspection of form field values, and simple
form submission

| net.sourceforge.jwebunit.fit.WebFixture ||||
| baseUrl | http://localhost:8081 |||
| begin   | menu         |||
| press   | link         | Choose your favorite color ||
| check   | form element | color                      | red |
| enter   | color        | pink                       ||
| check   | form element | color                      | pink |
| press   | submit       |||
| check   | title        | Color Page                 ||
| check   | text present | Your chosen color was pink ||

|net.sourceforge.jwebunit.fit.WebFixture|
| begin | enterMoria ||
| enter | password   | friend |
| press | submit     | EnterButton |
| check | title      | Moria |
| begin | enterMoria ||
| enter | password   | enemy |
| press | submit     | EnterButton |
| check | title      | Moria Entry Failure |

Jim Weaver
Software Developer - ThoughtWorks
Office : 615-850-4724
Cell : 312-286-7496



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users






--
Mit freundlichen Gr��en, Robert Schipper
---------------------------------------------------------------
Robert Schipper
Trainee Fachinformatiker/Anwendungsentwicklung
Controll-IT GmbH
mailto:[EMAIL PROTECTED]
phone: +494089066476



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to