Logic 1:
Return Values
web_reg_save_param function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.
CorReturn = web_reg_save_param (.........);
After this you can use if logic:
if (CorReturn == 0)
lr_output_message("Text Found");
else
lr_output_message("Text Not Found");
Logic 2:
web_reg_save_param has an attribute called SaveLen which save the length of a sub–string of the found value, from the specified offset, to save to the parameter. The default is –1, indicating to save to the end of the string.
Here you can use:
if (SaveLen > 0)
lr_output_message("Text Found");
else
lr_output_message("Text Not Found");
Note: Please take care of proper format of the functions.
↧
Re: Can you record more than one expected outcome in a VUGen script (LR 11.5)?
↧