You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by GitBox <gi...@apache.org> on 2023/01/05 14:26:48 UTC
[GitHub] [jmeter] juribes opened a new issue, #5755: Assertions not working correctly for sub-samples
juribes opened a new issue, #5755:
URL: https://github.com/apache/jmeter/issues/5755
### Expected behavior
When I create an assertion in an HTTP sampler that has a redirection as a response and I need to add an assertion to the sub-sample, when I select the radio button "Sub-samples Only" in the Response assertion component, that assertion should only be applied to the sub-sample, and not to the main request.
### Actual behavior
When I add an assertion with the "Sub-samples Only" selected, that assertion is failing in the main sampler where it shouldn't be evaluated
### Steps to reproduce the problem
Record a script that has a redirection e.g navigate to http://google.com. that has a response Response code:302 and redirects to another page that has the final HTML. Add an assertion to validate that final HTML and select the option "Sub-samples Only" to avoid validating the assertion in the main/initial request then run the script and the assertion fails.
### JMeter Version
5.5
### Java Version
openjdk version "1.8.0_212" OpenJDK Runtime Environment (Zulu 8.38.0.13-CA-win64) (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (Zulu 8.38.0.13-CA-win64) (build 25.212-b04, mixed mode)
### OS Version
Windows 10 Entrerprise 21H2 OS build 19044.2251
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] juribes commented on issue #5755: Assertions not working correctly for sub-samples
Posted by GitBox <gi...@apache.org>.
juribes commented on issue #5755:
URL: https://github.com/apache/jmeter/issues/5755#issuecomment-1372293097
Also reproducible in:
**Java Version:**
java version "1.8.0_351"
**OS Version**
Edition Windows 10 Pro
Version 21H2
Installed on 2020-11-19
OS build 19044.2364
Experience Windows Feature Experience Pack 120.2212.4190.0
**JMeter version:** 5.4.1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] juribes commented on issue #5755: Assertions not working correctly for sub-samples
Posted by GitBox <gi...@apache.org>.
juribes commented on issue #5755:
URL: https://github.com/apache/jmeter/issues/5755#issuecomment-1372289558
[AssertionBug.jmx.txt](https://github.com/apache/jmeter/files/10352870/AssertionBug.jmx.txt)
Here is a JMX that reproduces the error. The extension was changed to upload to GitHub
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org