Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
I need to get two data from datasource in a function.
Let's say "msg(firstname,surname)". I would like to do the equivalent of "msg(Build.Load(Firstname),Build.Load(Surname))". I try to use a combinaition of Load and Save. 1) Build.Load + Save fistname 2) Build.Load + Save lastname 3) msg with msg having this code : rc = AxeMainAPI.DataLoad("%OBJECT%", "Firstname", myFirstname) rc = AxeMainAPI.DataLoad("%OBJECT%", "Surname", myLastname) Msgbox "Hello " & myFirstname & " " & myLastname It seems too complicated. Is it possible to get the value of the Datasource directly in VBScript using AxeMainAPI ?
Nicolas Legeay Wednesday, December 7, 2011
Hi Nicolas,
build.load is a static datasource action. i.e. it replaces the step data at build-time, not run-time. As such there is no correlation between build.load and the Axe runtime api. If you need to use two variable parameters in an action this way then you need to explore dynamic datasource options, such as using the run configuration files, or the AxeHarness features. Often in cases like this one, there may be a better and less technical looking way of solving your testing problem. Remember that with Axe the aim is always to keep the test tables as simple and intuitive as possible, especially to non-technical testers. Conseqently, actions with multiple and complex parameters can start to appear to much like code, which is what we are striving to avoid. If you want to give some more insight into what you are doing and why, then maybe we can suggest and alternate approach. Sam |