cancel
Showing results for 
Search instead for 
Did you mean: 

Whitespaces in assertions removed at save

Highlighted
New Contributor

Whitespaces in assertions removed at save

Hi All,

 

I am having a problem while saving my project, I have an assertion with a whitespace as expected value and for some reason when I save the project the space is removed.

 

<con:assertion type="JsonPath Match" name="Club Address 2" id="198cdc30-7e14-4f16-8c3c-44e28404a51e">
  <con:configuration>
<path>$['address']['address2']</path>
<content> </content>
<allowWildcards>false</allowWildcards>
<ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
<ignoreComments>false</ignoreComments>
</con:configuration>
</con:assertion>

Problem happens to the <content> </content> tag

 

Workaround: If a do a fresh install of Ready API 2.3 or 2.4 the problem is there. But if a install 2.2 and then update to 2.4 the behavior is no longer there.

 

So...my deduction is that there is some configuration that was on version 2.2 and is no longer there on 2.3+. 

 

If anyone can tell me which config handles the behavior would be great, becuase updating comes with a degradation on the preformance, so I'll like to be able to fresh install the latest version without worring of having to modify the project file on an external program to put back the removed characters.

3 REPLIES 3
New Contributor

Re: Whitespaces in assertions removed at save

Hi,

 

You should have disabled below option:
File -> Preferences -> WSDL -> Pretty prints project files 

New Contributor

Re: Whitespaces in assertions removed at save

Right now I have it enabled and the behavior is not happening....so most likely not that one

Re: Whitespaces in assertions removed at save

Hi,

 

Thank you for your post.

 

After 2.2 our JSON engine has changed. Could you please try the maintenance build? link below:

 

https://support.smartbear.com/downloads/readyapi/maintenance

 

If this doesn't help, please open a ticket on our portal.

 

Best,

Lakshmi

 

 

-------------Lakshmi

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors