loadrunner - How do I save off a variable per thread in vuser_init for repeated use in Action block? -


in loadrunner program, have initialization block in vuser_init modifies value of handle.

static int handle =0; init(&handle); 

in case pointer handle modified init function. modified handle used other functions parameters within action block. problem static value of handle works first thread not others since read same static value. need static value of handle per thread action block called during each iteration thread can own handle. there way save handles list or map or structure in c recognized loadrunner?

just build whatever c structure want , use it. loadrunner ansi c lcc compiler.

you make linked list add , delete functions global , manage handles way. it's c. shoot moon , implement it.

i not sure mean value of handle per thread? mean per virtual user? ask because web virtual user can have more 1 thread.

if looking capture of distinct dynamic session information per virtual user common , standard loadrunner functions can used capture information. information can passed c functions or saved in c variables.

if trying tie distinct each thread within single virtual user going on path dll virtual in c/c++ built in visual studio loadrunner extensions (see advanced topics in vugen manual, building virtual users visual studio)


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -