【发布时间】:2021-03-28 00:27:12
【问题描述】:
我有两个环境。本地和云。在云中,我得到名称空间为的结果
<ServiceAvailability **xmlns="http://types.infrastructure.abc.de"**>
<BackendSystem>*</BackendSystem>
<BackendName>Domain Server Release GIT commit hash</BackendName>
<Status>OK</Status>
<URL>*</URL>
<Timestamp>*</Timestamp>
</ServiceAvailability>
在本地我没有命名空间
<ServiceAvailability>
<BackendSystem>*</BackendSystem>
<BackendName>Domain Server Release GIT commit hash</BackendName>
<Status>OK</Status>
<URL>*</URL>
<Timestamp>*</Timestamp>
</ServiceAvailability>
我在soapui中使用xpath作为
declare namespace ns1='http://types.infrastructure.abc.de';
/ns1:ServiceAvailabilities/ns1:ServiceAvailability[ns1:BackendName='Domain Server Release GIT commit hash']
所以它通过云而不是本地,因为有命名空间。那么我怎样才能使我的测试用例涉及 * 作为命名空间(基本上忽略命名空间)soapui 中有一个选项说 ignore namespace prefixes 但是当打勾时它仍然不起作用???如何在我的命名空间声明中使用通配符???
【问题讨论】:
标签: xpath namespaces soapui wildcard