LoadRunner: An example of an effective use of the globals.h file
Question ID: 104243
0
0

hello,
Can someone provide a good example of when and how the globals.h file would be used?

I’ve also been told that in order to create an effective data repository to be used across multiple scripts, yet another piece of software called HP VTS (Virtual Table Server) has to be utilized. Is this the case, or are there other file based alternatives?

Marked as spam
Posted by (Questions: 4, Answers: 0)
Asked on October 8, 2010 2:01 am
1142 views
Answers (2)
1
Private answer

I use global.h to store all of my global functions and variables. This is also where you can add any included files via the #include statement.

I would say that VTS is the best solution for this. Using files is possible (i.e. having all virtual users point to the same shared file) but not preferred due to file contention. If multiple virtual users are trying to write to the same file at the same time, it could cause issues. VTS is pretty easy to install and it comes with documentation on how to implement it in your scripts. Just make sure it is installed anywhere you run virtual users (scripting boxes, generators, controllers) and you should be good to go.

-Terri

Marked as spam
Posted by (Questions: 3, Answers: 16)
Answered on February 21, 2011 10:49 pm
0
Private answer

Thanks to both of you. This is a nice bit of utility which is very useful.

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on June 6, 2012 3:23 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top