• 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 Meng Y. · Aug 21, 2014 at 03:21 AM · continuous delivery

How to build communication with REST interface using LoadRunner

I recently had a question on how to get through the REST Interface authentication within LoadRunner Scripts. Or in general, what we can do about automating LoadRunner tests by taking advantage of the REST interfaces?

Thanks,

Meng

Comment

People who like this

0 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.

1 Reply

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

Answer by Wolfgang G. · Aug 22, 2014 at 12:40 AM

Hi,

dynaTrace uses basic auth for its REST interfaces - I'm not an expert in LoadRunner, but I assume you could specify the credentials somewhere when making the call? As a last resort, you could also put the user and password in the URL when making the REST call - like http://admin:admin@localhost:8020/rest/management/profiles/<profile>/startrecording

In terms of automating LoadRunner tests: The most common use case probably is starting and stopping recording on the dT server to store a session for the duration of the load test. Could you maybe elaborate on what automation you have in mind?

Thanks,

Wolfgang

Comment

People who like this

0 Show 1 · 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 Meng Y. · Aug 22, 2014 at 02:13 AM 0
Share
I want to answer my question here. Tasks you could do with LoadRunner through REST interfaces (credits to my customer)
  1. At the very beginning of our test, flip the system profile to enable the bind value; Then at the very end, flip it back to disable bind value. 
  2. If I have to troubleshoot a certain functionalities of an application, I might insert a specific dynaTrace request right before and/or after this specific functionality, such as create memory dump, start CPU sampling, enable custom measure, etc. 
  3. Embed dynaTrace into LoadRunner report
  4. Generate report right after my test is completed
  5. Save session automatically when my test ended

Before achieving those goals, you will need to first of all build communication with REST interfaces by

1. Use a LoadRunner function (e.g. web_set_user( "{Username}", "{Password}", "{Domain}:8000" ))  http://ptfrontline.wordpress.com/2009/12/23/loadrunner-http-401-authentication/

2. Make password encrypted using LoadRunner Password Encoder and lr_decrypt()

http://www.myloadtest.com/loadrunner-password-encryption/

 

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

2 People are following this question.

avatar image avatar image

Related Questions

Incomplete report in Jenkins

Loadrunner script tagging for scripts in URL mode

Options for REST reporting

Test automation initial setup.

Is it better to have multiple system profiles or one system profile?

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