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