Re: [Http-webtest-general] How to write webtest based testcases in perl
Brought to you by:
m_ilya,
richardanderson
From: archana <ar...@am...> - 2003-10-30 11:07:45
|
Thanks William, But what i am looking at is putting everything in perl script rather than using 'wt' file. And i wanted info on how i can mention list of global test parameters before any testcase? thanks, archana On Wed, 2003-10-29 at 19:31, William McKee wrote: > On Wed, Oct 29, 2003 at 03:12:04PM +0530, archana wrote: > > How do i define the global test parameters in perl script which uses an > > object of webtest? > > RTFM. You can pass in parameters via the run_wtscript command. I have a > control script which cycles through a directory of wt test files. It'd > be a simple matter of adding the global parameters to this perl script. > > In addition, I use a Perl parameter in my wt scripts to set the url so > that I can quickly switch between running the tests on my test server or > the production server. I used to have to change the url value in each wt > script until Ilya showed me how I could set it from the global perl > program. See the thread "Passing optional parameters" from last month in > the newsgroup archives on SourceForge. > > Hope this helps, > William > > -- > Knowmad Services Inc. > http://www.knowmad.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Http-webtest-general mailing list > Htt...@li... > https://lists.sourceforge.net/lists/listinfo/http-webtest-general |