
kubeshop/testkube-soapui-executorTestkube SoapUI Executor是Testkube的测试执行器模块,用于在Kubernetes集群中运行SoapUI测试。它允许用户将SoapUI项目文件作为输入,创建Testkube测试资源,并执行这些测试,集成Testkube的测试管理和监控功能。
适用于需要在Kubernetes环境中自动化和管理SoapUI功能测试的团队,特别是已使用Testkube进行测试管理的用户,可无缝集成SoapUI测试到现有测试流程中。
要在Testkube集群中运行SoapUI测试,需先将执行器作为Custom Resource导入。克隆仓库后执行以下命令:
bash$ kubectl testkube create executor --image kubeshop/testkube-executor-soapui:latest --types "soapui/xml" --name soapui-executor ████████ ███████ ███████ ████████ ██ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ███████ ██ █████ ██ ██ ██████ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ███████ ██ ██ ██ ██████ ██████ ███████ /tɛst kjub/ by Kubeshop Executor created soapui-executor 🥇
创建Testkube Test是运行SoapUI测试的前提,支持以下输入方式:
Testkube和SoapUI执行器接受项目文件作为输入:
bash$ kubectl testkube create test --file REST-Project-1-soapui-project.xml --type soapui/xml --name example-test ████████ ███████ ███████ ████████ ██ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ███████ ██ █████ ██ ██ ██████ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ███████ ██ ██ ██ ██████ ██████ ███████ /tɛst kjub/ by Kubeshop Test created / example-test 🥇
通过管道传递文件内容创建测试:
bash$ cat REST-Project-1-soapui-project.xml | kubectl testkube create test --type soapui/xml --name example-test-string ████████ ███████ ███████ ████████ ██ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ███████ ██ █████ ██ ██ ██████ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ███████ ██ ██ ██ ██████ ██████ ███████ /tɛst kjub/ by Kubeshop Test created / example-test-string 🥇
创建测试后,使用以下命令运行:
bash$ kubectl testkube run test example-test ████████ ███████ ███████ ████████ ██ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ███████ ██ █████ ██ ██ ██████ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ███████ ██ ██ ██ ██████ ██████ ███████ /tɛst kjub/ by Kubeshop Type : soapui/xml Name : example-test Execution ID : 624eedd443ed8485ae9289e2 Execution name: illegally-credible-mouse Test execution started Watch test execution until complete: $ kubectl testkube watch execution 624eedd443ed8485ae9289e2 Use following command to get test execution details: $ kubectl testkube get execution 624eedd443ed8485ae9289e2
SoapUI支持通过命令行参数配置测试运行,Testkube中可使用--args参数传递这些参数。例如:
bash$ kubectl testkube start test -f example-test --args '-I -c "TestCase 1"' ████████ ███████ ███████ ████████ ██ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ███████ ██ █████ ██ ██ ██████ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ███████ ██ ██ ██ ██████ ██████ ███████ /tɛst kjub/ by Kubeshop Type : soapui/xml Name : successful-test Execution ID : 625404e5a4cc6d2861193c60 Execution name: currently-amused-pug Getting pod logs Execution completed ================================ = = SOAPUI_HOME = /usr/local/SmartBear/SoapUI-5.7.0 = ================================ SoapUI 5.7.0 TestCase Runner 10:37:37,713 INFO [DefaultSoapUICore] Creating new settings at [/root/soapui-settings.xml] 10:37:43,567 INFO [PluginManager] 0 plugins loaded in 36 ms 10:37:43,570 INFO [DefaultSoapUICore] All plugins loaded 10:37:50,774 INFO [WsdlProject] Loaded project from [file:/tmp/test-content359342991] 10:37:50,834 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [REST Project 2] 10:37:50,838 INFO [SoapUITestCaseRunner] Running TestCase [TestCase 1] 10:37:50,876 INFO [SoapUITestCaseRunner] Running SoapUI testcase [TestCase 1] 10:37:50,901 INFO [SoapUITestCaseRunner] running step [1 - Request 1] 10:37:54,180 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status VALID 10:37:54,193 INFO [SoapUITestCaseRunner] Assertion [Contains] has status VALID 10:37:54,257 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [TestCase 1], time taken: 990ms, status: FINISHED 10:37:54,315 INFO [SoapUITestCaseRunner] TestCase [TestCase 1] finished with status [FINISHED] in 990ms . Use following command to get test execution details: $ kubectl testkube get execution 625404e5a4cc6d2861193c60
建议使用-I参数以获得更清晰的结果。
目前Testkube不支持SoapUI文档中描述的报告、插件和扩展功能。如需此功能,请在Testkube仓库创建issue。
Testkube Executor SoapUI实现了Testkube执行器OpenAPI(查看executor标签)。
请关注主Testkube仓库,通过issues或discussions报告问题或参与讨论。




manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务