• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Daniel P. · Oct 10, 2013 at 09:01 PM · continuous delivery

Loadrunner script tagging for scripts in URL mode

The automated dynaTrace Loadrunner script tagging tool only works for scripts recorded in HTTP mode. When tagging scripts in URL mode, request that are being send as a part of concurrent group(web_concurrent_start function ) fail because the dynaTrace header fails within that group because web_save_timestamp_param is not allowed within the concurrent group. 

My current client found a fix for this by changing the globals.h file in Loadrunner scripts. By removing references to TimeStamp, the Loadrunner script executes without error. We are also still capturing the tagged transactions in dynaTrace. 

 

Location file: globals.h

Original dynaTrace code with TimeStamp:

void addDynaTraceHeader(char* header){
    char* headerValue;
    int headerValueLength;
    int vuserid, scid;
    char *groupid, *timestamp;
    char* vuserstring=(char*) malloc(sizeof(char) * 10);

    web_save_timestamp_param("TimeStamp", LAST);
    timestamp=lr_eval_string("{TimeStamp}");

                        lr_whoami(&vuserid, &groupid, &scid);
                        itoa(vuserid,vuserstring,10);

                                     headerValueLength = strlen(header) + 4 + strlen(vuserstring) + 4 + strlen(timestamp) + 1;
                                     headerValue = (char*) malloc(sizeof(char) * headerValueLength);
                                     strcpy(headerValue, header);
                                     strcat(headerValue,";VU=");
                                     strcat(headerValue,vuserstring);
                                     strcat(headerValue,";ID=");
                                     strcat(headerValue,timestamp);

    web_add_header("X-dynaTrace", headerValue);
    free(headerValue);
    free(vuserstring);
}



Modified without timestamp:

void addDynaTraceHeader(char* header){
       char* headerValue;
       int headerValueLength;
       int vuserid, scid;
       char* groupid;
       char* vuserstring=(char*) malloc(sizeof(char) * 10);

                            lr_whoami(&vuserid, &groupid, &scid);
                            itoa(vuserid,vuserstring,10);

                                       headerValueLength = strlen(header) + 4 + strlen(vuserstring) + 4 + 1;
                                       headerValue = (char*) malloc(sizeof(char) * headerValueLength);
                                       strcpy(headerValue, header);
                                       strcat(headerValue,";VU=");
                                       strcat(headerValue,vuserstring);
                                       strcat(headerValue,";ID=");
                                                                
         web_add_header("X-dynaTrace", headerValue);
         free(headerValue);
         free(vuserstring);
}


Comment
Anthony J.

People who like this

1 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

5 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Daniel P. · Oct 24, 2013 at 07:26 PM

That should be fine. Thanks Andreas!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Oct 11, 2013 at 02:47 PM

Thanks. I will forward this to the engineering team to include that in the product as well.

Also - I think I will move this to the public forum as this is very useful for all users out there. OK?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Daniel P. · Oct 10, 2013 at 09:15 PM

We do too here Mike. But we always had in issue with Loadrunner scripts in URL mode before.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Mike S. · Oct 10, 2013 at 09:12 PM

This is great info to share with my client as we use load runner in all our testing engagments. Very Useful!!!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Rick B. · Oct 10, 2013 at 09:03 PM

Thanks for sharing, Dan!

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Borland SilkPerformer Integration

How do we add timers to Selenium - Web Driver?

Instrumenting Groovy Rails (Tomcat) from Eclipse

No testrun found for build id

Issues while integrating a LR script recorded using Citrix protocol with DT

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A