SOAPUI Flashcards
What is WSDL?
WSDL stands for Web Service Description Language and is a document written in XML. It uses XML to define the service layer document which consists of origin of the web service, headers, port types, request and response data. This one can provide the information about web methods and web service.
=======-
It describes:
1. Origin of the web service
1. Header information
1. Port type
1. Input and output messages
What is the role of WSDL document in web service testing?
Validating web services in only possible with WSDL document because to configure web services in SoapUI, WSDL document is mandatory. If the WSDL document is not valid, SoapUI will throw an exception immediately.
What is UDDI?
Universal Description, Discovery and Integration- a directory or global repository where all the web services can be found. A new Webservice can also be registered through this. This is also the place where WSDL detailed definitions are found.
=======-
It uses the discovery layer which is used in the web services. UDDI has all the information about the web services in detail. Global web services can be deployed at http://uddi.xml.org/
What is SOAP?
Simple Object access protocol that uses XML to interact with web applications. It uses XML based content to communicate between two client machines across any network
What would be the message format of SOAP protocol?
Generally, all the SOAP-based web services are written by using XML language which uses standard message format that is accepted across the universe. In this format, it is easy to read, identify the errors, avoids interoperability problems etc.
Here’s the sample SOAP message format.
POST /InStock HTTP/1.1 Host: localhost Content-Type: application/soap+xml; charset=utf-8 Content-Length: 399 SOAPAction: “http://www.example.com/soap-envelope” <?xml version=”1.0??> <soap:Envelope xmlns:soap=”http://www.example.com/soap-envelope”> <soap:Header> </soap:Header> <soap:Body> <m:TutorialName>SoapUI</m:TutorialName> </soap:Body> </soap:Envelope>
What are the advantages of SOAP?
Since its XML based, it is platform and programming language independent. RPC (Remote procedure calls) are sometimes blocked by firewalls and proxy servers- Soap overcomes that.
What does a soap document contain?
Envelope element is the topmost tag which identifies the XML document as a SOAP message. Followed by Envelope element, you see the header element that has header information. The Body element specifies the call and response information. Finally, you have a Fault element which contains errors and status information.
What is meant by Protocols and what are the major types are used in web services?
A protocol is a set of standard rules
that help to communicate the
hardware devices through the
software applications. There are
different types of protocols used in
the Internet and Intranet applications. They are
TCP which stands for Transmission Control Protocol. It has the rules to exchange the messages between two different Internet applications. Internet Protocol uses the rules for sending and receiving the information between two different Internet addresses. Similarly, HTTP, FTP and DHCP protocols have used the set of rules to transfer the data other than Internet applications.
What is XML?
XML (eXtensible Markup Language) is a mark-up language that is used for storing, sharing and formatting data. In general, an XML document is built by the tags.
What we can do with the help of SoapUI?
- SoapUI offers us to perform automation testing which includes functional testing, load testing and Data Driven testing.
- It also provides in build reporting tool and export test results log provision
- We assert our services using various types of assertions
What hierarchy does SoapUI follow to build a proper testing project?
In a SoapUI project, the following order should be maintained.
- TestSuite – This is combination of functional tests and logical blocks
- Testcase – It’s a group that contains several test steps for the specific aspects of the service.
- Teststep – it contains the set of functional tests
What is the basic method to automate web services in SoapUI?
- Create a project and add the WSDL file
- Add test suites, Test cases and Test cases- in that order
- Include custom programming/validation using by adding Groovy steps
- Call external data sources if using
- Add assertions if necessary
- Then RUN.
What are SoapUI assertions?
Assertions compare the parts/all of the response message to the expected outcome.
What are the major types of assertions available in SoapUI?
Assertions are one of the major features in SoapUI. It offers the following types of assertions.
- Simple contains
- Schema compliance
- Simple not contain
- Soap Faults
- Response SLA
- XPath Match
- XQuery Match
- WS security status
- Script Assertion
- WS- Addressing Request or Response Assertion
Additionally, Equals assertion is introduced in SoapUI NG Pro version.
Explain about XPath Assertion in SoapUI
In SoapUI, XPath assertion is used for asserting the web service response value by specifying the absolute path. If the absolute path is matched with the response value, then the test case or test suite will be considered as PASS otherwise it will be notified as FAILED. We can see the results of assertion at bottom of the screen where the Assertion tab will have resultant information.