Monday, May 18, 2015

pybot and Non-existing variable

In the logs, I could see this error:


Though later at the bottom, the logs indicated that the variable was being read correctly:

Eh? Turns out I forgot to install __init__.txt in the directory where the variable was being set.

For instance, for the example above, in the same directory where "Set Global Vars" is contained (in this case in a file called "Util.txt"), you need to have a __init__.txt containing the following lines:
*** Settings ***
Suite Setup     Set Global Vars
Resource        Util.txt

No comments:

  • Book reviews