HP
HP0-M49 · Question #59
You are calling a custom function in a script you have written. The custom function takes an integer and is of the format myfunc(int); The HP LoadRunner parameter is called param_quantity. What…
The correct answer is B. myfunc( atoi ( lr_eval_string("{param_quantity}"))). See the full explanation below for the reasoning.
Question
You are calling a custom function in a script you have written. The custom function takes an integer and is of the format myfunc(int); The HP LoadRunner parameter is called param_quantity. What should you use to call this custom function and pass your param_quantity value to it?
Options
- Amyfunc(({param_quantity}").getInt))
- Bmyfunc( atoi ( lr_eval_string("{param_quantity}")))
- Cmyfunc("{param_quantity}")
- Dmyfunc(lr_string_int("{param_quantity}"))
- Emyfunc((integer) lr_eval_string({"param_quantity}"))
How the community answered
(41 responses)- A2% (1)
- B73% (30)
- C15% (6)
- D7% (3)
- E2% (1)
Community Discussion
No community discussion yet for this question.