SlideShare a Scribd company logo
1 of 9
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
H2kInfosys
H2K Infosys provides online IT training and placement services worldwide.
USA- +1-(770)-777-1269, UK – (020) 3371 7615
Training@H2KINFOSYS.com / H2KInfosys@gmail.com
DISCLAIMER
H2K Infosys, LLC (hereinafter “H2K”) acknowledges the proprietary rights of the trademarks and
products names of other companies mentioned in any of the training material including but not limited
to the handouts, written material, videos, power point presentations, etc. All such training materials are
provided to H2K students for learning purposes only. H2K students shall not use such materials for their
private gain nor can they sell any such materials to a third party. Some of the examples provided in any
such training materials may not be owned by H2K and as such H2K does not claim any proprietary rights
for the same. H2K does not guarantee nor is it responsible for such products and projects. H2K
acknowledges that any such information or product that has been lawfully received from third party
source is free from restriction and without any breach or violation of law whatsoever.
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Webservices(or)SoapUI Interview Questions
1. What is SOAP?
-SOAP is a protocol for accessing web services. it is XML based
-SOAP provides a way to communicate between applications running on different operating
systems, with different technologies and programming languages.
A SOAP message is an ordinary XML document containing the following elements:
An Envelope element that identifies the XML document as a SOAP message
A Header element that contains header information
A Body element that contains call and response information
A Fault element containing errors and status information
================================================================================
2. How do you automate web services using SOAP UI?
-create project using wsdl file
-create test suite
-create test case
-add steps to case
-add Groovy script
In groovy script editor.
Add comments 1st
Then call the script if we have any external file
===============================================================================
3. How can I parameterize the test data in soap UI?
-we can use excel
(Or)
Use test case level properties
===============================================================================
4. Which is the open source tool for web services testing?
-JMETER
===============================================================================
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
5. What are the REST COMMANDS?
Create => HTTP PUT
Retrieve => HTTP GET
Update => HTTP POST
Delete => HTTP DELETE
===============================================================================
6. How do you validate your response?
-added assertions to validate the data
For example date format should be mm/dd/yyyy;
We can add assertions and regular expressions
-Write groovy script to connect to database and retrieve data; compare the data with the response
xml
===============================================================================
7. You have a web services say Maps ()...where you want to go from one location to other. Write
test cases for testing this web service
-1) by zip code from, to
2) By location from, to
===============================================================================
8. Difference between REST and SOAP
-SOAP is a protocol for sending/receiving data over HTTP as XML.
-REST (Representational State Transfer).It's a way of designing a web service.
===============================================================================
9) How to use response coming from one service as a request for other service
===============================================================================
10) What is end point in Web Services?
-It is the IP address of the server where the web services are running
================================================================================
11) How will you do regression testing using soap UI?
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
By Creating Test Suite in the SOAP UI we can do regression Testing. We need to keep different
assertions for the request coverage, that to confirm that all the expected parameters are coming
in the response.
12. What is XML?
Extensible Markup Language is a uniform data representation and exchange mechanism.
================================================================================
13. What is SOAP?
Simple Object Access Protocol, SOAP is a standard way of using XML vocabulary to enable
programs on separate computers to interact across any network and describing messages
between applications.
================================================================================
14. What is UDDI?
Universal Description, Discovery, and Integration specification, UDDI is a mechanism to register
and located WS based application.
===============================================================================
15. What is WSDL?
Web Services Description Language, this is a standard Meta language to describe the services
offered. Specifically, WSDL states what a request message much contain and what the response
will look like in a clear notation. WSDL also defines where the service is available and what
communications protocol is used to talk to that service.
===============================================================================
16. What types of operations are available in WSDL?
There are four operations available:
1. One-way, where the operation can receive a message but will not return a response.
2. Request-response, where the operation can receive a request and will return a response.
3. Solicit-response, where the operation can send a request and will wait for a response.
4. Notification, where the operation can send a message but will not wait for a response.
==============================================================================
17. Define a REST web service?
REST is Representational State Transfer and it is a network of web pages where the client
progresses through an application by selecting links. REST is an architectural style that uses
existing standards such as HTTP.
==============================================================================
18. What are web services components?
-XML
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
-SOAP
-UDDI
-WSDL
19. Can I use GET request instead of PUT to create resources?
No, you are supposed to use PUT or POST. GET operations should only have view rights.
===========================================================================
20. What all tools have you used to write Restful web service?
-SOAP UI
===========================================================================
21. What are the different styles of Web Services used for application integration?
Ans. SOAP WS and Restful Web Service
===========================================================================
22. How would you decide what style of Web Service to use? SOAP WS or REST?
In general, a REST based Web service is preferred due to its simplicity, performance, scalability,
and support for multiple data formats. SOAP is favored where service requires comprehensive
support for security and transactional reliability.
The answer really depends on the functional and non-functional requirements. Asking the
questions listed below will help you choose.
Does the service expose data or business logic? (REST is a better choice for exposing data,
SOAP WS might be a better choice for logic). Do the consumers and the service providers require
a formal contract? (SOAP has a formal contract via WSDL)
Do we need to support multiple data formats?
Do we need to make AJAX calls? (REST can use the XMLHttpRequest)
Is the call synchronous or asynchronous?
Is the call stateful or stateless? (REST is suited for stateless CRUD operations)
What level of security is required? (SOAP WS has better support for security)
What level of transaction support is required? (SOAP WS has better support for transaction
management)
Do we have limited band width? (SOAP is more verbose)
What’s best for the developers who will build clients for the service? (REST is easier to
implement, test, and maintain)
================================================================================
23. What tools do you use to test your Web Services?
Soap UI tool for SOAP WS
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
================================================================================
24. What is the difference between SOA and a Web service?
SOA is a software design principle and an architectural pattern for implementing loosely coupled,
reusable and coarse grained services. You can implement SOA using any protocols such as
HTTP, HTTPS, JMS, SMTP, RMI, IIOP (i.e. EJB uses IIOP), and RPC etc. Messages can be in XML or
Data Transfer Objects (DTOs).
Web service is an implementation technology and one of the ways to implement SOA. You can
build SOA based applications without using Web services
For example by using other traditional technologies like Java RMI, EJB, and JMS based
messaging, etc. But what Web services offer is the standards based and platform-independent
service via HTTP, XML, SOAP, WSDL and UDDI, thus allowing interoperability between
heterogeneous technologies such as J2EE and .NET.
==============================================================================
25. What types of testing ca you perform using SOAP UI?
Soap UI allows you to easily and rapidly create and execute automated functional, regression,
compliance, and load tests.
==============================================================================
26. What is Data-Driven testing? How can you do this using SOAP UI?
Data-driven testing is when you store test data (input, expected output, etc) in some external
storage (database, spreadsheet, xml-files, etc) and then use that data iteratively in your tests
when running them. For example to test your phone-lookup service, you might have a list of
names and expected phone-numbers in a database which you would use to "drive" your test,
checking that each name gets the right phone-number back. It's really quite simple.
==============================================================================
27. Which version of SOAP UI Pro are you using?
-mention the latest version
==============================================================================
28. How to add an Assertion to the test?
1. Open the request editor.
2. in the request editor, click the Add an Assertion to Test Request button.
3. Select Response SLA from the drop down in the Select Assertion dialog box.
4. in the Configure Response SLA Assertion dialog box, write 500 and click OK. This will validate
that the response of the SLA is fewer than 500.
5. Now that you've added the assertion, you are going to run the request to validate the response.
If all assertions are successful, the SOAP icon should turn green in three places .
6. You can also validate the response by adding an X-Path Match assertion.
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
7. In Soap UI Pro you can open the Select X-Path dialog, which lets you select nodes to assert
using point-and-click. As a result Soap UI creates the matching X-Path expression that refers to
the selected node.
8. Soap UI automatically populates the expected result to match what's in the response. But of
course, you can change this to what's relevant for you.
===============================================================================
29. How to access the Project name from a Groovy Script Test Step?
testRunner.testCase.testSuite.project.name
(Almost all items have a name property)
==============================================================================
30. How do I save the changes I make to my projects, requests, Test Cases, etc?
Soap UI automatically saves everything on exit. If you want to save your projects without exiting
(for example if you want to commit your project file to CVS) use the "Save All" option in the main
File menu
==============================================================================
31. How to Create a Mock Service?
1. Right-click on one of the SOAP interfaces and selects Generate Mock Service.
2. In the dialog Generate Mock Service you can specify the local port/path for the service you're
creating but for the moment just click OK.
3. Enter the name of your Mock Service in the Name dialog and click OK.
4. after creating the Mock Service, you should get a Mock Service with one operation and one
request.
==============================================================================
32. What languages are supported?
-Groovy and JavaScript
==============================================================================
33. What exactly WSDL document contains?
A. It is a document written in XML and used to describe web services. It specifies the location of
the service and the operations (or methods) the service exposes.
=============================================================================
34. Few tools used in your project if you used web services.
SOAP UI: Test the web service
Sometimes some of the back end services might not available, so you can create a mock
response and run the web service from the soap UI. Then your program should hit the mock
response and you can check the functionality.
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
============================================================================
Restful service calls
HTTP PUT =>Create
HTTP GET => Retrieve
HTTP POST => Update
HTTP DELETE => Delete
GET:
GET is the simplest type of HTTP request method; the one that browsers use each time you click a
link or type a URL into the address bar. It instructs the server to transmit the data identified by the
URL to the client. Data should never be modified on the server side as a result of a GET request.
PUT
A PUT request is used when you wish to create or update the resource identified by the URL.
DELETE
DELETE should perform the contrary of PUT; it should be used when you want to delete the
resource identified by the URL of the request.
POST
POST is used when the processing you wish to happen on the server should be repeated, if the
POST request is repeated (that is, they are not idempotent; more on that below). In addition, POST
requests should cause processing of the request body as a subordinate of the URL you are
posting to.
=======================================
HTTP Error messages
200 OK
This response code indicates that the request was successful.
201 Created
This indicates the request was successful and a resource was created. It is used to confirm
success of a PUT or POST request.
400 Bad Requests
The request was malformed. This happens especially with POST and PUT requests, when the data
does not pass validation, or is in the wrong format.
404 Not Found
This response indicates that the required resource could not be found. This is generally returned
to all requests which point to a URL with no corresponding resource.
401 Unauthorized
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
This error indicates that you need to perform authentication before accessing the resource.
405 Method Not Allowed
The HTTP method used is not supported for this resource.
409 Conflicts
This indicates a conflict. For instance, you are using a PUT request to create the same resource
twice.
500 Internal Server Errors
When all else fails; generally, a 500 response is used when processing fails due to unanticipated
circumstances on the server side, which causes the server to error out.
==============================
Web services testing interview question
We can use property transfer to transfer the value from one restful call to another restful from
source we select the one restful service from the response from this we can use target and add
the property to send value
=========================
HTTP status 401: Unauthorized
Web Service receives "The request failed with HTTP status 404: Not Found
==========================
AJAX Retry-After headers automatically
503 Browsing to any page returns a blank page due to 503 :Service unavailable
================

More Related Content

What's hot

Soap ui introduction
Soap ui introductionSoap ui introduction
Soap ui introductionIkuru Kanuma
 
SOAP-UI The Web service Testing
SOAP-UI The Web service TestingSOAP-UI The Web service Testing
SOAP-UI The Web service TestingGanesh Mandala
 
Webservices testing using SoapUI
Webservices testing using SoapUIWebservices testing using SoapUI
Webservices testing using SoapUITesting World
 
Introduction to SoapUI day 3
Introduction to SoapUI day 3Introduction to SoapUI day 3
Introduction to SoapUI day 3Qualitest
 
Web Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI ToolWeb Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI ToolSperasoft
 
Introduction to SoapUI day 2
Introduction to SoapUI day 2Introduction to SoapUI day 2
Introduction to SoapUI day 2Qualitest
 
Soap UI - Getting started
Soap UI - Getting startedSoap UI - Getting started
Soap UI - Getting startedQualitest
 
SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSmartBear
 
Proper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersProper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersMark Myers
 
API Testing. Streamline your testing process.
API Testing. Streamline your testing process.API Testing. Streamline your testing process.
API Testing. Streamline your testing process.Andrey Oleynik
 
Introduction to soapui and webservices
Introduction to soapui  and webservicesIntroduction to soapui  and webservices
Introduction to soapui and webservicesAnil Yadav
 
Frame switcher library
Frame switcher libraryFrame switcher library
Frame switcher libraryRoman Khachko
 
Web services Hand_Out
Web services Hand_OutWeb services Hand_Out
Web services Hand_OutKumar Gupta
 
Webservice performance testing with SoapUI
Webservice performance testing with SoapUIWebservice performance testing with SoapUI
Webservice performance testing with SoapUIPhuoc Nguyen
 
How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012Chen-Tien Tsai
 
Testing Agile Web Services from soapUI
Testing Agile Web Services from soapUITesting Agile Web Services from soapUI
Testing Agile Web Services from soapUIPLM Mechanic .
 

What's hot (20)

Soap ui introduction
Soap ui introductionSoap ui introduction
Soap ui introduction
 
SOAP-UI The Web service Testing
SOAP-UI The Web service TestingSOAP-UI The Web service Testing
SOAP-UI The Web service Testing
 
Testing soap UI
Testing soap UITesting soap UI
Testing soap UI
 
Webservices testing using SoapUI
Webservices testing using SoapUIWebservices testing using SoapUI
Webservices testing using SoapUI
 
Introduction to SoapUI day 3
Introduction to SoapUI day 3Introduction to SoapUI day 3
Introduction to SoapUI day 3
 
Web Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI ToolWeb Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI Tool
 
Soap ui
Soap uiSoap ui
Soap ui
 
Testing soapui
Testing soapuiTesting soapui
Testing soapui
 
Introduction to SoapUI day 2
Introduction to SoapUI day 2Introduction to SoapUI day 2
Introduction to SoapUI day 2
 
Soap UI - Getting started
Soap UI - Getting startedSoap UI - Getting started
Soap UI - Getting started
 
Deep dive into SoapUI
Deep dive into SoapUIDeep dive into SoapUI
Deep dive into SoapUI
 
SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPlugins
 
Proper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino DevelopersProper Connections Development for Proper Domino Developers
Proper Connections Development for Proper Domino Developers
 
API Testing. Streamline your testing process.
API Testing. Streamline your testing process.API Testing. Streamline your testing process.
API Testing. Streamline your testing process.
 
Introduction to soapui and webservices
Introduction to soapui  and webservicesIntroduction to soapui  and webservices
Introduction to soapui and webservices
 
Frame switcher library
Frame switcher libraryFrame switcher library
Frame switcher library
 
Web services Hand_Out
Web services Hand_OutWeb services Hand_Out
Web services Hand_Out
 
Webservice performance testing with SoapUI
Webservice performance testing with SoapUIWebservice performance testing with SoapUI
Webservice performance testing with SoapUI
 
How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012
 
Testing Agile Web Services from soapUI
Testing Agile Web Services from soapUITesting Agile Web Services from soapUI
Testing Agile Web Services from soapUI
 

Similar to Webservices(or)SoapUI Interview Questions

How Force.com developers do more in less time
How Force.com developers do more in less timeHow Force.com developers do more in less time
How Force.com developers do more in less timeAbhinav Gupta
 
Robert polak matrix skills-web developer 2018-3
Robert polak   matrix skills-web developer 2018-3Robert polak   matrix skills-web developer 2018-3
Robert polak matrix skills-web developer 2018-3Robert Polak
 
Hands-on Workshop: Intermediate Development with Heroku and Force.com
Hands-on Workshop: Intermediate Development with Heroku and Force.comHands-on Workshop: Intermediate Development with Heroku and Force.com
Hands-on Workshop: Intermediate Development with Heroku and Force.comSalesforce Developers
 
Elevate Tel Aviv
Elevate Tel AvivElevate Tel Aviv
Elevate Tel Avivsready
 
Afzal-Khan-Resume
Afzal-Khan-ResumeAfzal-Khan-Resume
Afzal-Khan-Resumeafzal khan
 
Sasmita bigdata resume
Sasmita bigdata resumeSasmita bigdata resume
Sasmita bigdata resumeSasmita Swain
 
Resume-Chandan Roul
Resume-Chandan RoulResume-Chandan Roul
Resume-Chandan RoulChandan Roul
 
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)Salesforce Developers
 
Vishal_Agarwal_webMethods_CV_2016
Vishal_Agarwal_webMethods_CV_2016Vishal_Agarwal_webMethods_CV_2016
Vishal_Agarwal_webMethods_CV_2016vishal agarwal
 
WinRT and the Web: Keeping Windows Store Apps Alive and Connected
WinRT and the Web: Keeping Windows Store Apps Alive and ConnectedWinRT and the Web: Keeping Windows Store Apps Alive and Connected
WinRT and the Web: Keeping Windows Store Apps Alive and ConnectedJeremy Likness
 
Resume for AskMe
Resume for AskMeResume for AskMe
Resume for AskMeAMit vyas
 

Similar to Webservices(or)SoapUI Interview Questions (20)

How Force.com developers do more in less time
How Force.com developers do more in less timeHow Force.com developers do more in less time
How Force.com developers do more in less time
 
Robert polak matrix skills-web developer 2018-3
Robert polak   matrix skills-web developer 2018-3Robert polak   matrix skills-web developer 2018-3
Robert polak matrix skills-web developer 2018-3
 
SFDC_BRAJ
SFDC_BRAJSFDC_BRAJ
SFDC_BRAJ
 
Hands-on Workshop: Intermediate Development with Heroku and Force.com
Hands-on Workshop: Intermediate Development with Heroku and Force.comHands-on Workshop: Intermediate Development with Heroku and Force.com
Hands-on Workshop: Intermediate Development with Heroku and Force.com
 
Elevate Tel Aviv
Elevate Tel AvivElevate Tel Aviv
Elevate Tel Aviv
 
UmaPhani_Resume
UmaPhani_ResumeUmaPhani_Resume
UmaPhani_Resume
 
Resume
ResumeResume
Resume
 
Afzal-Khan-Resume
Afzal-Khan-ResumeAfzal-Khan-Resume
Afzal-Khan-Resume
 
Sasmita bigdata resume
Sasmita bigdata resumeSasmita bigdata resume
Sasmita bigdata resume
 
Resume-Chandan Roul
Resume-Chandan RoulResume-Chandan Roul
Resume-Chandan Roul
 
Ranadip Basak
Ranadip BasakRanadip Basak
Ranadip Basak
 
ABHISHEK RAY
ABHISHEK RAYABHISHEK RAY
ABHISHEK RAY
 
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)How We Built the Private AppExchange App (Apex, Visualforce, RWD)
How We Built the Private AppExchange App (Apex, Visualforce, RWD)
 
Resume
ResumeResume
Resume
 
Vishal_Agarwal_webMethods_CV_2016
Vishal_Agarwal_webMethods_CV_2016Vishal_Agarwal_webMethods_CV_2016
Vishal_Agarwal_webMethods_CV_2016
 
WinRT and the Web: Keeping Windows Store Apps Alive and Connected
WinRT and the Web: Keeping Windows Store Apps Alive and ConnectedWinRT and the Web: Keeping Windows Store Apps Alive and Connected
WinRT and the Web: Keeping Windows Store Apps Alive and Connected
 
UBAID_CV
UBAID_CVUBAID_CV
UBAID_CV
 
annukurni_resume
annukurni_resumeannukurni_resume
annukurni_resume
 
Resume for AskMe
Resume for AskMeResume for AskMe
Resume for AskMe
 
Resume
ResumeResume
Resume
 

More from H2kInfosys

Health insurance claim | Health Care Domain
Health insurance claim | Health Care DomainHealth insurance claim | Health Care Domain
Health insurance claim | Health Care DomainH2kInfosys
 
Project 2 | Health Care Domain
Project 2 | Health Care DomainProject 2 | Health Care Domain
Project 2 | Health Care DomainH2kInfosys
 
Claims Test Case | Health Care Domain
Claims Test Case | Health Care DomainClaims Test Case | Health Care Domain
Claims Test Case | Health Care DomainH2kInfosys
 
Hadoop Big Data Demo
Hadoop Big Data DemoHadoop Big Data Demo
Hadoop Big Data DemoH2kInfosys
 
Mobile requirements
Mobile requirementsMobile requirements
Mobile requirementsH2kInfosys
 
Mobile form Validation Rules
Mobile form Validation RulesMobile form Validation Rules
Mobile form Validation RulesH2kInfosys
 
Manual QA Testing Interview Questions From H2KInfosys
Manual QA Testing Interview Questions From H2KInfosysManual QA Testing Interview Questions From H2KInfosys
Manual QA Testing Interview Questions From H2KInfosysH2kInfosys
 
Istqb interview questions By H2KInfosys
Istqb interview questions By H2KInfosysIstqb interview questions By H2KInfosys
Istqb interview questions By H2KInfosysH2kInfosys
 
Informatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosysInformatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosysH2kInfosys
 
Database Testing Interview Questions By H2kInfosys
Database Testing Interview Questions By H2kInfosysDatabase Testing Interview Questions By H2kInfosys
Database Testing Interview Questions By H2kInfosysH2kInfosys
 

More from H2kInfosys (10)

Health insurance claim | Health Care Domain
Health insurance claim | Health Care DomainHealth insurance claim | Health Care Domain
Health insurance claim | Health Care Domain
 
Project 2 | Health Care Domain
Project 2 | Health Care DomainProject 2 | Health Care Domain
Project 2 | Health Care Domain
 
Claims Test Case | Health Care Domain
Claims Test Case | Health Care DomainClaims Test Case | Health Care Domain
Claims Test Case | Health Care Domain
 
Hadoop Big Data Demo
Hadoop Big Data DemoHadoop Big Data Demo
Hadoop Big Data Demo
 
Mobile requirements
Mobile requirementsMobile requirements
Mobile requirements
 
Mobile form Validation Rules
Mobile form Validation RulesMobile form Validation Rules
Mobile form Validation Rules
 
Manual QA Testing Interview Questions From H2KInfosys
Manual QA Testing Interview Questions From H2KInfosysManual QA Testing Interview Questions From H2KInfosys
Manual QA Testing Interview Questions From H2KInfosys
 
Istqb interview questions By H2KInfosys
Istqb interview questions By H2KInfosysIstqb interview questions By H2KInfosys
Istqb interview questions By H2KInfosys
 
Informatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosysInformatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosys
 
Database Testing Interview Questions By H2kInfosys
Database Testing Interview Questions By H2kInfosysDatabase Testing Interview Questions By H2kInfosys
Database Testing Interview Questions By H2kInfosys
 

Recently uploaded

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 

Recently uploaded (20)

Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 

Webservices(or)SoapUI Interview Questions

  • 1. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com H2kInfosys H2K Infosys provides online IT training and placement services worldwide. USA- +1-(770)-777-1269, UK – (020) 3371 7615 Training@H2KINFOSYS.com / H2KInfosys@gmail.com DISCLAIMER H2K Infosys, LLC (hereinafter “H2K”) acknowledges the proprietary rights of the trademarks and products names of other companies mentioned in any of the training material including but not limited to the handouts, written material, videos, power point presentations, etc. All such training materials are provided to H2K students for learning purposes only. H2K students shall not use such materials for their private gain nor can they sell any such materials to a third party. Some of the examples provided in any such training materials may not be owned by H2K and as such H2K does not claim any proprietary rights for the same. H2K does not guarantee nor is it responsible for such products and projects. H2K acknowledges that any such information or product that has been lawfully received from third party source is free from restriction and without any breach or violation of law whatsoever.
  • 2. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Webservices(or)SoapUI Interview Questions 1. What is SOAP? -SOAP is a protocol for accessing web services. it is XML based -SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages. A SOAP message is an ordinary XML document containing the following elements: An Envelope element that identifies the XML document as a SOAP message A Header element that contains header information A Body element that contains call and response information A Fault element containing errors and status information ================================================================================ 2. How do you automate web services using SOAP UI? -create project using wsdl file -create test suite -create test case -add steps to case -add Groovy script In groovy script editor. Add comments 1st Then call the script if we have any external file =============================================================================== 3. How can I parameterize the test data in soap UI? -we can use excel (Or) Use test case level properties =============================================================================== 4. Which is the open source tool for web services testing? -JMETER ===============================================================================
  • 3. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com 5. What are the REST COMMANDS? Create => HTTP PUT Retrieve => HTTP GET Update => HTTP POST Delete => HTTP DELETE =============================================================================== 6. How do you validate your response? -added assertions to validate the data For example date format should be mm/dd/yyyy; We can add assertions and regular expressions -Write groovy script to connect to database and retrieve data; compare the data with the response xml =============================================================================== 7. You have a web services say Maps ()...where you want to go from one location to other. Write test cases for testing this web service -1) by zip code from, to 2) By location from, to =============================================================================== 8. Difference between REST and SOAP -SOAP is a protocol for sending/receiving data over HTTP as XML. -REST (Representational State Transfer).It's a way of designing a web service. =============================================================================== 9) How to use response coming from one service as a request for other service =============================================================================== 10) What is end point in Web Services? -It is the IP address of the server where the web services are running ================================================================================ 11) How will you do regression testing using soap UI?
  • 4. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com By Creating Test Suite in the SOAP UI we can do regression Testing. We need to keep different assertions for the request coverage, that to confirm that all the expected parameters are coming in the response. 12. What is XML? Extensible Markup Language is a uniform data representation and exchange mechanism. ================================================================================ 13. What is SOAP? Simple Object Access Protocol, SOAP is a standard way of using XML vocabulary to enable programs on separate computers to interact across any network and describing messages between applications. ================================================================================ 14. What is UDDI? Universal Description, Discovery, and Integration specification, UDDI is a mechanism to register and located WS based application. =============================================================================== 15. What is WSDL? Web Services Description Language, this is a standard Meta language to describe the services offered. Specifically, WSDL states what a request message much contain and what the response will look like in a clear notation. WSDL also defines where the service is available and what communications protocol is used to talk to that service. =============================================================================== 16. What types of operations are available in WSDL? There are four operations available: 1. One-way, where the operation can receive a message but will not return a response. 2. Request-response, where the operation can receive a request and will return a response. 3. Solicit-response, where the operation can send a request and will wait for a response. 4. Notification, where the operation can send a message but will not wait for a response. ============================================================================== 17. Define a REST web service? REST is Representational State Transfer and it is a network of web pages where the client progresses through an application by selecting links. REST is an architectural style that uses existing standards such as HTTP. ============================================================================== 18. What are web services components? -XML
  • 5. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com -SOAP -UDDI -WSDL 19. Can I use GET request instead of PUT to create resources? No, you are supposed to use PUT or POST. GET operations should only have view rights. =========================================================================== 20. What all tools have you used to write Restful web service? -SOAP UI =========================================================================== 21. What are the different styles of Web Services used for application integration? Ans. SOAP WS and Restful Web Service =========================================================================== 22. How would you decide what style of Web Service to use? SOAP WS or REST? In general, a REST based Web service is preferred due to its simplicity, performance, scalability, and support for multiple data formats. SOAP is favored where service requires comprehensive support for security and transactional reliability. The answer really depends on the functional and non-functional requirements. Asking the questions listed below will help you choose. Does the service expose data or business logic? (REST is a better choice for exposing data, SOAP WS might be a better choice for logic). Do the consumers and the service providers require a formal contract? (SOAP has a formal contract via WSDL) Do we need to support multiple data formats? Do we need to make AJAX calls? (REST can use the XMLHttpRequest) Is the call synchronous or asynchronous? Is the call stateful or stateless? (REST is suited for stateless CRUD operations) What level of security is required? (SOAP WS has better support for security) What level of transaction support is required? (SOAP WS has better support for transaction management) Do we have limited band width? (SOAP is more verbose) What’s best for the developers who will build clients for the service? (REST is easier to implement, test, and maintain) ================================================================================ 23. What tools do you use to test your Web Services? Soap UI tool for SOAP WS
  • 6. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com ================================================================================ 24. What is the difference between SOA and a Web service? SOA is a software design principle and an architectural pattern for implementing loosely coupled, reusable and coarse grained services. You can implement SOA using any protocols such as HTTP, HTTPS, JMS, SMTP, RMI, IIOP (i.e. EJB uses IIOP), and RPC etc. Messages can be in XML or Data Transfer Objects (DTOs). Web service is an implementation technology and one of the ways to implement SOA. You can build SOA based applications without using Web services For example by using other traditional technologies like Java RMI, EJB, and JMS based messaging, etc. But what Web services offer is the standards based and platform-independent service via HTTP, XML, SOAP, WSDL and UDDI, thus allowing interoperability between heterogeneous technologies such as J2EE and .NET. ============================================================================== 25. What types of testing ca you perform using SOAP UI? Soap UI allows you to easily and rapidly create and execute automated functional, regression, compliance, and load tests. ============================================================================== 26. What is Data-Driven testing? How can you do this using SOAP UI? Data-driven testing is when you store test data (input, expected output, etc) in some external storage (database, spreadsheet, xml-files, etc) and then use that data iteratively in your tests when running them. For example to test your phone-lookup service, you might have a list of names and expected phone-numbers in a database which you would use to "drive" your test, checking that each name gets the right phone-number back. It's really quite simple. ============================================================================== 27. Which version of SOAP UI Pro are you using? -mention the latest version ============================================================================== 28. How to add an Assertion to the test? 1. Open the request editor. 2. in the request editor, click the Add an Assertion to Test Request button. 3. Select Response SLA from the drop down in the Select Assertion dialog box. 4. in the Configure Response SLA Assertion dialog box, write 500 and click OK. This will validate that the response of the SLA is fewer than 500. 5. Now that you've added the assertion, you are going to run the request to validate the response. If all assertions are successful, the SOAP icon should turn green in three places . 6. You can also validate the response by adding an X-Path Match assertion.
  • 7. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com 7. In Soap UI Pro you can open the Select X-Path dialog, which lets you select nodes to assert using point-and-click. As a result Soap UI creates the matching X-Path expression that refers to the selected node. 8. Soap UI automatically populates the expected result to match what's in the response. But of course, you can change this to what's relevant for you. =============================================================================== 29. How to access the Project name from a Groovy Script Test Step? testRunner.testCase.testSuite.project.name (Almost all items have a name property) ============================================================================== 30. How do I save the changes I make to my projects, requests, Test Cases, etc? Soap UI automatically saves everything on exit. If you want to save your projects without exiting (for example if you want to commit your project file to CVS) use the "Save All" option in the main File menu ============================================================================== 31. How to Create a Mock Service? 1. Right-click on one of the SOAP interfaces and selects Generate Mock Service. 2. In the dialog Generate Mock Service you can specify the local port/path for the service you're creating but for the moment just click OK. 3. Enter the name of your Mock Service in the Name dialog and click OK. 4. after creating the Mock Service, you should get a Mock Service with one operation and one request. ============================================================================== 32. What languages are supported? -Groovy and JavaScript ============================================================================== 33. What exactly WSDL document contains? A. It is a document written in XML and used to describe web services. It specifies the location of the service and the operations (or methods) the service exposes. ============================================================================= 34. Few tools used in your project if you used web services. SOAP UI: Test the web service Sometimes some of the back end services might not available, so you can create a mock response and run the web service from the soap UI. Then your program should hit the mock response and you can check the functionality.
  • 8. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com ============================================================================ Restful service calls HTTP PUT =>Create HTTP GET => Retrieve HTTP POST => Update HTTP DELETE => Delete GET: GET is the simplest type of HTTP request method; the one that browsers use each time you click a link or type a URL into the address bar. It instructs the server to transmit the data identified by the URL to the client. Data should never be modified on the server side as a result of a GET request. PUT A PUT request is used when you wish to create or update the resource identified by the URL. DELETE DELETE should perform the contrary of PUT; it should be used when you want to delete the resource identified by the URL of the request. POST POST is used when the processing you wish to happen on the server should be repeated, if the POST request is repeated (that is, they are not idempotent; more on that below). In addition, POST requests should cause processing of the request body as a subordinate of the URL you are posting to. ======================================= HTTP Error messages 200 OK This response code indicates that the request was successful. 201 Created This indicates the request was successful and a resource was created. It is used to confirm success of a PUT or POST request. 400 Bad Requests The request was malformed. This happens especially with POST and PUT requests, when the data does not pass validation, or is in the wrong format. 404 Not Found This response indicates that the required resource could not be found. This is generally returned to all requests which point to a URL with no corresponding resource. 401 Unauthorized
  • 9. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com This error indicates that you need to perform authentication before accessing the resource. 405 Method Not Allowed The HTTP method used is not supported for this resource. 409 Conflicts This indicates a conflict. For instance, you are using a PUT request to create the same resource twice. 500 Internal Server Errors When all else fails; generally, a 500 response is used when processing fails due to unanticipated circumstances on the server side, which causes the server to error out. ============================== Web services testing interview question We can use property transfer to transfer the value from one restful call to another restful from source we select the one restful service from the response from this we can use target and add the property to send value ========================= HTTP status 401: Unauthorized Web Service receives "The request failed with HTTP status 404: Not Found ========================== AJAX Retry-After headers automatically 503 Browsing to any page returns a blank page due to 503 :Service unavailable ================