Web service framework—SoapUI研究

本文介绍使用SoapUI进行Web Service的自动化测试流程,包括加载属性文件、设置带参数的请求、将数据保存到外部文件或数据库等步骤,并提供具体操作截图。
最近接触到 web service的一些事情,是基于脚本的自动化的一个 测试过程,主要用到的是 SoapUI(groovy script)。
  SoapUI的在线文档是一个很好的资源,基于此,有一些简单的应用分享。
  有兴趣可以研究一下,自己也是一个在 学习的过程,一点学习笔记分享给大家。
  Here is a sample presented that how to run  test case in soapUI project and save data into DB
   Process:
  1.       Load properties file or DataSource so that fetch corresponding data
  2.       Set a request with parameters populated(data derive from properties or DataSource)
  3.       Through transfer property to save data into external files or DB
  4.       Using DataSink to export data to external files(such as excel,txt) or DB(need to connect DB)
  Screenshot of structure of one TestSuite:
   Step1: Load files( here I load file from properties file)
  PlaceName=Houston
   Step2: with data populated request
  (get data from properties under Form format)
   Step3: transfer data to target
  Also can transfer the designated data from original source to target( click on here)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值