Re: Jmeter API Testing
Dmitri T <[email protected]> Thu, 15 Feb 2024 14:00:41 +0100
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <PH7PR12MB713965D678899590FA28DF88C04D2@PH7PR12MB7139.namprd12.prod.outlook.com> |
Sanjay Sharma wrote: > Hi, > > We have around 500+ APIs, and we want to apply different response > assertions for all the APIs.. Is there any way we can apply assertions in > one place and it will be applied to all the child APIs? > > > Thanks > Yes, JMeter Assertions obey JMeter Scoping Rules <https://jmeter.apache.org/usermanual/test_plan.html#scoping_rules> so if you place an Assertion at the same level as several Samplers <https://jmeter.apache.org/usermanual/component_reference.html#samplers> - it will be executed after each of them and applied to each of them. More information: How to Use JMeter Assertions in Three Easy Steps <https://www.blazemeter.com/blog/jmeter-assertions>