18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Can sahi read and check xml api results
Hello
I'm working on a test case, where I input some values in a webpage and the result page is an xml page with some values in it. Is there any way I can check if the values returned are valid through sahi engine?
As the results are not html, sahi controller is not able to figure out the contents in the page.
Test Example : Input an id and click submit - >page redirects to another page which is an xml result with some information about the account. I would already have the information about the account and check if the return values are the expected values.
Any help is appreciated. Thanks in advance
Update: This question has been answered already pointing to parsing-xml-in-sahi-scripts.html page.
So does that mean I have to save the result and pass the file or is it possible to pass the results on the fly from the browser?
Best Regards,
Sanjeev
I'm working on a test case, where I input some values in a webpage and the result page is an xml page with some values in it. Is there any way I can check if the values returned are valid through sahi engine?
As the results are not html, sahi controller is not able to figure out the contents in the page.
Test Example : Input an id and click submit - >page redirects to another page which is an xml result with some information about the account. I would already have the information about the account and check if the return values are the expected values.
Any help is appreciated. Thanks in advance
Update: This question has been answered already pointing to parsing-xml-in-sahi-scripts.html page.
So does that mean I have to save the result and pass the file or is it possible to pass the results on the fly from the browser?
Best Regards,
Sanjeev
Comments
Kindly follow the below link:
http://blog.sahi.co.in/2009/06/parsing-xml-in-sahi-scripts.html
http://sahi.co.in/forums/viewtopic.php?id=1581
Also, you will have to use: _readURL() API;
Regards
Sumitra