Web Service Testing With .Net

Slides:



Advertisements
Similar presentations
Web Services – The Tools We Use. HTML Editors Notepad.
Advertisements

Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
XPointer and HTTP Range A possible design for a scalable and extensible RDF Data Access protocol. Bryan Thompson Presented to the RDF Data Access.
WHO AM I? REST? Dissertation by Roy Fielding 2000 Architectural Styles and the Design of Network-based Software Architectures ReST = Representational.
Outline 1/3 PHA Client 1.Overall Architecture 2.Client PHA Setup 1.Open ADT 2.Edit Android Properties Android API 17 3.Setup Android Virtual Device.
using SharePoint Automation Services;
Status Enterprise System Overview. What is Status Enterprise? Status is an HMI/SCADA system with live and historical data, trending, alarming, web and.
ADVANTAGE WEBAPI PETER FUNK SOFTWARE ENGINEER, ADVANTAGE R&D MAY 20, 2011.
The Apache Web Server  Started in April 1996 as an open source multiplatform web server (Windows, FreeBSD, UNIX, and Linux compatible).  Now the world’s.
06 | Implementing Web APIs Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Beyond the UI Using Tools to Improve Testing Jeremy Traylor
Configuration Management and Server Administration Mohan Bang Endeca Server.
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
Python and REST Kevin Hibma. What is REST? Why REST? REST stands for Representational State Transfer. (It is sometimes spelled "ReST".) It relies on a.
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Or, Hey can’t we just do it using HTTP for the envelope?
Consuming REST Services from C# SoftUni Team Technical Trainers Software University
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
Chapter 7 Using Custom Tag Libraries and the JSP Standard Tag Library.
API Crash Course CWU Startup Club. OUTLINE What is an API? Why are API’s useful? What is HTTP? JSON? XML? What is a RESTful API? How do we consume an.
Building a Web API for browser/JSON clients.
Philip Repsher October 29 th, 2008 Or Maybe November 3 rd, 2008.
06 | HTTP Services with Web API Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
Really Useful Web Services
Feeling RESTful? Well, first we’ll define a Web Service –A web page meant to be consumed by a computer via an autonomous program as opposed to a web browser.
WebApi: What is it? How can I use it? Guy In Front of the Whittaker.
Creating REST Services with WCF and EF. About Me: Architect with CEI > concentration is ALM practice. 10 years experience developing with Microsoft Tools.
Windows App Studio Windows App Studio is the tool that makes it fast and easy to build Windows 10 apps. It’s accessible from any device with a browser.
The Mechanics of HTTP Requests and Responses and network connections.
1 © 1999, Cisco Systems, Inc. 1293_07F9_c1 LocalDirector Version3.1.
Building Azure Mobile Apps
CS3220 Web and Internet Programming RESTful Web Service
Progress Apama Fundamentals
Building Azure Web Apps
Fundamental of Databases
ASP.NET Integration Testing
Node.js Express Web Applications
Image Recognition Integration Server
Microsoft /17/2018 4:24 AM BRK4012 Dive deep on Skype Web SDK & Skype for Business App SDK - Build apps across Web, IOS & Android Srividhya Chandrasekaran Amit.
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Node.js Express Web Services
Programming Assignment #1
GF and RS, Dept. of CS, Mangalore University
Networks Problem Set 1 Due Oct 3 Bonus Date Oct 2
Introduction Web Environments
Debugging Your Website with Fiddler and Chrome Developer Tools
Reliable Services Jeffrey Richter Microsoft Azure Service Fabric.
Microsoft Bot Framework: changing how we communicate with users
Office 365 Development.
Testing REST IPA using POSTMAN
WEB API.
Slides and images stolen from “real” .NET Conf. presenters
DWR: Direct Web Remoting
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
03 | Building a Backend with Socket.IO and Mongo
Testing RESTful Web APIs
Building HTTP services for modern client apps
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Building production-ready APIs with ASP.NET Core 2.2
Introduction to .NET Florin Olariu
Leveraging ArcGIS Online Elevation and Hydrology Services
Python and REST Kevin Hibma.
Techniques to Invoke Web Services from SAS
WCF Data Services and Silverlight
NEECOM – May 22, 2019 Todd L Gould, CEO
.NET Framework V3.5+ & RESTful web services
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Web Service Testing With .Net 3.16.16 Web Service Testing With .Net Troy Walsh

Overview Web service primer Web service testing tools Microsoft.AspNet.WebApi.Client overview Basic usage Deep dive Takeaways Questions References

What is a Web Service Machine to machine communication using web technologies Client Client Web Server Client Client Client

Request Request URI (Universal Resource Identifier) Header Method Service endpoint *Query string Header Method Get Post/Put Delete *Content/media types *Body

Response Response Status Code Description Header *Body

Web Service Call Header Body Web Server Client Header Status Body

Web Service Clients Popular clients Ready! API (Java based tool) RESTClient (Firefox add-in) Advanced REST client (Chrome extension) Fiddler, Wireshark (diagnostic tools) Microsoft.AspNet.WebApi.Client (C# library) Plus more

Why Microsoft.AspNet.WebApi.Client Real world usage Supported by Microsoft .Net Serialization Licensing/cost Available via Nuget “Easy” to work with

Why Not Microsoft.AspNet.WebApi.Client Already invested in another tool Not a .Net shop Requires development skill Extra work to do negative testing

Basic Usage // Setup http client HttpClient client = new HttpClient(); client.BaseAddress = new Uri("http://magenicautomation.azurewebsites.net"); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("text/plain")); // Send the request and get back the response HttpResponseMessage response = client.GetAsync("/api/String/1").Result; string result = response.Content.ReadAsStringAsync().Result;

Deep Dive Basic setup Data driving Framework buildout Serialization Models Media type formatters Async Configuration Parallelization

Takeaways Powerful Requires development Not right for every project .Net Serialization Parallelization Requires development Not right for every project

Questions?

References http://www.asp.net/web-api/overview/advanced/calling-a-web-api-from- a-net-client https://msdn.microsoft.com/en-us/library/hh191443.aspx https://msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.110).aspx http://www.newtonsoft.com/json/help/html/Introduction.htm http://callumhibbert.blogspot.gr/2009/07/data-driven-tests-with- mstest.html https://en.wikipedia.org/wiki/Web_service http://www.asp.net/web-api/overview/security/individual-accounts-in- web-api