Understanding SOAP and REST calls The types of web service requests

Slides:



Advertisements
Similar presentations
Siebel Web Services Siebel Web Services March, From
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Snejina Lazarova Senior QA Engineer, Team Lead CRMTeam Dimo Mitev Senior QA Engineer, Team Lead SystemIntegrationTeam Telerik QA Academy SOAP-based Web.
WTX Overview.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Peoplesoft: Building and Consuming Web Services
CS 415 N-Tier Application Development By Umair Ashraf July 6,2013 National University of Computer and Emerging Sciences Lecture # 9 Introduction to Web.
Web service testing Group D5. What are Web Services? XML is the basis for Web services Web services are application components Web services communicate.
Functional Testing of Webservices Presented by Kushan Athukorala.
UNIT-V The MVC architecture and Struts Framework.
Client/Server Architectures
ENTERPRISE JOB SCHEDULER SAJEEV RAMAKRISHNAN 29 AUG 2014.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
C Copyright © 2009, Oracle. All rights reserved. Appendix C: Service-Oriented Architectures.
Using the SAS® Information Delivery Portal
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Enabling Embedded Systems to access Internet Resources.
Copyright © Orbeon, Inc. All rights reserved. Erik Bruchez Applications of XML Pipelines XML Prague, June 16 th, 2007.
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Nadir Saghar, Tony Pan, Ashish Sharma REST for Data Services.
10/25/20151 Single Sign-On Web Service Supervisors: Viktor Kulikov Alexander Sherman Liana Lipstov Pavel Bilenko.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
SOAP-based Web Services Telerik Software Academy Software Quality Assurance.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Representational State Transfer (REST). What is REST? Network Architectural style Overview: –Resources are defined and addressed –Transmits domain-specific.
Mohit Anand, Software Engineer Adobe 1 Selecting GUI Automation Testing Tool for Mobile Domain.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
Dispatching Java agents to user for data extraction from third party web sites Alex Roque F.I.U. HPDRC.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED INTERSTAGE BPM ARCHITECTURE BPMS.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
National College of Science & Information Technology.
12. DISTRIBUTED WEB-BASED SYSTEMS Nov SUSMITHA KOTA KRANTHI KOYA LIANG YI.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Version 0.1 Draft – For Review Murali Mohan Murthy
The Holmes Platform and Applications
Progress Apama Fundamentals
Web Programming Language
JRA2: Acceptance Testing senarious
z/Ware 2.0 Technical Overview
1) CB plugin for Jenkins 2) Requirements Mapping
WEB SERVICES.
Data Virtualization Tutorial… CORS and CIS
AJAX and REST.
Unit – 5 JAVA Web Services
Selenium Automation Framework
Processes The most important processes used in Web-based systems and their internal organization.
PHP / MySQL Introduction
Testing REST IPA using POSTMAN
WEB API.
Lecture 1: Multi-tier Architecture Overview
Module 01 ETICS Overview ETICS Online Tutorials
$, $$, $$$ API testing Edition
Testing RESTful Web APIs
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Integration (API) testing with SoapUI
Distributed System using Web Services
Developing Modern Web Apps
WCF Data Services and Silverlight
Plug-In Architecture Pattern
Presentation transcript:

Understanding SOAP and REST calls The types of web service requests Agenda What is a web service? Understanding SOAP and REST calls The types of web service requests The forms of web service responses Soap UI – Overview & Features Integration with Maven and Jenkins API automation frameworks Security & Performance tests on API Demo ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

What is a WebService? Bluntly speaking, when two devices need to talk to each other and exchange information over a network, the interface used to communicate between them is called a web service Typically a web service comprises of two components: a Service Provider (or Publisher) and a Service Requestor (or Consumer) ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Types of WebServices Big web services – these are largely based on the SOAP standard protocol Uses a communication language called Web Service Definition Language (WSDL) RESTful web services – which is an architectural style, whereas SOAP is a protocol Some of the examples of REST standards are HTTP (yes, our world wide web is built on REST standard), XML, URI and MIME, etc. ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Request and response Interacting with a web service is a two-fold process: we request for desired data; the service responds to our request This kind of simple interaction is called a ‘GET’ method, where the service only transfers information When there is a need for more than a simple retrieve process – like adding an entry to the Database – we can choose the ‘POST’ method that will require us to send a ‘Request Body’ along with the ‘Request URL’ When there is a need to update your data, we can opt for a ‘PUT’ method that instructs the web service to update an existing entry And lastly, when there is a need to erase data, we go for the ‘DELETE’ method ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Types of testing supported Functional, Regression, Load and Security SoapUI - Features Features Comments Types of testing supported Functional, Regression, Load and Security Data mocking Supported Multi-environment support Yes Built on top of JUnit Execution style Sequential and Parallel Types of requests/formats supported SOAP, REST, HTTP, JDBC, JMS, AMF Continuous Integration Integrates with Jenkins Supported build tools Maven, Ant and Bamboo Embedded language Groovy ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

In SoapUI, the hierarchy is as follows: Project Test Suite Test Case Project hierarchy Once a Project name is entered, the new Project gets displayed in the Navigator pane. This is the area that lists the Project hierarchy. In SoapUI, the hierarchy is as follows: Project Test Suite Test Case Test Step ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Being assertive Assertions are checkpoints that decide the pass/fail status of a test step. SoapUI gives us the ability to assert the response from validating the HTTP status code to performing complex looped assertions for every entry in the response body. The assertions in SoapUI are only limited by our ability to handle the scenario with Groovy scripts. ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Integrating with Maven <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>${soapui.version}</version> <configuration> <projectProperties> <projectProperty>external_property=${external_property}</projectProperty> </projectProperties> <soapuiProperties> <property> <name>soapui.scripting.library</name> <value>${project.basedir}/src/main/groovy</value> </property> </soapuiProperties> </configuration> <executions> <execution> <id>*Project-name*</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <projectFile>${soapuiFiles.home.dir}/projects/*project_name*.xml</projectFile> <outputFolder>${soapui.results.dir}/*project_name*</outputFolder> <testFailIgnore>true</testFailIgnore> </execution> </executions> </plugin> Adding the appropriate dependencies and the required plugins will make it easy for us to integrate SoapUI with Maven. ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Getting assisted by Jenkins – Continuous Delivery Once the POM files and properties of the separate modules are supplied to Jenkins, the builds can be triggered – just like any other build-job configuration. ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Choosing the best framework approach Rapid framework - For API with basic validations ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Choosing the best framework approach Script library framework – For API requires dynamic validations & calculations ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Test Data & Response Verification Data Script library framework architecture Test Launcher Test Data & Response Verification Data Resource Bundle Validator Result Logger Script Libraries Excel Adapter Reporting Database Data Access Object ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

What else can SOAP UI do? Security testing on API Performance testing of the API ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

References: http://blog.smartbear.com/apis/understanding-soap-and-rest-basics/ http://theopentutorials.com/post/uncategorized/types-of-web-services-big-and-restful/#Big_web_services http://jsonplaceholder.typicode.com/ ©1996-2016 Aspire Systems, Inc. US | UK | BENELUX | ME | IND

Recap on Verizon Q & A Capture the Web Page Traffic and store in external file format Capture the total page size, Images Sizes, JS (Java Script) sizes, CSS file sizes Need a solution that can work across multiple devices / useragents Selenium with Selenium Proxy Server Java & Test NG POI HAR Reader (Handling HAR Format) IDE - Eclipse Capturing Page, Image, CSS and JS Sizes Implemented the above approach for Desktop Browser Store the Network Traffic in the form of HAR File which can be used by Developers Code is scalable across Windows, Mac and Linux Environments ©1996-2014 Aspire Systems, Inc. US | UK | BENELUX | ME | IND