cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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
Highlighted
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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

2 REPLIES 2
Highlighted
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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

Highlighted
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:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 9
2 nmrao 6
3 HimanshuTayal 3
Top Kudoed Authors