[TIP] public variables

Jyothi Krishnan stopjo at yahoo.com
Fri Sep 18 08:14:27 PDT 2009


I use yaml to do parametrization for python-selenium tests.  In my tests.py, I declare the variables which are used more than once, as public.  I have around 24 to 25 variables like that and I don't want to type the whole thing each time I use it. 
for eg., userid=testdata['login']['userid']

Is there any performance issue or any issue in declaring too many public variables?  If so, how can this be handled?

Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/testing-in-python/attachments/20090918/1708a408/attachment.htm 

More information about the testing-in-python mailing list