自动化测试Web服务 [英] Automation Testing web services

查看:189
本文介绍了自动化测试Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队中档功放和工作;我一直手动使用SOAP UI pretty多的测试Web服务。我得到的回归测试用例的任务自动化。我们没有任何自动化的团队,现在和放大器;所以我给使用任何工具,我想和蓝光的充分的自由;让我的经理知道哪些工具适合我well..But还没有学会自动化测试。任何人的任何建议,有关这将是自动化测试中档的好工具?我们有我们验证与SAP的结果,结果许多服务。例如,如果我测试的价格为中档项目,我应该去检查,如果返回的价格在SAP的价格相匹配。我一直这样做手工,我登录到SAP去所提供的交易code&放;检查该项目的价格,有人可以想到的任何好的自动化测试工具,在那里我可以处理这种情况的?

I work for a Midtier team & I've been pretty much testing web services Manually using SOAP UI. I got a task of getting the regression testcase to be Automated. We dont have any Automation team right now & hence I am given the full freedom of using whatever tool I want to & let my manager know which tool fits well..But I am yet to learn Automation Testing. Anyone any suggestions about which will be a good tool for Automation testing Midtier? We have many services where we validate the results with the results in SAP. For example if I am testing the price for an item in Midtier, I should go check if the price returned matches the price in SAP. Ive been doing this manually where I login to SAP go to the provided transaction code & checking the price for that item, can someone think of any good Automation Testing tool where I can handle this kind of situation?

推荐答案

我是通过一个类似的请求工作。由于客户端已经有一些自动化使用的soapUI(OS)的33.060.99我的工作是有点困难。

I am working through a similar request. As the client already has automated some of the servies using soapUI (OS) my job is a little harder.

操作系统版本不具有数据源,数据回路测试步骤,使数据驱动测试套件,但总有一个变通。

The OS version doesn't have the data source, data loop test steps to make a data driven test suite but there is always a work around.

您可以使用甚至开源版本来实现三种prevalent自动化框架。

You can use even the Open Source version to implement the three kinds of prevalent automation frameworks.


  1. 动作驱动的框架 - 要应用此框架的soapUI,你必须找出在服务的设置,执行和验证一些常见的测试步骤。一旦确定,在一个测试套件和/或测试用例它们分离出来,简单地调用相应的测试套件/测试步骤。

  1. Action Driven framework - To apply this framework to soapUI you have to identify some common test steps in the setup, execution and validation of the service. Once identified, separate them out in a test suite and/or test cases and simply call the appropriate test suite/test step.

例如:
我有一个测试步骤,验证了一个订单已经由服务数据库进行了,所以我将创建一个测试套件+测试用例,并在那里添加JDBC测试步骤根据我提供的数据,以寻找订单ID 。查询将进行参数设置。
在实际的脚本中,我会执行服务,并提取所有必要的值来运行数据库查询。这些值将被传递到使用运行测试测试步骤可重复使用的测试用例。

For example: I have a test step that validated that an order entry has been made in the db by the service so i'll create a test suite + test case and add a jdbc test step in there to search for order id based on the data i supply. The query will be parameterized. In the actual script, i'll execute the service and extract all the values necessary to run the db query. These values will be passed to the reusable test case using the run test test step.

有几件事情要记住,就是如果你有大量的测试用例/参数,并认为该服务将需要再修改把参数在Excel文件并使用常规的测试套件安装脚本加载它们区域。

A few things to remember, is if you have a large number of test cases/parameters and think that the service will need to be modified then put the parameters in an excel file and load them using groovy from the test suite setup script area.

您需要scriptom API与Excel或JXL(稍微复杂的实现)的工作

You'll need scriptom api to work with excel or Jxl (a little more complicated implementation)

数据驱动的框架,在这个框架基本上你确定要与相关数据的服务运行和填充一个excel不同的情景,然后使用Groovy和scriptom或jexcel或JXL API遍历所有的行excel的,并执行与不同的数据元素的服务。只要你喜欢,当你想简单这种方法可以做出复杂的。

Data Driven framework, in this framework you basically identify different scenario that you want to run on the service and populate an excel with relevant data, then using groovy and scriptom or jexcel or jxl api loop through all the rows in the excel and execute the service with different data elements. This approach can be made as complex as you like and as simple as you want.

关键字驱动的框架 - 这大概是所有最复杂的框架来实现,因为它requres你做了很多规划,开发和这样的。我目前正在设计这样一个框架。我会分享一些细节与您如果有不到位的保密协议。

Keyword driven framework - this is probably the most complex frameworks of all to implement as it requres you to do a lot of planning, development and such. I am currently designing such a framework. I would have shared some details with you if there weren't confidentiality agreements in place.

我也明白,你是新来的Groovy,你应该检查出的soapUI和Groovy的网站,他们有很多真正的好例子,并记住总有StackOverflow上回答您的疑问。

I also understand that you are new to groovy, you should check out soapUI and groovy's site they have a lot of really good examples and remember there is always stackoverflow to answer your queries.

让我知道你是怎么做出来有这方面的努力。

Let me know how you make out with this effort.

这篇关于自动化测试Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆