Here I am giving code to generate the dynamic transaction name as many time it requires in our scripting.
For example, if I am searching for a document with a different set of properties every time, like – approved, withdrawn, submitted etc., its better I have a prefix transaction name like “T01_SearchDocWithStatus_” and then append to it the parameterized value chosen.
char transactionName[100];
char* temp[50];
strcpy(temp,” T01_SearchDocWithStatus_”);
strcat(temp,lr_eval_string(“{DocStatus}”));
strcpy(transactionName,temp);
lr_start_transaction(transactionName);
web_url{
This way, when you run the scenario, you can look at the response times of individual status fetches
Note: that you cannot declare the transactionName as a pointer variable.
For example, if I am searching for a document with a different set of properties every time, like – approved, withdrawn, submitted etc., its better I have a prefix transaction name like “T01_SearchDocWithStatus_” and then append to it the parameterized value chosen.
char transactionName[100];
char* temp[50];
strcpy(temp,” T01_SearchDocWithStatus_”);
strcat(temp,lr_eval_string(“{DocStatus}”));
strcpy(transactionName,temp);
lr_start_transaction(transactionName);
web_url{
This way, when you run the scenario, you can look at the response times of individual status fetches
Note: that you cannot declare the transactionName as a pointer variable.
It was very nice article and it is very useful to Load Runner learners.We also provide Cub training software online training.
ReplyDeleteInbound Technical Support call | Call at: +91 981-142-0083 | inbound calls for tech support | tech support inbound calls A great online marketing company for tech support inbound calls, Inbound Technical Support call by osiel web
ReplyDelete