Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
Axe aborts execution of the current test when it encounters error code 1003
(I believe that this error means 'object does not exist') and it is not verifying any of the verification points which come after this step. Could any one suggest how to stop AXE aborting and to continue verifying VPs which follow without interrupting the script? I would like to verify with out commenting the object AXE version: 1.5.2.100 Rations Robot: 2003.06
Hi Mark,
The default behavior for Axe is always to abort the test on any action other than a 'val'. In a situation such as yours, where you want the test to continue even if an object does not exist then I can think of a couple of options: 1. Implement a new 'val' action that calls a custom function. This function will need to; check that the object exists, retrieve the value, perform the desired check. 2. Write a custom 'get' action for the object that checks that the object exists first and only retrieves the data when it does. Full details on customising Axe and writing custom actions can be found in the Axe Technicians section of the Axe documentation. Sam
Thanks Sam
I have had a look at the documentation, but couldn't really identify what the custom function would look like - is it possible you could supply the changes required? These are the current values we have in the action map for 'get': HTMLEditBox - SQAGetProperty("&recstring&", "value", value) HTMLPushButton - SQAGetProperty("&recstring&", "value", value) HTMLRadioButton - AxeGetHTMLRadioButton("&recstring&",value) HTMLCheckBox - AxeGetHTMLRadioButton("&recstring&",value) HTMLComboBox - AxeGetHTMLComboBox("&recstring&", value) HTML - SQAGetProperty("&recstring&", "value", value) Your help is much appreciated! Many thanks Mark |