cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent ReadyAPI from randomly changing how it stores empty XML elements?

jrforeman
New Contributor

How to prevent ReadyAPI from randomly changing how it stores empty XML elements?

Why does ReadyAPI change how it stores a blank XML tag from, say
<con:properties/>
to
<con:properties></con:properties>

 

If I make one change and save, I may see many of these differences, which complicates review of the code.
I see this in projects where Composite project is false, and in projects where it is true.

 

The representation of blank XML elements is one of many things about how ReadyAPI stores a project that seem to change at random with each new version or sometimes randomly within the same version.

 

I have tried setting the flag "Pretty prints project files", but this is not sufficient to stop this noise.

 

Is there some other flag I can set so that the method for encoding the project doesn't obscure actual logic changes when I look at the differences? Preferably something that gets remembered in the project, rather than depending on a user setting?


References: The following are a few postings that seem relevant, but don't clean up the random XML representations.

"Version control - Diff is very confusing for ReadyAPI projects?" https://community.smartbear.com/t5/API-Functional-Security-Testing/Version-control-Diff-is-very-conf...
- Answer: Yes, currently, if you change one thing in ReadyAPI, several things in different places of the project might change as well.

"How do I minimize merge conflicts in a ReadyApi composite project when working as part of a team?" https://community.smartbear.com/t5/API-Functional-Security-Testing/How-do-I-minimize-merge-conflicts...
- No accepted answer
- Recommendation to check the flag "Pretty prints project files"

"While this allows you to see exactly what has changed when diff-ing versions, it does have the problem that this is an application setting, thus you have to make sure all users set this value manually on their copies of ReadyAPI (If a user does not set this in their copy ReadyAPI it will revert to saving on a single line). Ideally I would like to see this as a project setting."

 

2 REPLIES 2
nmrao
Community Hero

Re: How to prevent ReadyAPI from randomly changing how it stores empty XML elements?

Would you please clarify the below for better understanding?
Does happen for entire project or for XML requests?

Are you using a simple project or complex?

Completely understand the changes to be pushed to repo.


Regards,
Rao.
mkrausem
New Contributor

Re: How to prevent ReadyAPI from randomly changing how it stores empty XML elements?

Hi,

 

please try to reproduce it and raise an issue in the customer portal.

I raised some issues and most of them could be reproduced and later fixed by the team.

 

My problem: I tried to reproduce this also but it fails on my machine.

 

Kind Regards, Michael

 

Michael Krausemann
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors