SoapUI中autoformat XML请求主体的键盘快捷方式

时间:2017-05-05 17:54:27

标签: xml soapui ready-api

是否有格式化SoapUI XML请求体的键盘快捷键?我尝试了Alt+F但没有工作。

1 个答案:

答案 0 :(得分:2)

Alt + F是组合。也许你的期望与工具的能力不匹配?

当我有这个XML时:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
<urn:GetList>
         <urn:Qualification>'1' LIKE "%1"</urn:Qualification>
         <urn:startRecord></urn:startRecord>
         <urn:maxLimit></urn:maxLimit>
</urn:GetList>
   </soapenv:Body>
</soapenv:Envelope>

然后按alt + F我得到这个XML:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <urn:GetList>
         <urn:Qualification>'1' LIKE "%1"</urn:Qualification>
         <urn:startRecord/>
         <urn:maxLimit/>
      </urn:GetList>
   </soapenv:Body>
</soapenv:Envelope>

此外,您应该将光标放在XML编辑窗口中,否则您将获得“文件”菜单下拉列表