SoapUI Pro Project Solution Collection-Test Step Object

简介:

Package com.eviware.soapui.model.testsuite

 

used for access the current testsuite object, like test case:

 

  1. the interface to access the testRunner Object in groovy script: http://www.soapui.org/apidocs/com/eviware/soapui/model/testsuite/TestCaseRunContext.html
  2. the interface to access the context object in groovy script:

       http://www.soapui.org/apidocs/com/eviware/soapui/model/testsuite/TestCaseRunContext.html

   3. the interface to access the log object in groovy script:

      the log object is the log4j library,access from this class:import org.apache.log4j.Logger;

so here you can soapui had provided us three objects to access soapui context .

  4. the interface to access the test case object:

 http://www.soapui.org/apidocs/com/eviware/soapui/model/testsuite/TestCase.html

TestCase newcase=testRunner.getTestCase();

for testRunner object ,you can do these things from it’s interface:

  • get the test step ,can from these way ,the test step’s name :
testRunner.getTestCase().getTestStepByName("");
  • get the test step by test step’s by index number:
testRunner.getTestCase().getTestStepAt(1)

 

  • access to different type of test step:
复制代码
com.eviware.soapui.model.testsuite
Interface TestStep

All Superinterfaces:
ModelItem, PropertyChangeNotifier, ResultContainer, TestModelItem, TestPropertyHolder
All Known Subinterfaces:
HttpRequestTestStep, HttpTestRequestStepInterface, OperationTestStep, RestTestRequestStepInterface, SamplerTestStep
All Known Implementing Classes:
AMFRequestTestStep, HttpTestRequestStep, JdbcRequestTestStep, ManualTestStep, PropertyTransfersTestStep, ProPlaceholderStepFactory.WsdlProPlaceholderTestStep, RestTestRequestStep, WsdlDelayTestStep, WsdlGotoTestStep, WsdlGroovyScriptTestStep, WsdlMockResponseTestStep, WsdlPropertiesTestStep, WsdlRunTestCaseTestStep, WsdlTestRequestStep, WsdlTestStep, WsdlTestStepWithProperties
复制代码

from above we can see we can access any test step if you need .

soapui had provided these types of test step ,see below:

  1. Test Request
  2. Rest Test Request
  3. Http Test Request
  4. AMF Request
  5. JDBC Request
  6. Properties
  7. Properties Transfer
  8. DataSource
  9. DataSink
  10. DataGen
  11. DataSource Loop
  12. Conditional Goto
  13. Run TestCase
  14. Groovy Script
  15. Assert TestStep
  16. Delay
  17. Mock Response
  18. Manual TestStep

 

here i just give some special object we use often in your project:

1.JDBC Request

free version: JdbcRequestTestStep http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/JdbcRequestTestStep.html

pro version:ProJdbcRequestTestStep

2.DataSource :WsdlDataSourceTestStep

3.DataSource Loop:WsdlDataSourceLoopTestStep



本文转自hcy's workbench博客园博客,原文链接:http://www.cnblogs.com/alterhu/p/3983585.html,如需转载请自行联系原作者。

目录
相关文章
|
9月前
|
Java
【面试题精讲】Object类的常见方法有哪些?
【面试题精讲】Object类的常见方法有哪些?
|
2月前
|
Java
Java Object 类
5月更文挑战第16天
|
6天前
|
Java
Java中的Object类 ( 详解toString方法 | equals方法 )
Java中的Object类 ( 详解toString方法 | equals方法 )
|
2月前
|
存储 算法 Java
滚雪球学Java(42):探索对象的奥秘:解析Java中的Object类
【5月更文挑战第17天】🏆本文收录于「滚雪球学Java」专栏,专业攻坚指数级提升,希望能够助你一臂之力,帮你早日登顶实现财富自由🚀;同时,欢迎大家关注&&收藏&&订阅!持续更新中,up!up!up!!
28 2
滚雪球学Java(42):探索对象的奥秘:解析Java中的Object类
|
20天前
|
Java
【Java】Object类简单解析
【Java】Object类简单解析
15 1
|
24天前
|
前端开发 JavaScript Java
Java基础10-深入理解Class类和Object类(二)
Java基础10-深入理解Class类和Object类(二)
21 5
|
24天前
|
Java C++
Java基础10-深入理解Class类和Object类(一)
Java基础10-深入理解Class类和Object类(一)
19 4
|
2月前
|
Java
【JAVA学习之路 | 基础篇】Object类及重写的equals()与toString()
【JAVA学习之路 | 基础篇】Object类及重写的equals()与toString()
|
1月前
|
Java API
JavaSE——常用API进阶一(1/3)-Object类(Object类的作用、Object类的常见方法-toString方法、equal方法、clone方法)
JavaSE——常用API进阶一(1/3)-Object类(Object类的作用、Object类的常见方法-toString方法、equal方法、clone方法)
15 0