[QA] Test_page env variable and url visited

Tomislav Plavcic tplavcic at gmail.com
Mon Oct 7 23:05:55 UTC 2013


Hello,

I have two suggestions to ease debbuging of single test locally but
I'm not sure if there are already solutions for them and maybe they
don't make sense but you'll see...

#1
TEST_PAGE environment variable - running tests with RandomPage is good
but when I debug a single test which I edit locally I want to first
run the test on a fixed page (which data I can prepare if necessary).
I know I can make a change in the code for RandomPage to point always
to the same page, but maybe the env. variable would be better. The
effected tests would be only ones using RandomPage and not others that
already have some fixed page associated.

#2
When a test fails maybe it would be good that it prints a url visited
so I can check a tested page manually - this is also because of
RandomPage. I know tests are recorded on sauce labs, but I'm talking
for local debugging and I have tried to use verbose parametar for
cucumber but it doesn't print this info.
Maybe there's some other parameter but i don't know it...

Kind regards,
-- 
Tomislav Plavcic
Theoretically, if I cut costs enough we'll be profitable without
selling any products... Dilbert



More information about the QA mailing list