DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Building a REST Service That Collects HTML Form Data Using Netbeans, Jersey, Apache Tomcat, and Java
  • Spring Boot - How To Use Native SQL Queries | Restful Web Services
  • Testing REST Controller Methods With JUnit 5 [Video]
  • Update User Details in API Test Client Using REST Assured [Video]

Trending

  • A Guide to Developing Large Language Models Part 1: Pretraining
  • Fixing Common Oracle Database Problems
  • Unlocking AI Coding Assistants Part 1: Real-World Use Cases
  • Internal Developer Portals: Modern DevOps's Missing Piece
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Testing Rest APIs in HPE LoadRunner

Testing Rest APIs in HPE LoadRunner

In this article we are going to learn about how to test REST APIs in LoadRunner.

By 
NaveenKumar Namachivayam user avatar
NaveenKumar Namachivayam
DZone Core CORE ·
Aug. 21, 16 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
25.5K Views

Join the DZone community and get the full member experience.

Join For Free

In this article, we are going to learn about how to test REST APIs in LoadRunner. REST APIs is a trend in creating versatile applications. REST stands for Representational State Transfer. You can learn more about REST on this wiki page. This blog article focuses on testing REST APIs in HPE LoadRunner.

If you noticed any auto insurance quote website, after selecting your car year, immediately you can see the appropriate make list. Similarly, once you select the make, the appropriate model will get listed. Please see below screen.

If you select 2016 as year, request will be sent with the parameter ‘year’ and the response will have all the makes of the year 2016. Similarly, if you select the make, appropriate models list will be returned. We will see how to add REST API calls in the HPE LoadRunner script.

Sample REST Call Testing REST APIs in HPE LoadRunner

Sample REST Call

How to Insert REST APIs Request in HPE LoadRunner?

Follow the below steps in Web HTTP/HTML protocol. I am using HPE LoadRunner 12.53 version on my laptop.

  1. Go to Design > Insert in Script > REST API or press Ctrl + Shift + W
REST API in LoadRunner

REST API in LoadRunner

2. You will get REST Step Properties dialog box as shown below

REST Step Properties

REST Step Properties

3. In this example, we are going to use sample REST API http://jsonplaceholder.typicode.com/posts/1. Just sending the URL will not work, you need to add the header as shown below.

REST GET Call

REST GET Call

Below is the valid response for the call.

REST GET Call Response

REST GET Call Response

Below is the sample POST call details.

REST POST Call

REST POST Call

POST call output.

REST POST Call Response

REST POST Call Response

LoadRunner REST Web Protocols

Published at DZone with permission of NaveenKumar Namachivayam, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Building a REST Service That Collects HTML Form Data Using Netbeans, Jersey, Apache Tomcat, and Java
  • Spring Boot - How To Use Native SQL Queries | Restful Web Services
  • Testing REST Controller Methods With JUnit 5 [Video]
  • Update User Details in API Test Client Using REST Assured [Video]

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!