|
Re: Data Entry options [message #774761 is a reply to message #774311] |
Wed, 04 January 2012 14:48 |
Alexandra Schladebeck Messages: 1613 Registered: July 2009 |
Senior Member |
|
|
Hi Chris,
Thanks for your post.
You are right, variables that change depending on the environment (paths to directories, filenames etc) are not best handled in central data sets. These are more designed to handle repeating data (e.g. default customer details that come up again and again) at one central place.
For our platform-specific variables, we initialize these as environment variables before the test and just call them using $VARIABLE_NAME in Jubula. This has the nice effect that we only need to write the data once, but has the disadvantage that testers manually starting the automated tests e.g. during the day to reproduce bugs have to make sure that they have declared and initialized these variables (either as environment variables or as variables stored by Jubula itself). This can be time-consuming, as there is no way to find out whether a variable is referenced without being initialized until runtime. If you're going to go this way, I'd recommend having naming conventions for variables that have to be set (e.g. EXTERNAL_...) so you can search for them easily in a test to make sure you get them all first time.
There are a couple of ideas we've thrown around to combat this problem: one of these would be to have variables declared for AUT configurations in the Project settings. We'd still have to have some way of making sure that all variables are declared and initialized that are required in the test, or at least ensure that each AUT configuration is required to declare the same variables.
If that's the kind of direction that would be useful, feel free to enter an enhancement. If not, feel free to elaborate
Regards,
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.01860 seconds