简体   繁体   English

使用ReadyAPI(SoapUI NG)进行自动测试

[英]Automated Testing using ReadyAPI (SoapUI NG)

I'm just getting started with ReadyAPI(SoapUI NG) to do automated testing for our Spring based project. 我刚刚开始使用ReadyAPI(SoapUI NG)对基于Spring的项目进行自动化测试。 So using the ReadyAPI documentation I successfully tested REST URI calls using below steps: 因此,使用ReadyAPI文档,我通过以下步骤成功测试了REST URI调用:

  1. Created a project: File > New Project > Create a Project using REST URI 创建了一个项目:File> New Project> using REST URI创建一个项目

  2. It creates a project structure like below: REST Project > URI > createAccount < Request 1 它创建如下的项目结构:REST项目> URI> createAccount <请求1

  3. In the Request window I added my parameters by using xml/json. 在“请求”窗口中,我使用xml / json添加了参数。

  4. After Running the Request I'm getting my desired response. 运行请求后,我得到了想要的响应。

  5. I also checked Assertion that also giving desired results. 我还检查了Assertion,它也给出了预期的结果。

I did all this using ReadyAPI Documentation 我使用ReadyAPI文档进行了所有这些操作

My questions are below: 我的问题如下:

  1. How to achieve Automated Testing using ReadyAPI(SoapUI NG)? 如何使用ReadyAPI(SoapUI NG)实现自动化测试?

  2. What features of ReadAPI are generally used? 通常使用ReadAPI的哪些功能? How to use them effectively? 如何有效地使用它们?

  3. What are the differences between SoapUI NG, LoadUI NG, SoapUI, ReadyAPI? SoapUI NG,LoadUI NG,SoapUI,ReadyAPI有什么区别? (I thinks these are just different versions, not sure though) (我认为这些只是不同的版本,虽然不确定)

Let me try to answer them to my best of abilities. 让我尽我所能来回答他们。

  • How to achieve Automated Testing using ReadyAPI(SoapUI NG)? 如何使用ReadyAPI(SoapUI NG)实现自动化测试?

Ready API or SoapUI are the automation tools themselves. Ready API或SoapUI本身就是自动化工具。 To manually test the APIs, there are other tools like swagger. 要手动测试API,还有其他工具,例如swagger。 However if you are planning to automate the flow of your whole project and planning to use some sort of architecture/framework which will enable you to do a lot more than just execute the tests at once then you can try using tools like Jenkins. 但是,如果您计划自动化整个项目的流程并计划使用某种架构/框架,这将使您不仅可以立即执行测试,还可以做更多的事情,那么可以尝试使用Jenkins之类的工具。

  • What features of ReadAPI are generally used? 通常使用ReadAPI的哪些功能? How to use them effectively? 如何有效地使用它们?

One of the most talked about things in Ready API is Data Driven Testing. Ready API中讨论最多的内容之一是数据驱动测试。 If you follow this approach, then you may use test steps like DataGen, DataSource, DataSink, PropertyTransfer, Groovy Assertions, Groovy Script Step, JDBC Step. 如果遵循这种方法,则可以使用测试步骤,如DataGen,DataSource,DataSink,PropertyTransfer,Groovy断言,Groovy脚本步骤,JDBC步骤。 Those are the steps that are used widely in Ready API Projects. 这些是Ready API项目中广泛使用的步骤。

  • What are the differences between SoapUI NG, LoadUI NG, SoapUI, ReadyAPI? SoapUI NG,LoadUI NG,SoapUI,ReadyAPI有什么区别? (I thinks these are just different versions, not sure though) (我认为这些只是不同的版本,虽然不确定)

Ready API is a collection of different API testing solutions, like Performance Testing(LoadUI), Security testing(Secure), Functional testing (SoapUI). Ready API是各种API测试解决方案的集合,例如性能测试(LoadUI),安全测试(Secure),功能测试(SoapUI)。 When you install Ready API, you install all the solutions together. 安装Ready API时,将所有解决方案一起安装。 And then you can chose to buy licence for each of those solutions separately. 然后,您可以选择为每个解决方案分别购买许可证。

Hope that answers your question. 希望这能回答你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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