On Tue, Sep 22, 2009 at 02:12:31PM -0400, Bob McConnell wrote:
> Good morning,
> 
> I have begun the task of automating functional tests for some of our web
> servers. I have had some success using Selenium IDE in Firefox to
> capture input sequences, exporting them to Perl scripts, then using the
> Se remote control server to execute them. But I have run into one minor
> problem.

> My problem is that we have multiple virtual hosts on that server, and I
> need to select a specific host for each run. So when I run the harness I
> need some way to pass the "tst12.dev" portion of the URL into each of
> the test scripts. I can't see any way with Test::Harness or Test::More
> to do this. If I can, then I have other parameters that need to be
> passed in as well.
> 
> Any suggestions?

I solve exactly this problem by using environment variables.  You can
also provide a default in your test if that makes sense.

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to