Forum Discussion

DSmachineWorld's avatar
DSmachineWorld
Contributor
5 months ago

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 ...
  • Hassan_Ballan's avatar
    5 months ago

    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 = accountID

    In that case your statement should be 
    FooFileName = KeywordTests.checkFoo.Variables.MyTable.Value["accountID"]

    Also I don't think you need the ".Value"