SOAPUI Flashcards

1
Q

What is WSDL?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of WSDL document in web service testing?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is UDDI?

A

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/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is SOAP?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What would be the message format of SOAP protocol?

A

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>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the advantages of SOAP?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does a soap document contain?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is meant by Protocols and what are the major types are used in web services?

A

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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is XML?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What we can do with the help of SoapUI?

A
  1. SoapUI offers us to perform automation testing which includes functional testing, load testing and Data Driven testing.
  2. It also provides in build reporting tool and export test results log provision
  3. We assert our services using various types of assertions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What hierarchy does SoapUI follow to build a proper testing project?

A

In a SoapUI project, the following order should be maintained.

  1. TestSuite – This is combination of functional tests and logical blocks
  2. Testcase – It’s a group that contains several test steps for the specific aspects of the service.
  3. Teststep – it contains the set of functional tests
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the basic method to automate web services in SoapUI?

A
  1. Create a project and add the WSDL file
  2. Add test suites, Test cases and Test cases- in that order
  3. Include custom programming/validation using by adding Groovy steps
  4. Call external data sources if using
  5. Add assertions if necessary
  6. Then RUN.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are SoapUI assertions?

A

Assertions compare the parts/all of the response message to the expected outcome.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the major types of assertions available in SoapUI?

A

Assertions are one of the major features in SoapUI. It offers the following types of assertions.

  1. Simple contains
  2. Schema compliance
  3. Simple not contain
  4. Soap Faults
  5. Response SLA
  6. XPath Match
  7. XQuery Match
  8. WS security status
  9. Script Assertion
  10. WS- Addressing Request or Response Assertion
    Additionally, Equals assertion is introduced in SoapUI NG Pro version.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Explain about XPath Assertion in SoapUI

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Data Driven testing?

A

Data Driven testing means to store our test data which includes input and expected output in an external data source called Excel / Database / XML file. Later, we need to iterate the data source using respective component. In SoapUI, Datasource and Datasource Loop test steps are used for performing data driven testing.

17
Q

How to group tests?

A

The basic Test suite is a way for us to group tests in SoapUI. When you need a different set of tests, you just have to create a new test suite and create tests as required under it as test cases.

18
Q

What are the properties available in SoapUI?

A

Custom Properties or Project Level Properties:

These properties are added several times based on our needs and they can be utilized at any test suites, test cases or test steps that belong to the current project.

Test Suite Level Properties:

The tester can add his own properties with relevant information under the test suites. These properties are available for the corresponding test suite only.

Test case Level Properties: If the tester needs to store their test data within the test cases they can create their own properties inside the test case. So these properties can be accessed within the respective test cases.

19
Q

Explain the procedure to parameterize the endpoint in SoapUI?

A

The parameterizing feature is most important when we automate the test cases and also this is the beginning of the test step creation process. Let us have a look into this.

Create project which has the endpoint information
If necessary, change the endpoint and assign to the property through the property expansion test step
Make sure the request information available in the given endpoint address
During the execution time, a property will hold the test value. Providing different input value to the property it is easy to do it through the IDE.

20
Q

Soap vs REST?

A
  1. SOAP is a protocol and REST is architecture. It allows us to send SOAP envelops to REST-based applications.
  2. REST supports different message formats but SOAP permits XML only.
  3. REST services are faster and easy to handle.
  4. SOAP is tied with SMTP and HTTP protocols whereas REST relies on HTTP only.
  5. SOAP is more secure and structured format.
  6. REST does not depend on any specific standards as it supports various messaging formats like JSON, CSV and XML.
  7. SOAP web services allow us to build the client with RESTful services.
  8. SOAP was introduced for distributed computing.
  9. After REST’s entry, it accommodated the web by its performance and scalability as it is a lightweight component.
  10. REST is stateless whereas SOAP is a stateful specification.
  11. REST uses Uniform Resource Identifier (URI) and it has the methods like GET, PUT, POST and DELETE to expose their resources.
  12. SOAP uses named operations and interfaces to achieve its business logic.