
Testkube 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标签)。
请关注主https://github.com/kubeshop/testkube%EF%BC%8C%E9%80%9A%E8%BF%87https://github.com/kubeshop/testkube/issues%E6%88%96https://github.com/kubeshop/testkube/discussions%E6%8A%A5%E5%91%8A%E9%97%AE%E9%A2%98%E6%88%96%E5%8F%82%E4%B8%8E%E8%AE%A8%E8%AE%BA%E3%80%82
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务