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 01-13-2012, 08:42 AM
Petra Petra is offline
Member
 
Join Date: Dec 2011
Posts: 66
Arrow Clear the “TA clipboard” prior to assigning new text to it. >Run Test- TA 7.0<

I was using multiple “TA clipboard” commands throughout the automated script to move data from one file to another (like one does with “windows clipboard” However the second time I went to copy text to the “TA clipboard” TA would not copy the new text, but kept the old text. At first I had a complicated script so I spent hrs thinking it was a mistake on my part.

I then created a two line script,
1) Copy text old to “TA clipboard”
2) Copy new text to “Ta Clipboard”
3) “Ctrl V” text to file (Expected new text pasted… Error>> old text pasted as well)

In order for this to work I have to use the “clear clipboard” before I can copy new text to the clipboard again. This is bizarre !!! If you have a clipboard function it should work exactly like windows clipboard. You never have to manually clear the “windows clipboard” before you copy something else to the clipboard.

Last edited by Petra; 01-16-2012 at 02:44 PM.
Reply With Quote
  #2 (permalink)  
Old 01-15-2012, 03:53 PM
KMuller KMuller is online now
Member
 
Join Date: Dec 2010
Posts: 91
Default

I never use the TA clipboard but I've read of others having similar troubles.

Have you tried using 'Prompt-Assignment'? That's what I assign all my variables to, never really have problems with it. Or create local variables when you need more than one.
Reply With Quote
  #3 (permalink)  
Old 01-16-2012, 10:00 AM
Petra Petra is offline
Member
 
Join Date: Dec 2011
Posts: 66
Default

Thanks KMuller for the response. I worked around the issue also, but its annoying to have a ”feature” named like a standard window function and have it work differently with no explanations of the limitation
Reply With Quote
  #4 (permalink)  
Old 01-16-2012, 01:09 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi Petra,

Have you tried inserting 'Delay' between the the two 'Clipboard' commands.

Kindly advise.
Reply With Quote
  #5 (permalink)  
Old 01-16-2012, 02:45 PM
Petra Petra is offline
Member
 
Join Date: Dec 2011
Posts: 66
Default

Thanks for getting back to me. Yes I had a two second delay. The point is that the old data in the TA clipboard is not cleared before asigning new data to the TA clipboard. I had to manualy clear it to get just the new data into the clipboard, thats all I was pointing out
Reply With Quote
  #6 (permalink)  
Old 01-16-2012, 02:51 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Thanks for the note Petra. Can you forward the test script which was not clearing the clipboard values on assigning new value.

We would like to re-create the scenario at our end using the same test script as you did.

Regards.
Reply With Quote
  #7 (permalink)  
Old 01-16-2012, 03:19 PM
Petra Petra is offline
Member
 
Join Date: Dec 2011
Posts: 66
Default

File attached
Attached Files
File Type: zip Old-New-CLipboard test.zip (24.6 KB, 1 views)
Reply With Quote
  #8 (permalink)  
Old 01-17-2012, 04:36 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Thanks Petra for the file.
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 03:18 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