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:

Want to enter Chr(32) in a data column - TesTPartner

Hi,

I would like to the data cell of a Val to be Chr(32) and have the script created as follows:

AxeMainAPI.StepBegin "DisplayName", "val", Chr(32)
rc=0
rc = AxeMainAPI.StepValidateEqual(Chr(32), value)
AxeMainAPI.StepEnd rc,err_msg
AxeMainAPI.SubTestEnd

What happens is:
AxeMainAPI.StepBegin "DisplayName", "val", "chr(32)"
rc=0
rc = AxeMainAPI.StepValidateEqual("chr(32)", value)
AxeMainAPI.StepEnd rc,err_msg
AxeMainAPI.SubTestEnd
'

Any help will be greatly appreciated
Marc Maurhofer Send private email
Wednesday, February 28, 2007
 
 
I should have mentioned what the HTML looks like:

<span id="someID">&nbsp;</span>

TestPartner interpretes the &nbsp; as the same as Chr(32)
Marc Maurhofer Send private email
Wednesday, February 28, 2007
 
 
Hi Marc,

This is because Axe treats all cells that contain nothing but whitespace as empty. So a single space character in your Data column will be ignored. So this is not actually anything to do with the way TestPartner handles the space.

A simple solution could be to add a custom val action to do the validation.

e.g.
action: val.space
command: rc = AxeMainAPI.StepValidateEqual(" ", value)

For full details on adding custom actions in Axe please refer to the Axe Technicians Guide.

Sam
Sam Warwick Send private email
Wednesday, February 28, 2007
 
 

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

Other recent topics Other recent topics