LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

TruClient script calls function created using "group into new function" fails passing parameters

SOLVED
Go to Solution
Highlighted
Visitor

TruClient script calls function created using "group into new function" fails passing parameters

I have been given the task of learning LoadRunner (sink or swim).  We must use the Ajax TruClient protocol for our process.  After successfully developing a script, I sought to create functions for repeatable tasks, passing parameters to the functions.  So I highlighted the set of instructions that would become a function, right clicked on the the highlighted set, then selected the "Group into new function" menu item.  This created my function and allowed me to specify my parameters.  Then in my script I used the Toolbox's Function group's Call Function item to add a call to my created function, supplying values for my parameters.

 

When the script runs the values are not passed and the script fails.  I am having difficulty finding information to help me do this correctly.  All help is appreciated.

 

2 REPLIES
Visitor

Re: TruClient script calls function created using "group into new function" fails passing

As so often happens, I find my solution after posting my question.  To use function parameters within the function body one must type FuncArgs.myParameter

HPE Expert

Re: TruClient script calls function created using "group into new function" fails passing

Great to hear. Kindly mark your post as a solution.

Guy Rosenthal
Network Virtualization PM