Is it possible to use a data file which contains the data for the test
cases in Robot Framework?
I only read about a resource file and variable file in the user guide.
Can the variable file be a python file only? Can we have a html file
with namespace so that the variables will be referred like
NAMESPACE.VARIABLE ?
Thanks,
Ocre
One east solution would be implementing a dynamic variable file that
reads the data from some other file. Alternatively you could have a
library with keywords for reading the data. If you just need to pass a
reference of that external file to some other tool, you can create a
path to it simply like `${CURDIR}${/}mydata.txt`.
Cheers,
.peke
Is this possible?
Something similar to accessing a keyword explicitly.
Thanks,
Ocre
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.
My team is having a lot of success with this. We h ave a couple
variations -- one that creates variables out of a spreadsheet (in csv
format), and one that makes variables from JSON data stored in a
javascript file.
Variable files are very cool, and only limited by your imagination and
programming skills.
The namespace behavior is unfortunately limited only to keywords. I
haven't even though it about ${resource.variable_name} syntax but it
feels pretty nice. The only problem is that it might easily clash with
the extended variable syntax (e.g. ${variable_as_object.attribute}).
Please submit an enhancement request about adding namespaces for
variables to the tracker. We probably need to look at the related code
anyway in RF 2.5.
Cheers,
.peke