Scope of Data-Driven Loop Table Variable
I have a keyword test level variable from a DB table called accountID.
If I want to use the current run time value of this variable in a script routine inside my keyword test, do I need to pass it as a parameter to the script routine?
Currently I have this line inside my Python script routine which is not working at all.
FooFileName = KeywordTests.checkFoo.Variables.Value["accountID"]
where checkFoo is the name of the keyword test and accountID is the data-driven loop DBTable variable.
This returns a "The object does not support this property or method".
If I understand your description correctly, you may be missing one of the following required references:
1. keyword test name = checkFoo
2. keyword test, Variables, variable name (DBTable type) = MyTable
3. DBTable column name = accountIDIn that case your statement should be
FooFileName = KeywordTests.checkFoo.Variables.MyTable.Value["accountID"]Also I don't think you need the ".Value"