Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
Hi,
We have scenario in which I need to enter random number in the field. I want to auto-generate random number in the Data cell in Subtest file. How can we auto Generate random number in the data cell in AXE framework? Please assist. Thanks and Regards, Rahul Ingle
Hi Rahul,
The main steps are: 1. Write a custom function to generate the random number. How you do this will depend on what scripting language your test execution tool uses e.g. vbscript for QTP, C/VB.Net for Coded UI etc. 2. Add your custom action to your Axe project's local Action map as a new 'load' action e.g. load.random 3. In your subtest load the random number and enter the value e.g. load.random; set Sam |