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:

How to use 2 data from datasource in one action

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
Sam Warwick Send private email
Thursday, December 8, 2011
 
 

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

Other recent topics Other recent topics