1) Explain what is SOAP UI?
SoapUI is an open-source web service testing application for Simple Object Access Protocol and representational state transfers. Its functionality covers web service inspection, invoking, development, simulation and mocking, functional testing, load and compliance testing.
2) What is SOAP UI used for?
SoapUI can be used for the following:
– Complete RESTful API and SOAP Web Service testing.
– Perform Functional Testing, Performance Testing, Interoperability Testing and Regression Testing.
– Simulate Web Services.
– Record tests and use them later.
– Create code stubs from the WSDL.
– Create REST specifications (WADL)from recorded communication.
3) Which languages are supported by SOAP UI?
4) What is the role played by XML, WSDL, Soap, and UDDI in Web Services?
Web services provide a medium over which web-based application are integrated or connected over internet protocol support. The web-based application is integrated with XML, UDDI, SOAP, etc. SOAP is used to transmit the data whereas WSDL is used to describe the services. Similarly, UDDI is useful for listing all services accessible and XML is used in tagging the data.
5) Where is Groovy Script used inside the SoapUI?
It is used in two places:
– Groovy script test step
– Script Assertion within a test step
6) Explain the Xpath Assertion in SoapUI?
It is used to assert the web service response by giving the absolute path. If this path is corresponding with the response, the test case will be considered as PASS else it will be informed as FAILED. We can see the outcomes of assertion at the end of the screen and the Assertion tab has resultant information there.
7) How is SoapUI used for Structuring Functional Tests?
It uses three levels for that:
– TestSuite: Pool of test cases for combining functional tests as logical elements
– TestCase: Group of test steps brought together for testing a specific aspect of services.
– TestSteps: Building blocks for functional tests of SOAPUI. Used to determine the drift of execution of tested service.
8) Explain SoapUI Assertions?
They are used to compare some or all response message to the predictable outcome.
9) What are different properties in SoapUI?
Retrieve data, store data as key and value.
10) Describe the role of WSDL in Web Service Testing?
Authenticating web services is possible with WSDL because to organize web services in SoapUI, only WSDL document is obligatory. If the WSDL document is not legal, SoapUI will toss an exception directly.
11) What data sources are used for SoapUI?
– Excel files
– ODBC sources
– CSV files
– SQL or ADO objects
12) Is Soap stateful specification?
Soap is stateful and REST is stateless.
13) How to write test scripts in soapui?
14) How to generate html report using soapui free version?
JUnit-Style HTML Report can be generated by selecting JUnit-Style HTML Report option in report format drop-down in SoapUI.
15) How to stop groovy script in soapui?
To stop groovy script in soapui –
The testRunner.cancel() will stop the execution for the run.
If you want to fail it use testRunner.fail()
16) How to get test case name in soapui using groovy?
17) How to call soapui mock service from java?
Use the SOAP Service Mocking facility in SoapUI by either using Groovy or configuring SOAP service mocking in SoapUI pro.
18) Is soap an RPC?
Yes, soap is an RPC. Remote Procedure Call (RPC) is a protocol that one program can use to request a service from a program located in another computer on a network without having to understand the network’s details. Remote procedure calls in SOAP are essentially client-server interactions over HTTP where the request and response comply with SOAP encoding rules.
19) What does a soap document contain?
Envelope element is the top most 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.
20) What are the different types of assertions used in SoapUI?
The following are the different types of assertions:
– Contains & Not Contains
– XPath match
– XQuery match
– Schema compliance
– Soap Faults
– Response SLA
– WS security Status
– Script Assertion
– WS- Addressing Request or Response Assertion
21) What project formats are available in SoapUI?
– Standalone projects
– Composite projects
22) Explain the procedure to parameterize the endpoint in SoapUI?
– 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, property will hold the test value. Providing different input value to the property it is easy to do it through the IDE.
23) 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.
24) What is the major obstacle users faced when using SOAP?
When using SOAP, users often see the firewall security mechanism as the biggest obstacle. This block all the ports leaving few like HTTP port 80 and the HTTP port used by SOAP that bypasses the firewall. The technical complaint against SOAP is that it mixes the specification for message transport with the specification for message structure.
25) What are the syntax rules for a SOAP message?
– Must use encoded XML
– Envelope namespace must be used
– Encoding namespace must be used
– Must not consist of a DTD reference
– Must not have XML processing instruction