Re: [Http-webtest-general] How to write webtest based testcases in perl
Brought to you by:
m_ilya,
richardanderson
From: William M. <wi...@kn...> - 2003-10-29 14:03:04
|
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 |