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 04-06-2011, 06:58 AM
Anita Anita is offline
Junior Member
 
Join Date: Mar 2011
Posts: 22
Default How to change local variables as global variables

Hi Friends
I have created few local variables related a test.
How can use these variables in another script? How to change these variables as global variables?

-Anita
Reply With Quote
  #2 (permalink)  
Old 04-06-2011, 05:12 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Anita,

You can probably create a variable of type "read from text file" which will store the value when assigned to it and then you can call that variable in other tests but when you call the variable in other tests, it should be of the same type "read from text file".
This will act as a global variable.

Please take a look at the test file that is attached with this post.
You will have to save this test file in "My Documents/Testing Anywhere/Testing Anywhere/My Tests"

Thanks & Regards
Attached Files
File Type: zip RetrieveValue.zip (544 Bytes, 8 views)
Reply With Quote
  #3 (permalink)  
Old 04-07-2011, 12:02 AM
Anita Anita is offline
Junior Member
 
Join Date: Mar 2011
Posts: 22
Default

Thank You.
This is a good idea. But my requirement is little different.
I need to input huge amount of data in my application.
and i also have data provided by client. So what i am doing is, first column data is used as variable names and the second column as values for those respective variables. So i cannot change or rewrite the data available in the excel format to text format. because data is huge and available to use in excel file. please suggest, how to work in this scenario.

-Anita
Attached Files
File Type: zip RetrieveValue.zip (1.9 KB, 4 views)
Reply With Quote
  #4 (permalink)  
Old 04-07-2011, 04:17 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Anita,

If you can send us the excel file on which you are working, we can create a sample test and can send it to you.

Please let us know in case you face any issues.

Thanks & Regards
Reply With Quote
  #5 (permalink)  
Old 04-07-2011, 10:43 PM
Anita Anita is offline
Junior Member
 
Join Date: Mar 2011
Posts: 22
Default

Hi,

Please find a sample of test data from the attachment. I need to load different data sheets provided in the same format repeatedly. There will be some changes in the cloumn B variables and column C value changes. So even though i am writing different test to load different type of contract(or column B data changes), i wish to use the same variables which i have created earlier, as i have around 300 (column B) variables in each type of contract. Column B variables are nothing but fields to work with for this scenario.
Please let me know if you require any other info.

-Anita
Attached Files
File Type: zip Test Data.zip (13.6 KB, 0 views)
Reply With Quote
  #6 (permalink)  
Old 04-09-2011, 06:10 AM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Anita,

The attachments attached in this post consist two tests according to your requirement.

The first test saves the data from an excel file to a text file and the second test retrieves the value from that text file to the "Prompt Assignment" variable.

Please find the attachment with this post.

Thanks & Regards.
Attached Files
File Type: zip test data reviewed.zip (3.3 KB, 6 views)
Reply With Quote
  #7 (permalink)  
Old 04-11-2011, 02:08 AM
Anita Anita is offline
Junior Member
 
Join Date: Mar 2011
Posts: 22
Default

Thank you.
I will use this method and let you know how it works for my scenario.

-Anita
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:41 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