armin_somogyi
armin_somogyi

Reputation: 77

Is it possible to attach file to HTTPS request using AWS Distributed Load Testing tool?

I am currently using AWS's Elastic Beanstalk for some of my applications. I noticed the configuration isn't optimal, so I'm working on performance tuning.

To assess the performance, I initially used Apache JMeter locally. However, I could only achieve around 450 RPS, which is far below the expected peak load of my applications.

I then explored the AWS Distributed Load Testing Tool from the AWS Solutions Library. It allowed me to reach the desired RPS, but I've encountered a challenge:

One of my apps requires an HTTPS request with a P3IC file attachment. While I was able to configure this on my local JMeter setup, I'm struggling to do so with the AWS tool.

The AWS tool offers two modes:

Manual configuration on the dashboard – This mode doesn't seem to have an option for file attachment. Uploading a JMeter (.jmx) test plan – My local test plan works perfectly, but the file path for the P3IC attachment points to a local directory. When I run the test in AWS, it understandably can't locate the file. I tried zipping the .jmx and P3IC file together, but the path remains local, causing AWS to fail to find the file. I've reached a roadblock and would be grateful for any suggestions or solutions.

Upvotes: 0

Views: 156

Answers (1)

Dmitri T
Dmitri T

Reputation: 168002

Looking into documentation:

If you have JMeter input files, you can zip the input files together with the JMeter script. You can choose the zip file when you create a test scenario.

So package your file(s) into a zip archive and upload with the .jmx test script and that would be it.

Just avoid using absolute paths and JMeter should pick the file up. More information: JMeter Performance Testing: Upload and Download Scenarios

Upvotes: 1

Related Questions