How does the Reserved Variables feature work in eValid

Discussion of the technology underlying the eValid solution.

How does the Reserved Variables feature work in eValid

Postby DMattson » Thu Apr 14, 2022 9:48 am

Hi.

How Does eValid's Reserved Variables Feature Work?

Thanks
DMattson
 
Posts: 1
Joined: Thu Apr 14, 2022 9:44 am

Re: How does the Reserved Variables feature work in eValid

Postby eValid » Fri Apr 15, 2022 9:43 am

DMattson wrote:Hi.

How Does eValid's Reserved Variables Feature Work?

Thanks


Thanks for asking about that eValid feature DMattson.

The reserved variables feature of eValid lets a user insert certain "meta variables" into a script file to allow importation of runtime environment variables.

This feature aids the user in using the current environment settings and other features within the current script file.

Reserved variables in a script file have their value replaced during execution through DataSynthesis or batch mode operation.

This makes it possible to produce scripts that can run successfully on different machines and/or with different contexts.

Reserved variables always have the syntax "$_name", where name describes the variable value to be used at script playback time.

To insert a reserved variable in the script, follow these simple steps:

(1) Create or edit an eValid script file.

(2) Identify the fields to be replaced with the reserved variables.

(3) Replace the fields with the appropriate reserved variable name.

For example, here are the "before" and "after" versions of a script passage:

# Before...
# Enter the current hostname
InputValue 0 99 "TEXT" "p" "hostname#1" "" ""
# Enters a date string in the textbox
InputValue 0 58 "TEXT" "p" "January 1 2000" "" ""

# After editing...
# Enter the current hostname
InputValue 0 99 "TEXT" "p" "$_HostName" "" ""
# Enters a date string in the textbox
InputValue 0 58 "TEXT" "p" "$_MonthFull $_Date $_Year" "" ""

In this example "$_HostName" refers to the Host Name of the local machine (on which eValid is executing).

(4) Save and run the script using the "Run Synthesized" command option, or with a command line invocation.

As the command is executed eValid substitutes the fields in the script based on the current values as specified within the environment, such as the current hostname and date data, as used in the above example.

For more information on other reserved variables, please refer to Reserved Variables (URL:

http://e-valid.com/Products/Documentati ... ables.html)


-- eValid Support
eValid
 
Posts: 2250
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Technology

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons