apache / apache/jmeter

Need ability to re-execute current sampler

Open
#5,434 0 comments 0 reactions 0 assignees View on GitHub
enhancement os: macOS P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Vinod Seraphin** ([Bug 64923](https://bz.apache.org/bugzilla//show_bug.cgi?id=64923&redirect=false)):
To properly simulate OAuth tokens expiring and being refreshed, need the ability within a Groovy post processor to do the following when the response status is a 401:
* Invoke a HTTP transaction to obtain the updated token (would be great if this could be done by dispatching off to another sampler, but it can also be achieved by using URLConnection)
* Re-execute the current HTTP sampler with the updated Authorization token

There is no current way to re-execute the current sampler from within the Groovy post procesor.

There is also no way to have a pre-processor not fire the current transaction and just skip/continue to the next sampler or to the start of the current loop.

OS: Mac OS X 10.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.