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.