So I have a function in truclient that I would like to use throughout my script but with different data. Is there a way to send that function what parameter is would like it to use?
I'm not sure if TC.getParam will work.
So heres an example of what I'm wanting to do.
Say I have a script that inside of it, it googles something.
So I make a funciton to go to google and search a value.
The issue is that this value that I'm googling for changes in the different parts of my scipt.
So I Call the "Google" function one time and need it to use "A" then later down the script I need it to use "B".
I've been playing with Funciton Arguments but I'm not sure this is the right path.
It sound like TC.getParam and TC.advanceParam can help you with your use case.
I suggest you read about parametrization in LoadRunner documentation. There are several parameter types in strategies for advancing the parameter cursor. TC.getParam is just requesting for a value. The strategy and behavior is defined in the parameter itself.
Thank you everyone for your input.
Myself and a Co-Worked figured this out. You have to use the arguments section in the fucntion. Once you have the argument set up in the function then add "FuncArgs.Your_Var". Then when calling the function tell it what you want to pass using the arguments section there as well. This way you can send what ever data you want to that function and it will use it.