Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

Cannot map action error

Hi,
I am trying to use a custom function that will save out a value to a .xml file.

I have debugged the function outside of Axe and it works fine, but when I come to use it within Axe I get the following error:
'Cannot map action'save.xml("users.xml","TC_1","userid")' (object='Existing') (class='HTML')'.

I have the following entry in the LocalRobotActionMap:
action    command
save.xml  saveToXML("%DATADIR%","%PARAM1%","%PARAM2%","%PARAM3%",value)

The class is left blank as we want to use it to apply to all classes.

With the subtest I have in the action column for the object I am testing:

get;save.xml("users.xml", "TC_1", "userid")

In theory, this would get the 'userid' value through the get action and save to the appropriate XML file in the data folder.

What am i doing wrong?
Ian Partridge Send private email
Tuesday, January 2, 2007
 
 
In answer to your query, when mapping actions that require parameters the parameters themselves need to be explicitly added to the action column in the action map (pg.11 - Technicians Guide). In this case the action map would read something like:

action                          command
save.xml(file,testid,key)      saveToXML("%DATADIR%","%PARAM1%","%PARAM2%","%PARAM3%",value)

The parameter names specified are for your reference only and can be anything of your choosing.

Hope this helps,

Duncan
Duncan Brigginshaw Send private email
Thursday, January 4, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics