VTS (Virtual Table Server)
Kosuri Suryanarayana Raju
Quality Specialist - Performance Engineer || Quality Assurance - Performance Testing || Application Performance Monitoring || Dynatrace Application Monitoring || Appdynamics Application Monitoring || AWR Reporting
Introduction:
VTS (Virtual Table Server) is a web-based application that works with Vuser scripts.
VTS offers an alternative to standard VuGen parameterization which we will regularly to mitigate the real user data inputs.
When you use standard parameterization, each Vuser is assigned parameter values from a dedicated set of values - parameter values are not shared between Vusers as there is dependency to do it as test data may reuse or may not be reusable.
In contrast, VTS enables you to assign parameter values from a single set of parameter values to multiple Vusers more accurately without any issue. This may enable you to more client satisfaction to emulate a real-user environment for parameterization and reusability.
GLOBALS.h
PVCI2 pvci; // string variable
char * VtsServer = "192.16.999.14";
int nPort=8888;
Initialization of VTS Parameters:
vuser_init()
pvci = lrvtc_connect(VtsServer,nPort,VTOPT_KEEP_ALIVE);
if(pvci!=0)
{
lr_error_message("Unable to connect to VTS and pvci=%d\n",pvci);
lr_exit(LR_EXIT_MAIN_ITERATION_AND_CONTINUE,LR_FAIL);
}
lrvtc_create_column("vts_emp_id");
Reading data from VTS
do
{
lrvtc_retrieve_message("vts_emp_id");
if(strcmp(lr_eval_string("{vts_emp_id}"),"")==0)
{
j++;
lr_think_time(120);
if(j==3)
{
lr_error_message("Unavailability of data in the coloumn MR_Number");
lr_exit(LR_EXIT_ITERATION_AND_CONTINUE,LR_FAIL);
}
}
}while((strcmp(lr_eval_string("{vts_emp_id}"),"")==0) && (j<=3));
lr_save_string(lr_eval_string("{vts_emp_id}"),"c_loan_num");
Writing data to VTS
lrvtc_send_message("vts_emp_id",lr_eval_string("{c_loan_num}"));
vuser_end
lrvtc_disconnect();
Senior Engineer - QE | Performance Engineering, Agile Methodologies
3 年Did anybody know how to do it in Jmeter?
Performance tester at Na
6 年Thanq
Senior Manager - Standard Chartered Bank || Ex Citi || Ex Cognizant || Ex Accenture
6 年I have used the VTS before and it trully reduces your effort from the data management point. But also there is a limitation that it fails when the amount of data to be fetched it too high (~600/sec). There is another tool by the name Squid which can overvome this challenge! :)
Senior Software Engineer at Bank of America
6 年Good information. Thank you for sharing