Example of a Compiled Module - WinRunner

The following module contains two simple, all-purpose functions that you can call from any test. The first function receives a pair of numbers and returns the number with the higher value. The second function receives a pair of numbers and returns the one with the lower value.

# return maximum of two values
function max (x,y) { if (x>=y) return x;
else
return y; }
# return minimum of two values
function min (x,y)
{
if (x>=y)
return y;
else
return x;
}

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics