Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Testing Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Testing Anywhere Post messages and questions related to Testing Anywhere here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2011, 08:30 AM
cfereday cfereday is offline
Junior Member
 
Join Date: Jun 2010
Posts: 19
Default List Variable - Variable File Name

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.
Reply With Quote
  #2 (permalink)  
Old 05-09-2011, 04:55 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved