Automation tests using Cucumber, SoapUI and Selenium

时光总嘲笑我的痴心妄想 提交于 2019-12-25 07:39:00

问题


I'd like to use Cucumber linked with SoapUI and Selenium in order to create an automation functional test. I only found one website about it, describing that first I have to create a SoapUI project and save it as a .xml file. Then I should include this file into the test project using Cucumber and Selenium.

My first question is what configuration do I have to do for that ? (in the pom.xml file when using Maven for example or in any configuration file for Jenkins)

My second and last question is : if I launch every night with Jenkins (let's say that as an example) my tests, do I have to launch first the SoapUI project and import it again in the test project to run my tests in a good way ?

Thanks for your answers


回答1:


I think you can use REST Assured for you API testing.

Use cucumber for your BDD statement, use java for there step definition and REST Assured for all the API request stuff.




回答2:


Wrap all your automation with well written Gherkin and you'll need no other documentation. Think about that. BDD (specification by example) is a requirements approach, not a testing approach.



来源:https://stackoverflow.com/questions/37814049/automation-tests-using-cucumber-soapui-and-selenium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!