11---
22title : " Test Web Services Using SoapUI"
3- url : /howto8/testing /testing-web-services-using-soapui/
3+ url : /howto8/integration /testing-web-services-using-soapui/
44category : " Testing"
55weight : 30
66tags : ["test", "testing", "web service", "soapui"]
7+ aliases :
8+ - /howto8/integration/testing-web-services-using-soapui/
79---
810
911## 1 Introduction
@@ -41,11 +43,11 @@ In the how-to [Exposing a web service](/howto8/integration/expose-a-web-service/
41432 . Open the project you created in the how-to [ Exposing a web service] ( /howto8/integration/expose-a-web-service/ ) .
42443 . Create a ** Microflow** that creates a customer and returns a Boolean.
4345
44- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/model1.jpg" >}}
46+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/model1.jpg" >}}
4547
46484 . Create a ** Microflow** that deletes a customer and returns a Boolean.
4749
48- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/model2.jpg" >}}
50+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/model2.jpg" >}}
4951
50525 . Publish both microflows as web service operation of the ** CustomerWebservice** as described in chapter 4 of the how-to [ Exposing a web service] ( /howto8/integration/expose-a-web-service/ ) .
5153
@@ -55,39 +57,39 @@ In this chapter you will create a new SOAP project.
5557
56581 . Open ** SoapUI** .
57592 . Press ** CTRL+N** to create a new SOAP project.
58- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580339.png" >}}
60+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580339.png" >}}
59613 . Run the project locally in Studio Pro.
60624 . Go to ` http://localhost:8080/ws-doc/ ` .
61- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580314.png" >}}
63+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580314.png" >}}
62645 . Enter the URL of the WSDL schema in the ** Initial WSDL** field in SoapUI.
6365 The Project Name field will automatically be filled with the name of the webservice following by * ?wsdl* .
64- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580334.png" >}}
66+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580334.png" >}}
65676 . Click** OK** . This will create a new SOAP project in SoapUI.
66- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580313.png" >}}
68+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580313.png" >}}
6769
6870## 5 Building a TestSuite, TestCase, and TestStep
6971
7072In this chapter you will build a testsuite. A testsuite contains one or more testcases. Every testcase contains one ore more teststeps.
7173
72741 . In SoapUI, press ** CTRL+T** to create a new TestSuite.
73- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580332.png" >}}
75+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580332.png" >}}
74762 . Click ** OK** .
75773 . Select TestSuite 1 and press ** CTRL+N** to create a new TestCase.
76- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580331.png" >}}
78+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580331.png" >}}
77794 . Click ** OK** .
78805 . Expand TestSuite 1 and TestCase 1.
79816 . Right-click ** Test Steps(0)** and select ** SOAP Request** .
80- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580312.png" >}}
82+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580312.png" >}}
81837 . Enter * Retrieve Customers* in the name field.
82- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580329.png" >}}
84+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580329.png" >}}
83858 . Click ** OK** .
84869 . Select ** CustomerWebserviceSoap -> GetCustomers** .
85- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580328.png" >}}
87+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580328.png" >}}
868810 . Click ** OK** .
87- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580327.png" >}}
89+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580327.png" >}}
889011 . Click ** OK** .
899112 . Open SOAP request ** Retrieve Customers** .
90- {{< figure src="/attachments/howto8/testing /testing-web-services-using-soapui/18580326.png" >}}
92+ {{< figure src="/attachments/howto8/integration /testing-web-services-using-soapui/18580326.png" >}}
919313 . Change the follow value:
9294
9395 ``` java
@@ -142,15 +144,15 @@ In this chapter you will build a testsuite. A testsuite contains one or more tes
142144Assertions are used to validate the message received by a TestStep during execution, usually by comparing parts of the message (or the entire message) to some expected value. In this chapter you will create an assertion that validates the number of customers.
143145
1441461. Click ** Assertions (1 )** .
145- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580307.png" > }}
147+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580307.png" > }}
146148 In chapter 3 step 9 the * Add SOAP Response Assertion * checkbox was checked. That is the first assertion you see in the list, * SOAP Response - VALID * .
1471492. Click the add assertion icon.
148- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580324.png" > }}
150+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580324.png" > }}
1491513. Click ** Property Content ** .
1501524. Click ** XPath Match ** .
1511535. Enter * count(// Customer)* in the XPath Expression field.
1521546. In step 1.4 of the previous how- to you have added some data. Enter the number of created customers in the ** Expected Result ** field. In this example four customers were created.
153- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580323.png" > }}
155+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580323.png" > }}
1541567. Click ** Save ** .
155157
156158## 7 Extending Your Test Case
@@ -181,13 +183,13 @@ In this chapter you will extend your test case with multiple test steps and asse
181183 ```
182184
1831853. Add a **Contains Assertion** and enter *true* in the content field.
184- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580322.png" > }}
186+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580322.png" > }}
1851874. Right - click test step ** Retrieve Customers ** .
186188
1871895. Select ** Clone TestStep ** .
188190
1891916. Change ** TestStep Name ** to * Retrieve Customers 2 * .
190- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580320.png" > }}
192+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580320.png" > }}
1911937. Click ** OK ** .
1921948. Open teststep ** Retrieve Customers 2 ** .
1931959. Click ** Assertions (2 )** .
@@ -216,17 +218,17 @@ In this chapter you will extend your test case with multiple test steps and asse
216218In this chapter you will learn how to run the testcase you created in previous chapters.
217219
2182201. Open testcase **TestCase 1**.
219- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580310.png" > }}
221+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580310.png" > }}
2202222. Click the run this testcase icon.
221- {{< figure src= " /attachments/howto8/testing /testing-web-services-using-soapui/18580309.png" > }}
223+ {{< figure src= " /attachments/howto8/integration /testing-web-services-using-soapui/18580309.png" > }}
222224
223225Congratulations ! You have just created your first automated test with SoapUI .
224226
225227## 9 Read More
226228
227229* [Finding the Root Cause of Runtime Errors ](/ howto8/ monitoring- troubleshooting/ finding- the- root- cause- of- runtime- errors/ )
228230* [Clearing Warning Messages in Mendix ](/ howto8/ monitoring- troubleshooting/ clear- warning- messages/ )
229- * [Testing web services using SoapUI ](/ howto8/ testing / testing- web- services- using- soapui/ )
231+ * [Testing web services using SoapUI ](/ howto8/ integration / testing- web- services- using- soapui/ )
230232* [Monitoring Mendix using JMX ](/ howto8/ monitoring- troubleshooting/ monitoring- mendix- using- jmx/ )
231233* [Debugging Java actions remotely](/ howto8/ monitoring- troubleshooting/ debug- java- actions- remotely/ )
232234* [Log Levels ](/ howto8/ monitoring- troubleshooting/ log- levels/ )
0 commit comments