SoapUI API/Webservices Testing Part 2



SOAP UI
How To Create a Soap Project, Test Suite, Test Case
- - - - - - - - - - - - - - - - - - - - - - - - - -

you need a WSDL document

SOAP UI
How To Create a Soap Project, Test Suite, Test Case
- - - - - - - - - - - - - - - - - - - - - - - - - -
WSDL: Web Service Description Language

SOAP UI
How To Create a Soap Project, Test Suite, Test Case
- - - - - - - - - - - - - - - - - - - - - - - - - -
WSDL: Web Service Description Language

http://www.dneonline.com/calculator.asmx?wsdl

About the URL's file extension which is .asmx

What is an ASMX file?

What is ASP.NET?

Comparing that document (calculator.asmx?wsdl) between my browser and the one displayed in the Video.

contents from the link contents from the video

Creating a new SOAP Project

the New SOAP Project dialog box

Back to the browser display the xml inside the calculator.asmx file

SOAP UI
How To Create a Soap Project, Test Suite, Test Case
- - - - - - - - - - - - - - - - - - - - - - - - - -
WSDL: Web Service Description Language

http://www.dneonline.com/calculator.asmx?wsdl

Wizdler

About the Wizdler Extension

Adding the Wizdler Extension

what the Wizdler reveals

Opening a project in the Project panel

Two projects open, he wants to delete one of them from the Project panel

SOAP UI
How To Create a Soap Project, Test Suite, Test Case
- - - - - - - - - - - - - - - - - - - - - - - - - -
WSDL: Web Service Description Language

http://www.dneonline.com/calculator.asmx?wsdl

Wizdler

1) Create SOAP Project using WSDL
2) Create Test suite & Test cases
3) Added contains assertion
4) Execute tests in sequence & parallel
5) Documentation

The Request and Receive panels

The code below is displayed in the Request pane on the left


(soapenv:Envelope xmlns:soapenv="http://sc ...)
   (soapenv:Header/)
   (soapenv:Body)
      (tem:Add)
         (tem:intA)?(/tem:intA)
         (tem:intB)?(/tem:intB)
      (/tem:Add)
   (/soapenv:Body)
(soapenv:Envelope)


(soapenv:Envelope xmlns:soapenv="http://sc ...)
   (soapenv:Header/)
   (soapenv:Body)
      (tem:Add)
         (tem:intA)10(/tem:intA)
         (tem:intB)20(/tem:intB)
      (/tem:Add)
   (/soapenv:Body)
(soapenv:Envelope)

Running the Request


(soap:Envelope xmlns:soap="http://schemas.xmls ...)
   (soap:Body)
      (AddResponse xmlns="http://tempuri.org/ ...)
         (AddResult)30(/AddResult)
      (/AddResponse)
   (/soap:Body)
(soap:Envelope)


1) Create SOAP Project using WSDL
2) Create Test suite & Test cases
3) Added contains assertion
4) Execute tests in sequence & parallel
5) Documentation

Generating TestCases

what the Wizdler reveals

TestCases Created

the CalculatorTestSuite dialog box the CalculatorTestSuite tree view

1) Create SOAP Project using WSDL
2) Create Test suite & Test cases
3) Added contains assertion
4) Execute tests in sequence & parallel
5) Documentation

tree view expanded for Add TestCase tree view expanded for Test Steps(1) under AddTestCase

Testing the Add TestCase, requesting and responding


(soapenv:Envelope xmlns:soapenv="http://sc ...)
   (soapenv:Header/)
   (soapenv:Body)
      (tem:Add)
         (tem:intA)?(/tem:intA)
         (tem:intB)?(/tem:intB)
      (/tem:Add)
   (/soapenv:Body)
(soapenv:Envelope)


(soapenv:Envelope xmlns:soapenv="http://sc ...)
   (soapenv:Header/)
   (soapenv:Body)
      (tem:Add)
         (tem:intA)10(/tem:intA)
         (tem:intB)20(/tem:intB)
      (/tem:Add)
   (/soapenv:Body)
(soapenv:Envelope)

Running the TestCase for Add


(soap:Envelope xmlns:soap="http://schemas.xmls ...)
   (soap:Body)
      (AddResponse xmlns="http://tempuri.org/ ...)
         (AddResult)30(/AddResult)
      (/AddResponse)
   (/soap:Body)
(soap:Envelope)

Opening the Subtract TestCase

tree view expanded for Test Steps(1) under the Subtract TestCase

(soapenv:Envelope xmlns:soapenv="http://sc ...)
   (soapenv:Header/)
   (soapenv:Body)
      (tem:Subtract)
         (tem:intA)?(/tem:intA)
         (tem:intB)?(/tem:intB)
      (/tem:Subtract)
   (/soapenv:Body)
(soapenv:Envelope)

Testing the Subtract TestCase


(soap:Envelope xmlns:soap="http://schemas.xmls ...)
   (soap:Body)
      (SubtractResponse xmlns="http://tempuri.org/ ...)
         (SubtractResult)30(/SubtractResult)
      (/SubtractResponse)
   (/soap:Body)
(soap:Envelope)



Reserve



YouTube Videos