I am trying to disable a sub-sample request embedded in jmeter parent request that follows a redirect of the main request.
There are 2 boxes under the HTTP Request sampler:
Redirect Automatically- will still redirect but you won't see sub-results
Follow Redirects- will redirect and you will see the results
both unticked - no redirects will happen at all, you will have to manage it manually, i.e. check Location header
You can disable a sub-sample request by simply unchecking the "Enabled" checkbox located in the sub-sample request. If you don't need the sub-sample request at all, you can simply remove it from the test plan by selecting it and pressing the delete key.
In some cases, you may want to temporarily disable a sub-sample request for debugging purposes. To do this, you can add a "Interruptible Timer" to the sub-sample request. This will pause the execution of the sub-sample request for a specified amount of time. You can then re-enable the sub-sample request by removing the Interruptible Timer.