Support for CORS in HTTP2 Async controller

Open
#48 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
testing-qa

Research direction

Start by locating the HTTP2 Async controller and reviewing how parallel requests are scheduled. Use the described CORS sequence as the behavioral target: a preflight OPTIONS request should complete before its corresponding API call, while unrelated HTTP2 calls can remain parallel. Done means CORS traffic can be simulated without chaining multiple async controllers.

Written by the indexing model from the issue text.

Description

enhancement

The HTTP2 Async controller is great to simulate HTTP2 behavior similar to browsers. However, it becomes difficult to accurately simulate CORS traffic where the browser automatically triggers a preflight OPTIONS request before making a call to actual API endpoint.
We do not currently have a way to correctly time the Preflight call and actual API call so that these are executed sequentially even when started in parallel (as shown in screenshot below) and this can be best simulated by using 2 different async controllers in sequence. The approach of using multiple async controllers in sequence to simulate CORS correctly becomes complicated and unrealistic when the number of such calls are large and we have several other HTTP2 calls triggered in parallel at the same time.

I have used a public website to show the lineup of Preflight and actual API call in action below-

CORS-Example
Dominant language
Java
Stars
51
Forks
30
Avg merge
2d 22h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blazemeter/jmeter-http-plugin

All issues in Blazemeter/jmeter-http-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.