cancel
Showing results for 
Search instead for 
Did you mean: 

How to properly create the request body assertion in ReadyAPI custom plugin?

SOLVED
Highlighted
vmm
New Contributor

How to properly create the request body assertion in ReadyAPI custom plugin?

I've manage to create a custom ReadyAPI plugin with two assertions, for request body and response body. Not the separate test steps, but regular assertions to be added to "Assertions" tab in request test step settings.

 

Both classes extend `WsdlMessageAssertion` class and implement `RequestAssertion` and `ResponseAssertion` interfaces respectively. But the issue is both of these assertions are executed with `assertResponse` -> `internalAssertResponse` methods run.

 

So I have two questions:

1) Is it possible to create a request body assertion that will be run properly with `assertRequest` -> `internalAssertRequest` methods run, and how to achive this?

2) Is it possible to execute request body assertion before the actual request during the test case run? Would it be possible with regular request test step assertions, or should it be achieved with assertions as separate test steps?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: How to properly create the request body assertion in ReadyAPI custom plugin?

Hi @vmm,

 

I suggest that you refer these questions to the ReadyAPI Support Team: https://support.smartbear.com/message/?prod=readyapi

 

They may require the deep investigation.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
2 REPLIES 2
Community Manager

Re: How to properly create the request body assertion in ReadyAPI custom plugin?

Hi @vmm,

 

I suggest that you refer these questions to the ReadyAPI Support Team: https://support.smartbear.com/message/?prod=readyapi

 

They may require the deep investigation.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
vmm
New Contributor

Re: How to properly create the request body assertion in ReadyAPI custom plugin?

Thanks, I will forward it to support.

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors