Function Test Framework

Slides:



Advertisements
Similar presentations
Overview of Twitter API Nathan Liu. Twitter API Essentials Twitter API is a Representational State Transfer(REST) style web services exposed over HTTP(S).
Advertisements

CHAPTER 10 COMMON PROGRAMMING TECHNIQUES. SENDING VALUES TO A SCRIPT Hidden form input type: Depending on the method, $_POST['do'] or $_GET['do'] will.
General introduction to Web services and an implementation example
1.  Understanding about How to Working with Server Side Scripting using PHP Framework (CodeIgniter) 2.
Peoplesoft: Building and Consuming Web Services
Integrating Complementary Tools with PopMedNet TM 27 July 2015 Rich Schaaf
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
November 13, 2008 Ohio Information Security Forum Attack Surface of Web Applications James Walden Northern Kentucky University
Building Search Portals With SP2013 Search. 2 SharePoint 2013 Search  Introduction  Changes in the Architecture  Result Sources  Query Rules/Result.
GET Examples – db.org/sops/3/experimental_conditions/55http://seek.sysmo- db.org/sops/3/experimental_conditions/55 –
OXygen XML Editor Support for eXist DB XQuery debugging. Stefan Vasile
SDMX Web Services the JSON version Sami Airo & Gerard Salou.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
Web Database Programming Week 7 Session Management & Authentication.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
XRX Basic CRUDS Create, Read, Update and Delete and Search XML Data Date: May 2011 Dan McCreary President Dan McCreary & Associates
CONTENTS  Definition And History  Basic services of INTERNET  The World Wide Web (W.W.W.)  WWW browsers  INTERNET search engines  Uses of INTERNET.
WStore Programmer Guide Offering management integration.
ICM – API Server & Forms Gary Ratcliffe.
RESTful Web Services What is RESTful?
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Web Services Essentials. What is a web service? web service: software functionality that can be invoked through the internet using common protocols like.
WStore Programmer Guide Resources management integration.
Azure Active Directory is becoming one of, if not the, primary user identity management services for cloud applications. One of Azure Active Directory's.
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
Version 0.1 Draft – For Review Murali Mohan Murthy
Bulk Loading Documents* into Windchill
ONAP CLI (Command-Line Interface ) Architecture
Open-O CLI (Command-Line Interface ) Architecture
ASP.NET Programming with C# and SQL Server First Edition
Integrating ArcSight with Enterprise Ticketing Systems
- Sai Divya Panditi - Priyanka Yechuri
Building production ready APIs with ASP.NET Core 2.0
Azure Identity Premier Fast Start
Hypertext Transfer Protocol
API Security Auditing Be Aware,Be Safe
WEB SERVICES From Chapter 19 of Distributed Systems Concepts and Design,4th Edition, By G. Coulouris, J. Dollimore and T. Kindberg Published by Addison.
z/Ware 2.0 Technical Overview
Node.js Express Web Services
AJAX and REST.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to CodeIgniter (CI)
What is REST API ? A REST (Representational State Transfer) Server simply provides access to resources and the REST client accesses and presents the.
Getting web pages First we need to get the webpage by issuing a HTTP request. The best option for this is the requests library that comes with Anaconda:
Introduction to Persistent Identifiers
Test Case Structure Test Case Module(depend on framework) MocoServer
NA4 Test Team Status Test meeting, 07/09/04
Testing REST IPA using POSTMAN
WEB API.
The Re3gistry software and the INSPIRE Registry
Web Systems Development (CSC-215)
Cognitive Service in AR platform.
Chengyu Sun California State University, Los Angeles
AJAX CS-422 Dick Steflik.
WEB SERVICES From Chapter 19, Distributed Systems
CS5220 Advanced Topics in Web Programming Secure REST API
Rational Publishing Engine RQM Multi Level Report Tutorial
PHP Forms and Databases.
Generate Header & URL Install PostMan for Chrome (looks like a man with a jetpack) Under the auth tab, set it to basic Put in the admin username and password.
Web APIs In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application.
EMAP Read Only User Training
Web Application Interfaces (APIs)
Web-Services and RESTful APIs
Consuming Web Services with 2E Generated Objects
D Guidance 26-Jun: Would like to see a refresh of this title slide
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Function Test Framework VNF VNF TEST SCRIPTS TELNET LIBRARY ?? (NOT DONE) OPEN-O Robot Framework RPC VNF SSH LIBRARY ?? (NOT DONE) REST LIBRARY (DONE) VNF Developed a REST library to easily write REST requests using the framework generated Keywords. (Details: Next Slides) REST Library replaces the variables and sends the request and validates the response and returns the required value back to the robot framework user. Similarly we need to develop Telnet and SSH Libraries ? What are the requirements?? VNF

Keywords – REST Library Send REST and Get Value (Test File, Return Variable) Send the rest operation and get the return value or any desired value. Test File contains the request and expected output. Replace value and Send REST (Test File, Map of Variables and Values) Replace the variables in Test File and send the rest request.

Expected Response (JSON Schema) SAMPLE TEST FILE { "request": { "uri": "http://{MSB_IP}/openoapi/extsys/v1/sdncontrollers/", "method": "post", "headers": { "Content-Type": "application/json" }, "json": "name":"DCController12", "vendor": "huawei", "version": "V200R001C00", "description": "eeee", "type": "openstack", "url": "http://192.168.99.2:12306", "userName": "admin", "password": "password", "domain": "domain", "tenant": "admin" } "response": { "status": 201, "json": { "type": "object", "properties": { "sdnControllerId": { "type": "string" "required": ["sdnControllerId"] Request Header & URL Request Data Expected Response (JSON Schema)

SAMPLE TEST CASE Library Remote http://127.0.0.1:8271 Library Collections *** Variables *** ${dc_controller_create} jsoninput/create_input.json ${dc_controller_delete} jsoninput/delete.json ${dc_controller_update} jsoninput/update.json ${dc_controller_getbyid} jsoninput/getbyid.json ${dc_controller_getall} jsoninput/getall.json *** Test Cases *** Create Controller [Documentation] Create controller and get controllerId ${id} = Send REST and Get Value ${dc_controller_create} sdnControllerId Set Suite Variable ${id} Update Controller [Documentation] Update Controller information ${updmap}= Create Dictionary sdnControllerId=${id} Replace value and Send REST ${dc_controller_update} ${updmap} Set Suite Variable ${updmap} Get Controller By Id [Documentation] Get Controller information by controller Id Replace value and Send REST ${dc_controller_getbyid} ${updmap} Get All Controllers [Documentation] Get All Controller Information in ESR database ${getall}= Create Dictionary null=null Replace value and Send REST ${dc_controller_getall} ${getall} Delete Controller By Id [Documentation] Delete controller information by Id ${delmap}= Create Dictionary sdnControllerId=${id} Replace value and Send REST ${dc_controller_delete} ${delmap}