empty value translated as "null"
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
empty value translated as "null"
Hi.
I am having the following issue :
1/ I call WS1 and gets param1 value in the response
2/ I call WS2 which uses as input the value of param1
The issue is that when param1 is empty, it is actually set as "null" in the input of WS2 (this input is not a mandatory parameter)
This actually gives a weird error message a bit later with a failed assertion :
Expected value; [null]; Actual value [null]
How can I fix this ?
Thanks
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It will be helpfull if you can attach any screeenshot of the error.
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
Thanks and Regards,
Himanshu Tayal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @_Oliver_,
Have you found a way to solve the issue? If you have not, could you please send a screenshot as Himanshu requested?
We are looking forward to hearing from you.
Olga Terentieva
SmartBear Assistant Community Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @_Oliver_,
Thanks for sharing the screenshot with us!
Could you please check if you see the same behavior with the latest ReadyAPI version? You can download it here:
https://support.smartbear.com/downloads/readyapi/
@groovyguy, @nmrao, @Radford, @avidCoder, @richie, did you face such behavior?
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not much active on the tool these days. So, dont have the latest version as well.
Any ways, the screen shot attached by the author of this original post is not helpful. It would be helpful if the details are provided along with the sample response (resembling exact structure, need not be the original response) .
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I got part of the issue. Need ti investigate more but I'll be on vacation soon.
I wrote the following :
1/ I call WS1 and gets param1 value in the response
2/ I call WS2 which uses as input the value of param1
The issue is that when param1 is empty, it is actually set as "null" in the input of WS2 (this input is not a mandatory parameter)
I was mistaken by the "outline" tab of the response. it shows an empty value for param1. But if I look like in the JSON tab, I see "param1" : null,
I focused on the "outline" tab content, which made me think the value was an empty string. A,d therefore could not understand why this emty string was transalted into a "null" value when reused later on. But in fact, it reused the correct value. It is what is displayed in the "outline" tab which is misleading.
See attached screen captures which are both extract of the same WS response.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your investigation, @_Oliver_
I think it's worth contacting our ReadyAPI Support Team and continue the investigation with our R&D team. Could you please contact them here:
https://support.smartbear.com/message/?prod=ReadyAPI
Tanya Yatskovskaya
SmartBear Community and Education Manager
