Forum Discussion

RemcoKok's avatar
RemcoKok
Occasional Contributor
3 years ago
Solved

Data-driven Keyword testing, Selecting dropdown menu in fat client

Is it possible to make a Data-driven Keyword test, that will go through my fat client dropdown menu with clicks to open the client Windows? I've recorded the clicks and I have a name mapping for the...
  • Marsha_R's avatar
    Marsha_R
    3 years ago

    ok I'm guessing that the lines like this are the ones you want to read data for, and the part following LWComponent is what is changing

    Aliases.browser.BufferedFrame_new.LWPopupMenu.LWComponent.InpmngvpRegRegvpmldWAZO

     

    Define a string variable that holds Aliases.browser.BufferedFrame_new.LWPopupMenu.LWComponent. plus the variable from the ddt that you want to use.

     

    The contents will look like Aliases.browser.BufferedFrame_new.LWPopupMenu.LWComponent.InpmngvpRegRegvpmldWAZO

    but it's a string and not an object

     

    When you want to use it as an object, then you need 

    eval(stringvariable)

     

    By putting the ddt variable in the string, you'll be able to use each value as it loops through the test.

     

    Try it and let us know if you have more questions!