As per what we practiced, if you configure
your test to the fitnesse wiki, your will be able to include any test as you
want. :^)
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marco Bizzarri
Sent: Tuesday, September 06, 2005
8:20 AM
To: selenium-users@lists.public.thoughtworks.org
Subject: [Selenium-users]
"Calling" a test from another test
Hi all.
I would like to call a test from inside another test, so that I can perform
some actions which are shared between different tests.
If I understand correctly, there is no way of doing this. Should I write my
test as a doSomething extension, and write all my shared parts inside it?
Let's say I've a test testLogin like:
open | anUrl|
type | username| pluto |
type | password | pluto |
clickAndWait | submit |
verifyLocation | anotherUrl |
can I create a login command, and write inside it:
... doLogin = function(locator, text) {
doOpen(anUrl);
doType('username', 'pluto');
doType('password', 'pluto');
doClickAndWait('submit');
verifyLocation('anotherUrl');
}
or what could be the syntax?
Regards
Marco
--
Icube Srl
http://www.icube.it/
|
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users