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 03-02-2010, 07:08 AM
Aditservice Aditservice is offline
Junior Member
 
Join Date: Jan 2010
Posts: 6
Exclamation How to throw an error (the dirty way)

In some cases it is desirable to throw an error on demand within a Begin Error Handling ... End Error Handling block when a certain validation fails. When the error is been thrown, the Error Handling actions should be executed.
In meta
Code:
Begin Error Handling 
   ...
   If some validation fails  (e.g. check radio button not selected)  Then 
        throw an error by using Read From Non-existing File
   End If
   ...
End Error Handling 
Since there is no Throw Error command available (yet). The following workaround could be used: Use the Read From File command to start to read data from a non-existing file. You only need the Read From File command. The Start loop '' Each row in a CSV/Text file of Session='SomeSessionName' can be omitted since there will be no actual data to be read. This Read From File command will cause an error (File not found) resulting in the Error Handler to be executed.

This is a workaround and should not be used as a structural solution to the issue.
Reply With Quote
  #2 (permalink)  
Old 03-11-2010, 10:53 AM
TylerMitton TylerMitton is offline
Senior Member
 
Join Date: Nov 2009
Posts: 102
Default

Right on, I use the same type of thing all the time for AutomationAnywhere... I use a bad database connection to cause the error... here's the thread about it in the AutomationAnywhere forum:

Intentionally throw an error

It sure would be nice to have a "Throw Error" command though hey!
Reply With Quote
  #3 (permalink)  
Old 03-14-2010, 05:45 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,


We have forwarded your requirement to the product development team for the future version of product.


It is with customers like you that we update and improve our existing features to fulfill our customer's requirements.
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:26 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