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,如需转载请自行联系原作者。

目录
打赏
0
0
0
0
44
分享
相关文章
|
4月前
|
重学Java基础篇—Java Object类常用方法深度解析
Java中,Object类作为所有类的超类,提供了多个核心方法以支持对象的基本行为。其中,`toString()`用于对象的字符串表示,重写时应包含关键信息;`equals()`与`hashCode()`需成对重写,确保对象等价判断的一致性;`getClass()`用于运行时类型识别;`clone()`实现对象复制,需区分浅拷贝与深拷贝;`wait()/notify()`支持线程协作。此外,`finalize()`已过时,建议使用更安全的资源管理方式。合理运用这些方法,并遵循最佳实践,可提升代码质量与健壮性。
120 1
|
4月前
|
课时78:Object类的基本概念
Object类的主要特点是可以解决参数的统一问题,使用object类可以接受所有的数据类型。 1. Object类简介 2. 观察Object类接收所有子类对象 3. 使用Object类接收数组
Java基础-常用API-Object类
继承是面向对象编程的重要特性,允许从已有类派生新类。Java采用单继承机制,默认所有类继承自Object类。Object类提供了多个常用方法,如`clone()`用于复制对象,`equals()`判断对象是否相等,`hashCode()`计算哈希码,`toString()`返回对象的字符串表示,`wait()`、`notify()`和`notifyAll()`用于线程同步,`finalize()`在对象被垃圾回收时调用。掌握这些方法有助于更好地理解和使用Java中的对象行为。
Java基础的灵魂——Object类方法详解(社招面试不踩坑)
本文介绍了Java中`Object`类的几个重要方法,包括`toString`、`equals`、`hashCode`、`finalize`、`clone`、`getClass`、`notify`和`wait`。这些方法是面试中的常考点,掌握它们有助于理解Java对象的行为和实现多线程编程。作者通过具体示例和应用场景,详细解析了每个方法的作用和重写技巧,帮助读者更好地应对面试和技术开发。
303 4
|
9月前
|
Java Object 类详解
在 Java 中,`Object` 类是所有类的根类,每个 Java 类都直接或间接继承自 `Object`。作为所有类的超类,`Object` 定义了若干基本方法,如 `equals`、`hashCode`、`toString` 等,这些方法在所有对象中均可使用。通过重写这些方法,可以实现基于内容的比较、生成有意义的字符串表示以及确保哈希码的一致性。此外,`Object` 还提供了 `clone`、`getClass`、`notify`、`notifyAll` 和 `wait` 等方法,支持对象克隆、反射机制及线程同步。理解和重写这些方法有助于提升 Java 代码的可读性和可维护性。
323 20
【Java基础面试二十】、介绍一下Object类中的方法
这篇文章介绍了Java中Object类的常用方法,包括`getClass()`、`equals()`、`hashCode()`、`toString()`、`wait()`、`notify()`、`notifyAll()`和`clone()`,并提到了不推荐使用的`finalize()`方法。
【Java基础面试二十】、介绍一下Object类中的方法
|
10月前
|
类与面向对象编程(Object-Oriented Programming, OOP)
类与面向对象编程(Object-Oriented Programming, OOP)
61 1
|
11月前
|
12 Java常用类(一)(内部类+object类+包装类)
12 Java常用类(一)(内部类+object类+包装类)
87 5
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等

登录插画

登录以查看您的控制台资源

管理云资源
状态一览
快捷访问