Manimaran
12 years agoOccasional Contributor
How to get the total characters available in XML response
Hi,
Is there anyway that i can get the total size and total string length (total no of characters in the XML response) of the response through Groovy? I have a test which displays response xml which has more than 33,000 characters. When i try to write my result in the excel file, it throws error. So i want to do a validation before writing in excel, such that if my response xml has more than 25,000 characters, i need to skip my writing. Please help me on this.
Is there anyway that i can get the total size and total string length (total no of characters in the XML response) of the response through Groovy? I have a test which displays response xml which has more than 33,000 characters. When i try to write my result in the excel file, it throws error. So i want to do a validation before writing in excel, such that if my response xml has more than 25,000 characters, i need to skip my writing. Please help me on this.