Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
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
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 |