cancel
Showing results for 
Search instead for 
Did you mean: 

empty value translated as "null"

SOLVED
Occasional Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: empty value translated as "null"

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 Gorbunova
SmartBear Community Manager

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

View solution in original post

7 REPLIES 7
Super Contributor

Re: empty value translated as "null"

@_Oliver_ 

It will be helpfull if you can attach any screeenshot of the error.

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal
Moderator

Re: empty value translated as "null"

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

Occasional Contributor

Re: empty value translated as "null"

 Hi all,

 

Sorry for the late answer, was away for a few days. Here is a screenshot, but I am afraid it won't tell you more than what I wrote...

 

 

Community Manager

Re: empty value translated as "null"

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/

 

@msiadak@nmrao@Radford@avidCoder, @richie, did you face such behavior?

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

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

Re: empty value translated as "null"

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.
Occasional Contributor

Re: empty value translated as "null"

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.

 

 

 

Highlighted
Community Manager

Re: empty value translated as "null"

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 Gorbunova
SmartBear Community Manager

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

View solution in original post