soapui - 在 SoapUI 中从另一个 TestSuite 调用 TestCase
问题描述
SoapUI 提供了“运行测试用例功能”:
https://www.soapui.org/docs/functional-testing/teststep-reference/run-testcase.html
问题是我不能只用它来定位另一个TestSuite的TestCase。
我知道我可以通过 Groovy 脚本实现这一点,但我想使用图形界面。
有没有办法通过图形界面从另一个 TestSuite 调用 TestCase ?
谢谢!
解决方案
// Replace names of a project, test suite, case and step with those you need.
// Connecting to the test step in another project.
def prj =
testRunner.testCase.testSuite.project.workspace.getProjectByName("ProjectName")
tCase = prj.testSuites['TestSuiteName'].testCases['TestCaseName']
tStep = tCase.getTestStepByName("TestStepName")
// Calling the test runner and checking if it can run the specified step.
def runner = tStep.run(testRunner, context)
log.info ("runner status ....... : " + runner.hasResponse())
推荐阅读
- flutter - BackDropFilter 不运行(颤振)
- c++ - 我想知道是否有可能在使用调试器 Visual Studio 代码进入之前检查 if 语句的评估结果
- postgresql - CHAINLINK 节点:我该如何解决“无法锁定 ORM”错误?
- azure-active-directory - 向 Azure B2C 登录 url 添加其他查询参数
- laravel - Laravel 中的 Job、Queue 和 Worker 有什么区别?
- python - Zappa:运行 lambda 函数时出现问题
- sql - 如何优化此查询以删除另一个表中没有对应 ID 的记录?
- javascript - 如何将数据从 Web 应用程序(React)传递到 chrome 扩展(开发面板)
- python - 保存时如何用计数命名文件?
- linux - 将安装 docker 客户端二进制文件从 MacOS 绑定到 docker-dind 映像