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
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
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
Partner Zones AWS Cloud
by AWS Developer Relations
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
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Data Engineering
  3. Databases
  4. JMeter: Handling Hyperlinks With Regular Expressions

JMeter: Handling Hyperlinks With Regular Expressions

Here's a brief post on how to handle hyperlinks in JMeter using regular expressions for testing.

manoj mathpal user avatar by
manoj mathpal
·
Feb. 04, 17 · Tutorial
Like (4)
Save
Tweet
Share
4.03K Views

Join the DZone community and get the full member experience.

Join For Free

We already know how JMeter works but sometimes we may face the problem of how to use regular expressions. So this time around, I'll explain how to handle a hyperlink on a web page using a regular expression.

Suppose we have a scenario where we have to check all the links on a website using JMeter and also we want to know the loading time of all the links on the site. So, first of all, we create a thread group.

threadgroup

Next, we define the sample request like an HTTP request.

httprequest

Now we define the post processor extractor where we extract all the links from the main page.

extractpage

After that, we define the HTTP request with a foreach controller and we'll define the regular expression inside the HTTP request.

linkreq

Now, we run JMeter and can easily see the result in listeners.

viewresultree

Enjoy!

If you have any query regarding JMeter please comment on my post.

Thanks.

Requests Links POST (HTTP) Database Extract

Published at DZone with permission of manoj mathpal, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • HTTP vs Messaging for Microservices Communications
  • DevOps vs Agile: Which Approach Will Win the Battle for Efficiency?
  • Solving the Kubernetes Security Puzzle
  • What Is API-First?

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

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

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: