0

I have written a test case to create 10 folders by using randomstring in a for loop.

How do I store the 10 folders name (FolderWorld-Name and FolderMap-Name) as variable so I can reuse them at subsequence test cases?

Test
    Click Folder Button

@{RandomFolder}=    Create List
 FOR    ${i}    IN RANGE    10    
   ${value}         Generate Random String    3     [NUMBERS]
   Click World Name
   Keyboard Input    insertText    FolderWorld-${value}
   Sleep     3s

   Click Map Name
   Keyboard Input    insertText    FolderMap-${value}
   Sleep     3s

   Click Save Mapping
   Sleep     3s
 END

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.