Dashboard > SpringSide3 Wiki > ... > Reference > SoapUI
  SpringSide3 Wiki Log In | Sign Up   View a printable version of the current page.  
  SoapUI
Added by Calvin, last edited by Calvin on 2008-09-09
Labels: 
(None)

       Soap UI可以作为开发人员、测试人员共用的开发调试与自动测试工具。在mini-service/src/test/soapui 存放着一个示例的项目文件,其中CRUDTest 是经典的测试写法。

  1. 先用Groovy生成一个随机的loginName(因为业务规则要求不能重复)
  2. 使用属性转换器将Groovy脚本的结果,传给下一步CreateUser请求参数中的loginName
  3. 执行createUser
  4. 使用属性转换器将createUser返回结果中的userID,传给下一步GetUser请求参数id
  5. 执行getUser
  6. 在getUser的Assert语句中加入对返回结果中的loginName的判断,要等于createUser的请求参数loginName

      如果有条件,尽量使用Soap UI Pro,因为那些XPath写起来还是有些难度的,用了Pro,就能随时图形化的进行节点选择。比如对着一个返回结果的属性点右键,选assert Conent 就很方便。

       Soap UI可以作为开发人员、测试人员共用的开发调试与自动测试工具。在mini-service/src/test/soapui 存放着一个示例的项目文件,其中CRUDTest 是经典的测试写法。

  1. 先用Groovy生成一个随机的loginName(因为业务规则要求不能重复)
  2. 使用属性转换器将Groovy脚本的结果,传给下一步CreateUser请求参数中的loginName
  3. 执行CreateUser
  4. 使用属性转换器将CreateUser返回结果中的userID,传给下一步GetUser请求参数id
  5. 执行getUser
  6. 在getUser的Assert语句中加入对返回结果中的loginName的判断,要等于createUser的请求参数loginName
         
Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 2006-09-07) - Bug/feature request - Contact Administrators