Search code examples
arrayscollectionsglobal-variablesrobotframeworkselenium2library

How to create an array for input Data In ROBOT FRAMEWORK


How to create an array for input Data In ROBOT FRAMEWORK

By default table should be like this..,

enter image description here

After that, click Add Device, then some input I given.

Now rows will be Created like this.. enter image description here

How can I give input as arrays for this table.

Anyone try to solve this problem

Thank you..!


Solution

  • *** Variables ***

    @{ARRAY LIST} | 1 | 3 | 4 | 5 | 6

    you can use this reference there, like:

    ${ARRAY LIST}[0]          #1
    ${ARRAY LIST}[1]          #3
    ${ARRAY LIST}[2]          #4
    

    you will get output like this