On Mon, Aug 6, 2012 at 3:35 PM, Stephen Patterson <[email protected]>wrote:

> I'm writing a module which does some screen-scraping on a mostly open
> website, but some of the functionality is restricted to registered users.
> For completeness, I'd like to add my username & password for testing but
> not include these in the distribution.
>

> Using Test::More at present, can it (or other Test modules) load test
> configuration from a config file ?
>

I would put these in a environment variables and check if they exist, and
if so, run additional login and post-login tests.

Also, you don't really want to test the website, you want to test your
logic. This means you're checking whether, given the proper input, you
provide the proper action. I would provide sample HTML and check that I'm
doing the proper action regarding it.

Reply via email to