![]() |
| |||||||
Testing Anywhere Post messages and questions related to Testing Anywhere here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hello, I am looking for some assistance on the below problem. I am creating a script in TA that aims to read from a different file each time. The file name and possibly directory will vary. The script will use a List Variable which will read data from the file (excel). As the file name and possibly directory will be different each time, I need to set this as a variable. Is it possible for TA to read a list variable from a file/directory that has been set as a variable? There appears to be no option for this in the "Edit Variable" window. Thanks and Regards, Claire. |
| |||
|
Hello Claire, For your requirement, you can use "my-list-variable" within a loop. You can create a text file instead of an excel file where-in, you can type the file destinations separated by commas and then you can use the option "read from text file" in a variable. NOTE: In the text file where you will be typing the destinations, you will have to initialize the text file by "variable name=" For example: If the variable name is "my-list-variable" then the text in the text file should start as "my-list-variable= destination1, destination2, destination3," Thanks & Regards |
![]() |
| Thread Tools | |
| Display Modes | |
| |