简体   繁体   中英

Web Service test automation with Selenium with Cucumber

I am working on a test automation project where I am using Selenium with Cucumber with Maven dependencies. I need to automate web service requests. We do have SoapUI pro in place. Is it possible to automate web service using soapUI api? If yes, How? If No, what is the workaround? What other test automation web service tools can be integrated with selenium?

Ideally, we want everything to be Behavior driven.

This is the automation goal : Cucumber > Selenium > UI Cucumber > Selenium > Web Service (SoapUI or whatever)

I am new to this. My question may not be valid and I have done some research and did not get any outcomes which supports my goal.

Stop right there.

Generate a WebServices client and ride with Cucumber straight on the API just like any Unit test. Good bye Selenium/SoapUI, not needed here.

Selenium tests and Webservice tests are complimentary to each other. The only time you will see them in tandem is submitting a request via webservice and verifying the result on UI with selenium, or vice-versa.

For webservice testing in java, you will have to use other java libraries depending on the kind. You can use libraries like HTTPClient for Rest or SAAJ for SOAP but there are others too.

Personally, I love SoapUI but havent gotten to using it in a java project. A simple search returned this : https://www.soapui.org/developers-corner/integrating-with-soapui.html . Looks pretty straightforward.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM