Quantcast
Viewing all articles
Browse latest Browse all 352

Automating end-to-end load testing of highly dynamic applications

Hi, we have a website / application that is highliy dynamic in nature from two perspectives:

  1. The names of static assets / resources change with every build.
  2. Significant client-side logic that depends on the response from APIs

To come up with a realistic test script, it seems to me that recording is the only way to go. I’ve seen posts about inspecting the response to get a list of static assets to download, but what I’ve seen in practice is that going down this route ends up in the test scripts duplicating the application logic, especially when we take into consideration logic around handling API responses, etc.

So, if we assuming recording is the only way, then the question is, how do we automate the end-to-end process of recording and test generation?

One idea I thought of is using a browser-based test to automate the scenarios. There are many tools out there to do that like RPA or, more recently, agents, but given we’re using k6, can this be done using k6 browser tests?

In other words, is it possible to automate this:

  • Run k6 browser test for a number of scenarios
  • For each scenario, export the requests executed to a HAR file
  • Run the har-to-k6 converter to generate the test scripts
  • Run the scripts as part of a load test

I couldn’t find a way to export the requests executed during a browser test to HAR format. Is this possible?
Is this whole approach misguided?
All input is appreciated.

Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 352

Trending Articles