<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SoupUI实用教程 on 重定向学院</title><link>https://itest2025.pages.dev/categories/soupui%E5%AE%9E%E7%94%A8%E6%95%99%E7%A8%8B/</link><description>Recent content in SoupUI实用教程 on 重定向学院</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 17 Jun 2025 17:29:15 +0800</lastBuildDate><atom:link href="https://itest2025.pages.dev/categories/soupui%E5%AE%9E%E7%94%A8%E6%95%99%E7%A8%8B/index.xml" rel="self" type="application/rss+xml"/><item><title>（一）Web Services基本概念</title><link>https://itest2025.pages.dev/tutorials/26-001-%E4%B8%80web-services%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5/</link><pubDate>Thu, 21 Sep 2017 02:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-001-%E4%B8%80web-services%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5/</guid><description>&lt;br>
整理这一章资料的过程是比较痛苦的，Web Services 是一项不太容易讲清楚技术，我花不少时间来阅读相关的资料，由于涉及的概念比较多，不同的厂商和专家对这些概念的解释也不完全相同。在概念的选择上我比较倾向于已出版的书籍中的解释。不过，我仍然希望你带怀疑的态度来学习这一章。
&lt;h4 id="soa">SOA&lt;/h4>
&lt;hr>
&lt;p>全称: Service-Oriented Architecture，简称 SOA，面向服务架构又称“面向服务的体系结构”。&lt;/p>
&lt;p>SOA的提出是在企业计算领域，就是要将紧耦合的系统，划分为面向业务的，粗粒度，松耦合，无状态的服务。服务发布出来供其他服务调用，一组互相依赖的服务就构成了 SOA 架构下的系统。
既然称它为一种架构，那么一般认为 SOA 是包含了运行环境，编程模型，架构风格和相关方法论等在内的一整套新的分布式软件系统构造方法和环境，涵盖服务的整个生命周期。&lt;/p>
&lt;p>service-architecture.com 网站对 SOA的定义：&lt;/p>
&lt;p>SOA 本质上是服务的集合。服务间彼此通信，这种通信可能是简单的数据传送，也可能是两个或更多的服务协调进行某些活动。服务间需要某些方法进行连接。&lt;/p>
&lt;p>所谓 &lt;strong>服务&lt;/strong> 就是精确定义、封装完善、独立于其他服务所处环境和状态的函数。&lt;/p>
&lt;p>虽然不同厂商或个人对 SOA 有着不同的理解，但是我们仍然可以从上述的定义中看到 SOA 的几个关键特性：&lt;/p>
&lt;p>&lt;strong>一种粗粒度、松耦合服务架构，服务之间通过简单、精确定义接口进行通讯，不涉及底层编程接口和通信模型。&lt;/strong>&lt;/p>
&lt;p>对于SOA来说，我们不需要太过较真 SOA 到是一个怎样的架构。只要符合它的定义和规范的软件系统都可以认为是SOA架构。　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　&lt;/p>
&lt;h4 id="soa-与-web-services">SOA 与 Web Services&lt;/h4>
&lt;hr>
&lt;p>早在1996年Gartner就前瞻性地提出了面向服务架构的思想（SOA），SOA 阐述了“对于复杂的企业IT系统，应按照不同的、可重用的粒度划分，将功能相关的一组功能提供者组织在一起为消费者提供服务”，其目的是为了解决企业内部不同IT资源之间无法互联而导致的信息孤岛问题。&lt;/p>
&lt;p>直到2000年左右，ESB（Enterprise Service Bus）、Web Services、SOAP 等这类技术的出现，才使得 SOA 渐渐落地。同时，更多的厂商像 IBM、Oracle 等也分别提出基于 SOA 的解决方案或者产品。&lt;/p>
&lt;p>因为现在几乎所有的 SOA 应用场合都是和 Web Services 绑定的，所以不免有时候这两个概念混用。不可否认 Web Services 是现在最适合实现 SOA 的技术，SOA 的走红在很大程度上归功于Web Services标准的成熟和应用普及。因为现在大家基本上认同 Web Services 技术在几方面体现了 SOA 的需要：&lt;/p>
&lt;p>首先，是基于标准访问的独立功能实体满足了松耦合要求：在 Web Services 中所有的访问都通过 SOAP 访问进行，用WSDL定义的接口封装，通过 UDDI 进行目录查找，可以动态改变一个服务的提供方而无需影响客户端的配置，外界客户端根本不必关心访问服务器端的实现。&lt;/p></description></item><item><title>（二）Web Services技术之SOAP</title><link>https://itest2025.pages.dev/tutorials/26-002-%E4%BA%8Cweb-services%E6%8A%80%E6%9C%AF%E4%B9%8Bsoap/</link><pubDate>Thu, 21 Sep 2017 01:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-002-%E4%BA%8Cweb-services%E6%8A%80%E6%9C%AF%E4%B9%8Bsoap/</guid><description>&lt;br>
__早前的 Web Services 技术由 SOAP、WSDL 和 UDDI 就构成。__
&lt;h4 id="soap">SOAP&lt;/h4>
&lt;hr>
&lt;p>Simple Object Access Protocol，简称 SOAP，简单对象访问协议。&lt;/p>
&lt;p>SOAP 是基于 XML 在分散或分布式的环境中交换信息的简单的协议。允许服务提供者和服务客户经过防火墙在互联网上进行通信。&lt;/p>
&lt;p>SOAP 的设计是为了在一个松散的、分布的环境中使用 XML 对等地交换结构化的和类型化的信息提供了一个简单且轻量级的机制。&lt;/p>
&lt;p>XML是可以扩展标记语言。&lt;/p>
&lt;pre>&lt;code>&amp;lt;bookstore&amp;gt;
 &amp;lt;book category=&amp;quot;COOKING&amp;quot;&amp;gt;
 &amp;lt;title lang=&amp;quot;en&amp;quot;&amp;gt;Everyday Italian&amp;lt;/title&amp;gt;
 &amp;lt;author&amp;gt;Giada De Laurentiis&amp;lt;/author&amp;gt;
 &amp;lt;year&amp;gt;2005&amp;lt;/year&amp;gt;
 &amp;lt;price&amp;gt;30.00&amp;lt;/price&amp;gt;
 &amp;lt;/book&amp;gt;
&amp;lt;/bookstore&amp;gt;
&lt;/code>&lt;/pre>
&lt;p>SOAP 消息的基本结构&lt;/p>
&lt;pre>&lt;code>&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;
&amp;lt;soap:Envelope xmlns:soap=&amp;quot;http://www.w3.org/2001/12/soap-envelope&amp;quot;
soap:encodingStyle=&amp;quot;http://www.w3.org/2001/12/soap-encoding&amp;quot;&amp;gt;

 &amp;lt;soap:Header&amp;gt;
 ...
 ...
 &amp;lt;/soap:Header&amp;gt;

 &amp;lt;soap:Body&amp;gt;
 ...
 ...
 &amp;lt;soap:Fault&amp;gt;
 ...
 ...
 &amp;lt;/soap:Fault&amp;gt;
 &amp;lt;/soap:Body&amp;gt;

&amp;lt;/soap:Envelope&amp;gt;
&lt;/code>&lt;/pre>
&lt;p>当 SOAP 消息真正需要在网络上传输的时候，SOAP 消息能够与不同的底层传输协议进行绑定，同时，SOAP 消息也可以在很多种消息传输模式中使用。包括超文本传输协议（HTTP），简单邮件传输协议（SMTP），多用途网际邮件扩充协议（MIME）。它还支持从消息系统到远程过程调用协议（RPC）等大量的应用程序。&lt;/p>
&lt;p>&lt;font color=#DC143C> 当然，大多的情况还是绑定在 HTTP 协议上面传输。所以，这就导致许多人认为 SOAP 就是 HTTP + XML，或者认为 SOAP 是 HTTP 的 POST 请求的一个专用版本，遵循一种特殊的 XML 消息格式。虽然，我们看到的情况确实如此，但显然这些观点对SOAP的解释是错误和片面的。&lt;/font>&lt;/p></description></item><item><title>（三）Web Services技术之REST</title><link>https://itest2025.pages.dev/tutorials/26-003-%E4%B8%89web-services%E6%8A%80%E6%9C%AF%E4%B9%8Brest/</link><pubDate>Thu, 21 Sep 2017 00:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-003-%E4%B8%89web-services%E6%8A%80%E6%9C%AF%E4%B9%8Brest/</guid><description>&lt;br>
REST 定义了一组体系架构原则，你可以根据这些原则设计以系统资源为中心的 Web Services ，包括使用不同语言编写的客户端如何通过HTTP处理和传输资源状态。如果考虑使用它的 Web Services 的数量，REST 近年来已经成为最主要的 Web Services 设计模型。事实上，REST 对 Web 的影响非常大，由于它的使用非常方便，已经普遍地取代了基于 SOAP 和 WSDL 的接口设计。
&lt;h4 id="rest">REST&lt;/h4>
&lt;hr>
&lt;p>Representational State Transfer，简称 REST ，中文翻译为 “表现层状态转化” 。&lt;/p>
&lt;p>REST 具有夸语言、夸平台的特点。所以，它是一种遵循 REST 风格的 Web Services。&lt;/p>
&lt;p> 如果一个架构符合 REST 原则，就称它为 REST ful架构。要理解 REST ful架构，最好的方法就是去理解 Representational State Transfer 这个词组到底是什么意思，它的每一个词代表了什么涵义。如果你把这个名称搞懂了，也就不难体会 REST 是一种什么样的设计。&lt;/p>
&lt;p> &lt;strong>一、资源（Resources）&lt;/strong>&lt;/p>
&lt;p>REST 的名称 “表现层状态转化” 中，省略了主语。 “表现层” 其实指的是 “资源” （Resources）的 “表现层” 。&lt;/p>
&lt;p>所谓 “资源” ，就是网络上的一个实体，或者说是网络上的一个具体信息。它可以是一段文本、一张图片、一首歌曲、一种服务，总之就是一个具体的实在。你可以用一个URI（统一资源定位符）指向它，每种资源对应一个特定的URI。要获取这个资源，访问它的URI就可以，因此URI就成了每一个资源的地址或独一无二的识别符。&lt;/p>
&lt;p>所谓 “上网” ，就是与互联网上一系列的 “资源” 互动，调用它的 URI。&lt;/p>
&lt;p>&lt;strong>二、表现层（Representation）&lt;/strong>&lt;/p>
&lt;p>“资源” 是一种信息实体，它可以有多种外在表现形式。我们把 “资源” 具体呈现出来的形式，叫做它的 “表现层” （Representation）。&lt;/p></description></item><item><title>（四）soapUI介绍与安装</title><link>https://itest2025.pages.dev/tutorials/26-003-%E5%9B%9Bsoapui%E4%BB%8B%E7%BB%8D%E4%B8%8E%E5%AE%89%E8%A3%85/</link><pubDate>Wed, 20 Sep 2017 23:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-003-%E5%9B%9Bsoapui%E4%BB%8B%E7%BB%8D%E4%B8%8E%E5%AE%89%E8%A3%85/</guid><description>&lt;p>&lt;strong>soapUI 是一款针对 REST 、SOAP 和其它的 API 自动化测试框架。&lt;/strong>&lt;/p>
&lt;p>如果不理解什么是 SOAP 和 REST , 参考：&lt;/p>
&lt;p>&lt;a href="https://itest2025.pages.dev/soapui/web-services2/" rel="">（二）Web Services技术之SOAP&lt;/a>&lt;/p>
&lt;p>&lt;a href="https://itest2025.pages.dev/soapui/web-services3/" rel="">（三）Web Services技术之REST&lt;/a>&lt;/p>
&lt;h4 id="什么是soapui">什么是soapUI?&lt;/h4>
&lt;hr>
&lt;p>(SoapUI is the world&amp;rsquo;s most widely-used open source API testing tool for SOAP and REST APIs. SoapUI offers SOAP Web Services functional testing, REST API functional testing, WSDL coverage, message assertion testing and test refactoring. With over 10 years of experience backed by a vast open source community, SoapUI is the de facto method for ensuring quality when developing APIs and Web Services.)&lt;/p></description></item><item><title>（五）soapUI创建SOAP项目</title><link>https://itest2025.pages.dev/tutorials/26-005-%E4%BA%94soapui%E5%88%9B%E5%BB%BAsoap%E9%A1%B9%E7%9B%AE/</link><pubDate>Wed, 20 Sep 2017 22:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-005-%E4%BA%94soapui%E5%88%9B%E5%BB%BAsoap%E9%A1%B9%E7%9B%AE/</guid><description>&lt;h4 id="创建-soap-项目">创建 SOAP 项目&lt;/h4>
&lt;hr>
&lt;p>打开 soapUI 工具。创建一个SOAP项目。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_main_window.png"
 data-srcset="http://img.testclass.net/soapui_main_window.png, http://img.testclass.net/soapui_main_window.png 1.5x, http://img.testclass.net/soapui_main_window.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_main_window.png"
 title="http://img.testclass.net/soapui_main_window.png" />&lt;/p>
&lt;p>在窗口左侧导航栏，右键 &lt;strong>Projects &amp;ndash;&amp;gt; New SOAP Project&lt;/strong>。&lt;/p>
&lt;h4 id="添加soap接口">添加SOAP接口&lt;/h4>
&lt;hr>
&lt;p>以国内手机号码归属地查询接口为例：&lt;/p>
&lt;p>&lt;strong>Project Name&lt;/strong>：MobileCodeWS为项目名称。&lt;/p>
&lt;p>&lt;strong>Initial WSDL&lt;/strong>：http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl 为接口URL。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_new_soap_project.png"
 data-srcset="http://img.testclass.net/soapui_new_soap_project.png, http://img.testclass.net/soapui_new_soap_project.png 1.5x, http://img.testclass.net/soapui_new_soap_project.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_new_soap_project.png"
 title="http://img.testclass.net/soapui_new_soap_project.png" />&lt;/p>
&lt;p>点击 &lt;strong>OK&lt;/strong> 按钮，创建项目完成。&lt;/p>
&lt;p>依次展开：&lt;strong>MobileCodeWS&amp;ndash;&amp;gt;MobileCodeWSSoap&amp;ndash;&amp;gt;getMobileCodeInfo/&lt;/strong>，双击 &lt;strong>Request 1&lt;/strong>，填写接口查询的手机号。如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_soap_if_data.png"
 data-srcset="http://img.testclass.net/soapui_soap_if_data.png, http://img.testclass.net/soapui_soap_if_data.png 1.5x, http://img.testclass.net/soapui_soap_if_data.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_soap_if_data.png"
 title="http://img.testclass.net/soapui_soap_if_data.png" />&lt;/p>
&lt;p>请求接口详细配置如下：&lt;/p>
&lt;pre tabindex="0">&lt;code>&amp;lt;soapenv:Envelope xmlns:soapenv=&amp;#34;http://schemas.xmlsoap.org/soap/envelope/&amp;#34; xmlns:web=&amp;#34;http://WebXml.com.cn/&amp;#34;&amp;gt;
 &amp;lt;soapenv:Header/&amp;gt;
 &amp;lt;soapenv:Body&amp;gt;
 &amp;lt;web:getMobileCodeInfo&amp;gt;
 &amp;lt;!--Optional:--&amp;gt;
 &amp;lt;web:mobileCode&amp;gt;186xxxxxxxx&amp;lt;/web:mobileCode&amp;gt;
 &amp;lt;!--Optional:--&amp;gt;
 &amp;lt;web:userID&amp;gt;&amp;lt;/web:userID&amp;gt;
 &amp;lt;/web:getMobileCodeInfo&amp;gt;
 &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
&lt;/code>&lt;/pre>&lt;p>注：将 xxxxxxxx 替换为手机号。&lt;/p>
&lt;h4 id="运行测试">运行测试&lt;/h4>
&lt;hr>
&lt;p>点击 &lt;strong>Request 1&lt;/strong> 窗口左上角的绿色 &lt;strong>运行&lt;/strong> 按钮，发送 SOAP 请求。右侧窗口将会显示接口返回结果。&lt;/p></description></item><item><title>（六）soapUI创建REST项目</title><link>https://itest2025.pages.dev/tutorials/26-006-%E5%85%ADsoapui%E5%88%9B%E5%BB%BArest%E9%A1%B9%E7%9B%AE/</link><pubDate>Wed, 20 Sep 2017 21:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-006-%E5%85%ADsoapui%E5%88%9B%E5%BB%BArest%E9%A1%B9%E7%9B%AE/</guid><description>&lt;h4 id="创建-rest-项目">创建 REST 项目&lt;/h4>
&lt;hr>
&lt;p>打开 soapUI 工具。创建一个 REST 项目。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_main_window.png"
 data-srcset="http://img.testclass.net/soapui_main_window.png, http://img.testclass.net/soapui_main_window.png 1.5x, http://img.testclass.net/soapui_main_window.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_main_window.png"
 title="http://img.testclass.net/soapui_main_window.png" />&lt;/p>
&lt;p>在窗口左侧导航栏，右键 &lt;strong>Projects &amp;ndash;&amp;gt; New REST Project&lt;/strong>。&lt;/p>
&lt;h4 id="添加rest接口">添加REST接口&lt;/h4>
&lt;hr>
&lt;p>以本地查询发布会接口为例。&lt;/p>
&lt;p>&lt;strong>URI&lt;/strong>：http://127.0.0.1:8000/events/ 为接口URI。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_new_rest_project.png"
 data-srcset="http://img.testclass.net/soapui_new_rest_project.png, http://img.testclass.net/soapui_new_rest_project.png 1.5x, http://img.testclass.net/soapui_new_rest_project.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_new_rest_project.png"
 title="http://img.testclass.net/soapui_new_rest_project.png" />&lt;/p>
&lt;p>点击 &lt;strong>OK&lt;/strong> 按钮，创建项目完成。&lt;/p>
&lt;p>依次展开：&lt;strong>REST Project 1&amp;ndash;&amp;gt;Events[/events/]&amp;ndash;&amp;gt;Events&amp;ndash;&amp;gt;Request 1&lt;/strong> , 为 REST 接口窗口。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_rest_if_window.png"
 data-srcset="http://img.testclass.net/soapui_rest_if_window.png, http://img.testclass.net/soapui_rest_if_window.png 1.5x, http://img.testclass.net/soapui_rest_if_window.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_rest_if_window.png"
 title="http://img.testclass.net/soapui_rest_if_window.png" />&lt;/p>
&lt;p>点击 &lt;strong>Request 1&lt;/strong> 窗口中左上角的绿色 &lt;strong>运行&lt;/strong> 按钮，右则窗口显示接口查询结果。&lt;/p>
&lt;h4 id="设置接口uri">设置接口URI&lt;/h4>
&lt;hr>
&lt;p>如果想查询具体的某一条发布会信息，可以在 Resource 输入框中指定发布会 id，如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_rest_if_data.png"
 data-srcset="http://img.testclass.net/soapui_rest_if_data.png, http://img.testclass.net/soapui_rest_if_data.png 1.5x, http://img.testclass.net/soapui_rest_if_data.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_rest_if_data.png"
 title="http://img.testclass.net/soapui_rest_if_data.png" />&lt;/p></description></item><item><title>（七）soapUI设置Auth</title><link>https://itest2025.pages.dev/tutorials/26-007-%E4%B8%83soapui%E8%AE%BE%E7%BD%AEauth/</link><pubDate>Wed, 20 Sep 2017 20:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-007-%E4%B8%83soapui%E8%AE%BE%E7%BD%AEauth/</guid><description>&lt;br>
#### 设置用户认证（Auth）
----
当我们请求一个接口时，一般需要认证，认证是判断用户是否有请求权限的常用手段。
&lt;p>参考前面学习的添加 SOAP 和 REST 请求。&lt;/p>
&lt;p>点击 &lt;strong>“Request 1”&lt;/strong> 窗口左下角 &lt;strong>“Auth”&lt;/strong> 按钮，Authoriaztion 选项中选择 &lt;strong>“add New Authoriaztion”&lt;/strong> ，在弹出的窗口中 Type 选择 &lt;strong>“Basic”&lt;/strong> 选项，点击 &lt;strong>“OK”&lt;/strong> 按钮，如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/sopaui_add_auth.png"
 data-srcset="http://img.testclass.net/sopaui_add_auth.png, http://img.testclass.net/sopaui_add_auth.png 1.5x, http://img.testclass.net/sopaui_add_auth.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/sopaui_add_auth.png"
 title="http://img.testclass.net/sopaui_add_auth.png" />&lt;/p>
&lt;p>添加认证用户,如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/sopaui_setting_auth.png"
 data-srcset="http://img.testclass.net/sopaui_setting_auth.png, http://img.testclass.net/sopaui_setting_auth.png 1.5x, http://img.testclass.net/sopaui_setting_auth.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/sopaui_setting_auth.png"
 title="http://img.testclass.net/sopaui_setting_auth.png" />&lt;/p>
&lt;p>填写用户认证 Username 和 Password ，勾选 &lt;strong>“Authenticate pre-emptvely”&lt;/strong> 选项。&lt;/p>
&lt;p>Username：用于填写基本认证的用户名。&lt;/p>
&lt;p>Password：用于填写基本认证的密码。&lt;/p>
&lt;p>Domain：域名是基本认证的可选项，设置为空。&lt;/p>
&lt;p>Pre-emptive auth：设置定义认证的行为。&lt;/p>
&lt;ul>
&lt;li>Use global preference ：用于定义HTTP设置为全局首选项。&lt;/li>
&lt;li>Authenticate pre-emptively：仅适用于此请求，不需要等待身份验证质询时发送凭据。&lt;/li>
&lt;/ul>
&lt;p>原始封面&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="https://images.unsplash.com/photo-1524219726159-3cbf91ce4b70?w=300"
 data-srcset="https://images.unsplash.com/photo-1524219726159-3cbf91ce4b70?w=300, https://images.unsplash.com/photo-1524219726159-3cbf91ce4b70?w=300 1.5x, https://images.unsplash.com/photo-1524219726159-3cbf91ce4b70?w=300 2x"
 data-sizes="auto"
 alt="https://images.unsplash.com/photo-1524219726159-3cbf91ce4b70?w=300"
 title="课程图片" />&lt;/p></description></item><item><title>（八）soapUI创建性能测试</title><link>https://itest2025.pages.dev/tutorials/26-008-%E5%85%ABsoapui%E5%88%9B%E5%BB%BA%E6%80%A7%E8%83%BD%E6%B5%8B%E8%AF%95/</link><pubDate>Wed, 20 Sep 2017 20:00:11 +0800</pubDate><guid>https://itest2025.pages.dev/tutorials/26-008-%E5%85%ABsoapui%E5%88%9B%E5%BB%BA%E6%80%A7%E8%83%BD%E6%B5%8B%E8%AF%95/</guid><description>&lt;br>
&lt;p>这一节我们来介绍性能测试，以前面添加的 SOAP 项目为例。&lt;/p>
&lt;p>&lt;a href="https://itest2025.pages.dev/soapui/create-soap-project/" rel="">（五）soapUI创建SOAP项目&lt;/a>&lt;/p>
&lt;h4 id="创建测试用例">创建测试用例&lt;/h4>
&lt;hr>
&lt;p>右键点击 &lt;strong>“requests 1”&lt;/strong> 请求，选择 &lt;strong>“Add to TestCase”&lt;/strong> &amp;hellip;，如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_add_to_TestCase.png"
 data-srcset="http://img.testclass.net/soapui_add_to_TestCase.png, http://img.testclass.net/soapui_add_to_TestCase.png 1.5x, http://img.testclass.net/soapui_add_to_TestCase.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_add_to_TestCase.png"
 title="http://img.testclass.net/soapui_add_to_TestCase.png" />&lt;/p>
&lt;p>第一步，默认设置测试套件名为：TestSuite 1。&lt;/p>
&lt;p>第二步，默认设置测试用例名为：TestCase 1。&lt;/p>
&lt;p>第三步，添加 Requests 到 测试用例，如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_add_requests_to_TestCase.png"
 data-srcset="http://img.testclass.net/soapui_add_requests_to_TestCase.png, http://img.testclass.net/soapui_add_requests_to_TestCase.png 1.5x, http://img.testclass.net/soapui_add_requests_to_TestCase.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_add_requests_to_TestCase.png"
 title="http://img.testclass.net/soapui_add_requests_to_TestCase.png" />&lt;/p>
&lt;p>点击 &lt;strong>“OK”&lt;/strong> 完整测试用例的创建，如下图。&lt;/p>
&lt;p>&lt;img
 class="lazyload"
 src="https://itest2025.pages.dev/svg/loading.min.svg"
 data-src="http://img.testclass.net/soapui_add_LoadTest.png"
 data-srcset="http://img.testclass.net/soapui_add_LoadTest.png, http://img.testclass.net/soapui_add_LoadTest.png 1.5x, http://img.testclass.net/soapui_add_LoadTest.png 2x"
 data-sizes="auto"
 alt="http://img.testclass.net/soapui_add_LoadTest.png"
 title="http://img.testclass.net/soapui_add_LoadTest.png" />&lt;/p>
&lt;br>
#### 创建性能测试用例 &amp; 运行
----
&lt;p>接下来，创建性能测试用例，右键点击 &lt;strong>“Load Tests (1)” &amp;ndash;&amp;gt; “New LoadTest”&lt;/strong> , 创建完成，参考上图，多出来一个 &lt;strong>“LoadTest 1”&lt;/strong> 的选项。&lt;/p>
&lt;p>最后，运行性能测试。在 &lt;strong>“LoadTest 1”&lt;/strong> 窗口，点解右上角的绿色按钮，运行性能测试。&lt;/p></description></item></channel></rss>