Dashboard > Selenium > ... > Contributed User-Extensions > callWebService
Selenium Log In View a printable version of the current page.
callWebService
Added by Andrey Yegorov, last edited by Andrey Yegorov on Jun 01, 2007  (view change)
Labels: 
(None)

This extension comes handy if you need to call a WebService during the test.
Also you can develop simple web service (python, .Net, ...) to do some 'utility work' - clean up a database, execute sql, etc. and use it in your tests.

attached file contains required js code (tested with selenium 0.8.0)

Examples of implemented commands:

storeValue    
resetWebServiceParameters    
addWebServiceParameter user_name Doe
addWebServiceParameter pass ${password}
addWebServiceParameter timeout ${timeout}
callWebService http://somewebsite/webapp/_qa_/test_automation_svc.asmx/get_email ${result}
.. do something with ${result}    

P.S. thanks to fellow MetaCommunications' developers for providing me with working code for the extension.

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators