cancel
Showing results for 
Search instead for 
Did you mean: 

how to replace encoding information in xml

Highlighted
Community Hero

Re: how to replace encoding information in xml

Didn't understand what you mean replace xml?


Regards,
Rao.
Highlighted
Occasional Contributor

Re: how to replace encoding information in xml

hi @HimanshuTayal 

 

   I shared how I use the script in the screenshots below. I see the script working correctly.

 

There is a situation like this, as seen in the second picture, I cannot transfer the value of the property transfer to the other webservice. 

1.PNG

 

 

2.picture

 

2.PNG

 

 

 

 

Highlighted
Community Hero

Re: how to replace encoding information in xml

what is the desired output?


Regards,
Rao.
Highlighted
Community Leader

Re: how to replace encoding information in xml

@hrn83au :

 

Instead of log.info you can use

//getting data from SONUC tag
def sonucText = data.SONUC.text()

//Setting the value into Properties Test Step
context.testCase.getTestStepByName("Properties").setPropertyValue("SOUNC", sonucText.toString())

 

and you can use that value in you other request

 


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



Thanks and Regards,
Himanshu Tayal
Highlighted
Community Manager

Re: how to replace encoding information in xml

Thank you everyone for helping out here!

@hrn83au did the suggestion help?


Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: how to replace encoding information in xml

hi @sonya_m 

no i can't solve my problem. This problem needs to be solved with the event, but I cannot get support in this regard. I opened a case about it. we cannot find a solution.

Highlighted
Community Manager

Re: how to replace encoding information in xml

Hi @hrn83au , I found your support case, looks like our Support team has a possible solution and now they are waiting on some files from you to make sure it works with your project. Please continue the investigation with the Support team and it would be great if you shared the final solution here with us too🙂 Thank you!


Sonya Mihaljova
Community and Education Specialist
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:
Announcements
Script Wanted
The new challenge is here!

Create a script to сhange an XPath Match assertion to a JSONPath Match assertion for the TechCorner tag!


Scripts created in July:
- A script to generate an email when an assertion fails
- A script to change the request body before sending it to the server
Top Kudoed Authors