How to Execute Performance Tests For Web Pages That Need Authentication

sohlae 170 Reputation points
2023-10-13T09:15:01.68+00:00

How to test web pages for which you need to perform some sort of authentication beforehand? For example, a web page https://example.com/orders can only be accessed if there is a JWT in the browser's local storage.

I have watched several videos about people using JMeter to test web pages, but all the examples that I have seen so far are public web pages (e.g. https://google.com).

Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
83 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Durkan 12,236 Reputation points MVP
    2023-10-15T20:25:22.7166667+00:00

    Hi

    you could try storing the credentials in a Key Vault and calling them using the parameters when setting up the Load Test:

    https://learn.microsoft.com/en-us/azure/load-testing/how-to-parameterize-load-tests?wt.mc_id=AZ-MVP-5005255

    This means you don't need to store them in your JMeter script.

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.