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.
testing webservices from sahi works !!! (XMLHttpRequest)
hi,
I had success running webservices simple example from sahi using XMLHttpRequest (js library)
Configuration: Firefox 3.6 + sahi_20110719
Here is how in 3 steps
1. append to concat.js
2. append to normal_functions.txt
3. run from sahi console - important, the url should be within: "http://myserver.com/"
Thanks Raman for telling me this should be possible
Now there is a lot of work, to make it "out of box solution"
Have fun!
Lech
I had success running webservices simple example from sahi using XMLHttpRequest (js library)
Configuration: Firefox 3.6 + sahi_20110719
Here is how in 3 steps
1. append to concat.js
Sahi.prototype._webServiceRequest = function (url) {
request = new XMLHttpRequest();
request.open("POST", "http://myserver.com/ws/",false);
request.setRequestHeader("Content-Type", "text/xml");
request.send("<StatusRQ versionNumber=\"1.0.0\" xmlns=\"http://myserver.com/ns/myapp/V1\"><RequestID>670222</RequestID></StatusRQ>");
return true;
2. append to normal_functions.txt
_webServiceRequest
3. run from sahi console - important, the url should be within: "http://myserver.com/"
_webServiceRequest();
Should get "true" responseThanks Raman for telling me this should be possible
Now there is a lot of work, to make it "out of box solution"
Have fun!
Lech
This discussion has been closed.
Comments
(add to concat.js and normal functions of sahi 3.5)
Please note it may not work with your webservice because of different
Envelope and headers
then in sahi script we use