2019 November Release

Use Parameters in a TestPermanent link for this heading

In a test it makes sense to use parameters for saving values, setting fields, naming objects etc. This means you should better use parameter references instead of fixed values. Here are some examples for using parameters.

Example 1: Use a Parameter TablePermanent link for this heading

You want to create a new person in Fabasoft Folio. A parameter table exists in which all values are saved that are needed for creating the person.


   <Set parameter="FirstName" value="Matthew" />
   <Set parameter="LastName" value="Miller" />
   <Set parameter="Title" value="BSc" />
   <Set parameter="BirthDay" value="09.04.1973" />
   <Set parameter="Gender" value="Male" />
   <Set parameter="Street" value="Noble Quay 7" />
   <Set parameter="ZipCode" value="4935" />
   <Set parameter="City" value="Booming City" />
   <Set parameter="Country" value="Argentina" />
   <Set parameter="PhoneNumber" value="0054 5793 288615" />
   <Set parameter="EMail" value="m.miller@mail.com" />

When creating this person you can use the parameters (after loading the parameter table):


<Execution action="Click" location="HEADER.PORTALS.Desktop" />
<Execution action="Click" location="PAGES.Explore.Object List.MENUBAR.Object" />
<Execution action="Click" location="MENU.New" />
<Execution action="Click" location="PAGES.Explore.What do you want to create?.More" />
<Execution action="Click" location="PAGES.Explore.What do you want to create?[0].Person" />
<Execution action="Click" location="PAGES.Explore.BUTTONBAR.Next" />
<!-- now the properties of the person are defined by referencing the parameters -->
<Execution action="Set" location="PAGES.Explore.Surname" location="{~LastName~}" />
<Execution action="Set" location="PAGES.Explore.First Name" location="{~FirstName~}" />
<Execution action="Set" location="PAGES.Explore.Post Title" location="{~Title~}" />
<Execution action="Set" location="PAGES.Explore.Sex" location="{~Gender~}" />
<Execution action="Click" location="PAGES.Explore.Address.BUTTONBAR.Create entry" />
<Execution action="Click" location="PAGES.Explore.Address[0].Open Detail" />
<Execution action="Set" location="PAGES.Explore.Address.Street" location="{~Street~}" />
<Execution action="Set" location="PAGES.Explore.Address.Zip Code" location="{~ZipCode~}" />
<Execution action="Set" location="PAGES.Explore.Address.City" location="{~City~}" />
<Execution action="Set" location="PAGES.Explore.Address.Country" location="{~Country~}" />
<Execution action="Click" location="PAGES.Explore.BUTTONBAR.Next" />
<Execution action="Click" location="PAGES.Explore.Telephone Numbers.BUTTONBAR.Create entry" />
<Execution action="Set" location="PAGES.Explore.Telephone Numbers[0].Telephone Number" location="{~PhoneNumber~}" />
<Execution action="Click" location="PAGES.Explore.E-Mail Addresses.BUTTONBAR.Create entry" />
<Execution action="Set" location="PAGES.Explore.E-Mail Addresses[0].E-Mail Address" location="{~EMail~}" />
<Execution action="Click" location="PAGES.Explore.BUTTONBAR.Next" />
<!-- Open the context menu of the person by using parameters to identify it -->
<Execution action="Contextmenu" location='PAGES.Explore.Object List["Name"=="{~LastName~} {~FirstName~}"]' />
<Execution action="Click" location="MENU.Edit Properties" />
<Execution action="Set" location="PAGES[0].Date of Birth" location="{~BirthDay~}" />
<Execution action="Click" location="PAGES.Explore.BUTTONBAR.Next" />

Example 2: Save Name of a Business Object in a ParameterPermanent link for this heading

Each time a business object is created it gets an individual (increasing) number. Therefore, it is useful to save the name of the business object in a parameter and use this parameter later on for identifying the object.


<Execution action="Click" location="PAGES.Explore.Object List.BUTTONBAR.New" />
<Execution action="Click" location="PAGES.Explore.What do you want to create?.More" />
<Execution action="Doubleclick" location="PAGES.Explore.What do you want to create?[0].Case" />
<Execution action="Click" location="PAGES.Explore.BUTTONBAR.Next" />
<Execution action="Click" location="PAGES.Explore.Category" />
<Execution action="Keypress" location="WINDOWS[LAST]" location="InsertKey" />
<Execution action="Set" location="PAGES.Explore.Category" location="Prod*" />
<Execution action="Keypress" location="WINDOWS[LAST]" location="ReturnKey" />
<Execution action="Click" location="PAGES.Explore.Category[0].Product Information" />
<Execution action="Click" location="PAGES.Explore.BUTTONBAR.Next" />
<!-- Save the name of the case in a parameter -->
<Set parameter="CaseName" location="PAGES.Explore.CONTROLS.Object List.ROWS[LAST]" />
<!-- Select case by the value saved in the parameter "CaseName" -->
<Execution action="Click" location='PAGES.Explore.CONTROLS.Object List.ROWS["Name"=="{~CaseName~}"]' />

Use parameters in locationsPermanent link for this heading

Parameters can also be used in the location attribute of an execution statement. The values of the parameters to replace are automatically escaped in the correct way.

To insert a parameter without escaping (Dots are interpreted as location part separators and quotes in expressions are interpreted as such), use following syntax: {~~parametername~~}.


<Set parameter='pagename' value='Version 1.0 (Ordner): Bearbeiten' />

<Set parameter='locationpart' value='CONTROLS.Name' />

<Execution action='Click' location='WINDOWS[LAST].{~pagename~}.{~~locationpart~~}' />