Simple functions in Vugen
Here's a thing that may be somewhere but I don't see it. I know you can write Vuser functions and C functions. But those are just calls to pre-existing functions. I also know you can write functions in C and call them via a DLL. But can you just write a function in the language of VuGen itself? That's the important thing that I'd want to do.
Example: I want to write a function that encapsulates the abilities of the lr_get_debug_message so that the function would read whatever value is returned and then return a string that contains the constant that corresponds to that value. So I'd want to write a general function that I can call, passing it the argument, and then having it return a string value. (Ideally, I'd like to put these functions in a separate Vuser script that is sort of global and call them from there because I might want to use this function of mine in many scripts in VuGen. SilkPerformer and eTest let you do something like this, but I'm not sure that VuGen/LoadRunner does.)
Re: Simple functions in Vugen
I'm not completely clear what you're trying to accomplish that you haven't already figured out. The language of VuGen IS C. So, unless you're talking about just a local function (which I don't think you are), then your user-written functions would have to be in a globally accessible library, hence the need for a dll.