Passorfail() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Purpose
Syntax
notInLatter(arr1, arr2, in_or_not)
Input parameters
Array arr1
Array arr2
String in_or_out
Return values
Dictionary keys

passOrFail()

Compares the expected and actual values of the prerequisite property and
determines whether the prerequisite property passes the check. The input
parameters can be generic numbers, size in MBs or GBs, CPU speed in MHz or
GHz, boolean, or strings.
Purpose
This function first calls the "changeMG()" on page 115 function to format and if
necessary convert the expected and actual values. It checks whether either value is
0, and if yes, it returns "FAIL" and exits. If the values are not 0, the function checks
whether the values are boolean, numeric, size in MBs or GBs, CPU speed in MHz
or GHz,, or strings. It then compares the values and returns the result.
Syntax
passOrFail(expect,real)
Input parameters
String expect
String real
Return values
String passOrFail
copy from somewhere
to somewhere else
Contains either "in" or "not" depending whether the function should return
the contents of the first array filtered to return only the contents that matched
the second array ("in") or the contents that did not match the second array
("not").
Returns the keys of the scripting dictionary object that contains the first array
filtered to have only the contents that matched the second array (in_or_not =
"in") or the contents that did not match the second array or (in_or_not =
"not").
The expected value for the prerequisite property.
The actual value for the prerequisite property.
Returns "PASS" or "FAIL" depending upon whether the expected value is equal
to or greater than the actual value.
Appendix E. Common functions for Windows systems
123

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Prerequisite Scanner and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents