Page 1 of 1

Explaining the Lock and Unlock commands in eValid

PostPosted: Mon Jul 19, 2021 10:07 am
by PeterC
Morning.

Please explain the Lock and Unlock pair of commands in eValid?

Also, give me an example on how to use these commands?

Thanks in Advance.

Re: Explaining the Lock and Unlock commands in eValid

PostPosted: Tue Jul 20, 2021 7:59 am
by eValid
PeterC wrote:Morning.

Please explain the Lock and Unlock pair of commands in eValid?

Also, give me an example on how to use these commands?

Thanks in Advance.


Thanks for asking about the Lock and Unlock commands PeterC.

In a LoadTest Application where focus issues are critical to the success of the LoadTest scenario.

eValid has a special command available that can be added to an existing script which locks the commands enclosed within the Lock & Unlock commands and prohibits any other application from stealing focus unless the unlock command has been issued.

This can be applied to a Load Test scenario which deals with online transactions and which requires focus to be locked to the certain eValid performing the task.

For example:

# Navigates to the Yahoo! Mail Page
InitLink "http://mail.yahoo.com"
# Example Use of these commands
# From this point onward focus will not be taken away from
# the specific window until a unlock command is read.
Lock
InputValue 100 "TEXT" "UserLogin" "eValid" "" ""
InputValue 110 "TEXT" "PassWord" "94107" "" ""
Unlock

In the example given, the lock which is issued is only to take effect when a field is required to be accomplished and unlocked as soon as the appropriate fields have been filled out.

This eliminates the possibility of eValid not being able to completely fill out the form due to other applications stealing focus and in turn inserting the given values in the wrong window.


-- eValid Support