Forum Discussion
hrn83au :
You can add this in any groovy step or script assertion where ever you want to fetch CDATA value.
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.
2.picture
- HimanshuTayal4 years agoCommunity Hero
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
- sonya_m4 years agoSmartBear Alumni (Retired)
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!
Related Content
- 2 years agoBrianFixzone
- 4 years agocarlomarchesoni
- 6 years agogenki