Royal London Group A group of specialist businesses where the bottom line is always financial sense Get your Oracle app Fit for release Malcolm Leckie.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Advertisements

DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Performance Testing - Kanwalpreet Singh.
Oracle SQL Developer Data Modeler 3.0: Technical Overview March 2011.
AN INTRODUCTION TO PL/SQL Mehdi Azarmi 1. Introduction PL/SQL is Oracle's procedural language extension to SQL, the non-procedural relational database.
Apache Struts Technology
Royal London Group A group of specialist businesses where the bottom line is always financial sense Oracle Statistics – with a little bit extra on top.
Key-word Driven Automation Framework Shiva Kumar Soumya Dalvi May 25, 2007.
World Class Financial Reporting with FRx Report Writer Elisa R. Vick
Introduction to Web Database Processing
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
Peoplesoft: Building and Consuming Web Services
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Tutorial 11: Connecting to External Data
Microsoft Office SharePoint Server Business Intelligence Tom Rizzo Director, Microsoft Office SharePoint Server
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Dynamics AX Technical Overview Application Architecture Dynamics AX Technical Overview.
Oracle Developer Tools for Visual Studio.NET Christian Shay Principal Product Manager Oracle Corporation Prerequisites for presentation:
UNIT-V The MVC architecture and Struts Framework.
RMIS - Building a Research Management Information System at the University of Glamorgan Leanne Beevers & Neil Williams.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
1 INTRO TO BUSINESS COMPONENTS FOR JAVA (BC4J) Matt Fierst Computer Resource Team OracleWorld Session
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Classroom User Training June 29, 2005 Presented by:
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
Do you wish to data load Oracle EBS without programming? Do you wish to extend OAF pages without programming? By Sundar Rathinam Chain-Sys.
JUnit in Action SECOND EDITION PETAR TAHCHIEV FELIPE LEME VINCENT MASSOL GARY GREGORY ©2011 by Manning Publications Co. All rights reserved. Slides Prepared.
M1G Introduction to Database Development 6. Building Applications.
Winrunner Usage - Best Practices S.A.Christopher.
 Chapter 6 Architecture 1. What is Architecture?  Overall Structure of system  First Stage in Design process 2.
Tom Castiglia Hershey Technologies
Microsoft Office Solution Accelerator for Six Sigma – A Case Study in Project Server Customization Brian Smith Program Manager Information Worker New.
I Copyright © 2004, Oracle. All rights reserved. Introduction Copyright © 2004, Oracle. All rights reserved.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Effective Test Driven Database Development Gojko Adzic
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
CERN - IT Department CH-1211 Genève 23 Switzerland t DB Development Tools Benthic SQL Developer Application Express WLCG Service Reliability.
Effective Test Driven Database Development Gojko Adzic
WEP Presentation for non-IT Steps and roles in software development 2. Skills developed in 1 st year 3. What can do a student in 1 st internship.
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
] COREY PEARSON [ ASUG INSTALLATION MEMBER MEMBER SINCE: 2008 CHAVONE JACOBS [ ASUG INSTALLATION MEMBER MEMBER SINCE: 2003 ALLAN FISHER [ ASUG INSTALLATION.
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Session id: Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Introduction to Performance Testing Performance testing is the process of determining the speed or effectiveness of a computer, network, software program.
SharePoint 2007 Business Intelligence October 23 th, 2008 Neil Iversen - Inetium.
MPUG Global December 2 nd 2004 Portland, Oregon Brian Smith, Microsoft Corporation.
Physical Layer of a Repository. March 6, 2009 Agenda – What is a Repository? –What is meant by Physical Layer? –Data Source, Connection Pool, Tables and.
SAS ® Global Forum 2014 March Washington, DC.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
1 Middle East Users Group 2008 Self-Service Engine & Process Rules Engine Presented by: Ryan Flemming Friday 11th at 9am - 9:45 am.
Christian Shay Principal Product Manager
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
Recipes for Use With Thin Clients
Data Virtualization Tutorial: Introduction to SQL Script
UNIT - V STORED PROCEDURE.
PHP / MySQL Introduction
Using JDeveloper.
Chapter 15 Introduction to Rails.
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
DAT381 Team Development with SQL Server 2005
Presentation transcript:

Royal London Group A group of specialist businesses where the bottom line is always financial sense Get your Oracle app Fit for release Malcolm Leckie Technical Designer Scottish Life – part of The Royal London Group 1

Agenda Introduction 2 What is Fit How Royal London use Fit Questions ?

UK’s largest mutual (customer-owned) Life and Pensions provider Multi-brand business run as separate business units 3,040 * employees, primarily UK-based with main offices in Edinburgh, Wilmslow and London £52.2 billion * of funds under management Around 3.6 million customers * About Royal London * As at 31 st March

About Scottish Life Founded in 1881, acquired by Royal London in 2001 Pension specialist Internal business users on two UK sites Core business applications primarily developed in-house including secure web application for external customers and business partners 4

About Me First started using Oracle on Unix in 1987 Been with Scottish Life since 1990 and didn’t start using Oracle again until 2004 Work within the Technical Architecture & Design team Provide specialised technical support for Scottish Life Oracle development teams covering both database and code 5

About the Database Main policy administration application uses Oracle 11r1 database and PL/SQL for business logic Complex application landscape with multiple integrations One production database supporting OLTP during day time and batch during night time – c. 1k concurrent users per hour – c. 1m online transactions per day – c. 350 batch reports per night Multiple concurrent batch streams with complex dependencies 6

About the Applications 7 Windows Web Servers DMZ Internet Internal Network Unix Database Servers Oracle Windows Database Servers MS SQL Windows Application Servers External Users (Financial Advisers, Employers, Employees/ Policyholders) External Business Partners Internal Users Firewall

Royal London Group A group of specialist businesses where the bottom line is always financial sense Why am I here? Moment of madness in February Not to preach why to test To show you how to reduce time spent on regression testing High level overview of the solution we have in place 8

Royal London Group A group of specialist businesses where the bottom line is always financial sense What business issues were we facing Desire to  Improve speed and ease of regression testing  Increase collaborative design and testing  Reduce impact on code quality and confidence due to late requirements 9

Royal London Group A group of specialist businesses where the bottom line is always financial sense In the beginning Development of new application in Java Trying to using an Agile approach Unit testing and test driven development Fit framework for testing – opportunities for PLSQL 10

Royal London Group A group of specialist businesses where the bottom line is always financial sense What is Fit? Framework for Integrated Test, or "Fit", is an open-source tool for automated customer tests. It integrates the work of customers, analysts, testers, and developers. Fit was invented by Ward Cunningham in

Royal London Group A group of specialist businesses where the bottom line is always financial sense 12 Core Java Fixtures Components HTML Output HTML Input User Java Fixtures Input and expected results Interface to the application Results

Royal London Group A group of specialist businesses where the bottom line is always financial sense Where is the code – Java Fixtures? Download from sourceforge Get a single zip file 13

Royal London Group A group of specialist businesses where the bottom line is always financial sense Fit for Java v1.1 : fit-java-1.1.zip Archive Contents In this archive, you will find the following files and directories: fit.jar: The Fit executable and library. license.txt: The Fit license. Fit is licensed under the GPL. readme.html: This file. examples/input/: Sample files that you can run through Fit. examples/output/: What a few sample files look like after they've been run through Fit. examples/eg/: The source code for some example fixtures. spec/input/: The Fit Specification. spec/output/: The Fit Specification after being run on this release. spec/source/: Source code for the fixtures used in the Fit Specification. doc/: Supporting documentation. There's not much here—see the Fit website for the real Fit documentation. source/: The source tree used to build this release. 14

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 15 Integer Arithmetic Basic Arithmetic eg.ArithmeticFixture x y + - * /

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 16. Integer Arithmetic Basic Arithmetic eg.ArithmeticFixture x y + - * / Test Body

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 17 Integer Arithmetic Integer Arithmetic Basic Arithmetic eg.ArithmeticFixture x y + - * / Group Header

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 18 Basic Arithmetic eg.ArithmeticFixture. Integer Arithmetic Basic Arithmetic eg.ArithmeticFixture x y + - * / Test Header and fixture

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 19 x y + - * / Integer Arithmetic Basic Arithmetic eg.ArithmeticFixture x y + - * / Parameter Headers

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File Integer Arithmetic Basic Arithmetic eg.ArithmeticFixture x y + - * / Parameters

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 21

Royal London Group A group of specialist businesses where the bottom line is always financial sense Java Fixture 22 package eg; import fit.*; public class ArithmeticFixture extends PrimitiveFixture { int x=0; int y=0; public void doRows(Parse rows) { super.doRows(rows.more); // skip column heads } public void doCell(Parse cell, int column) { switch (column) { case 0: x = (int)parseLong(cell); break; case 1: y = (int)parseLong(cell); break; case 2: check(cell, x+y); break; case 3: check(cell, x-y); break; case 4: check(cell, x*y); break; case 5: check(cell, x/y); break; default: ignore(cell); break; }

Royal London Group A group of specialist businesses where the bottom line is always financial sense Easy to run To use Fit on your own project use the following command-line: java -classpath fit.jar fit.FileRunner input.html output.html e.g. java -classpath fit.jar fit.FileRunner JavaArith.html results.html You'll see this message: 3 right, 1 wrong, 0 ignored, 0 exceptions 23

Royal London Group A group of specialist businesses where the bottom line is always financial sense Test Output 24

Royal London Group A group of specialist businesses where the bottom line is always financial sense 25 Exceptions Wrong Right Parameters Output

Royal London Group A group of specialist businesses where the bottom line is always financial sense User Friendly? Command line – is not Need a GUI or something similar  FitNesse – Wiki based  Jdeveloper  Eclipse 26

Royal London Group A group of specialist businesses where the bottom line is always financial sense 27 HTML Driver HTML Output Java Fixture Results Explorer view of tests/results HTML Editor

Royal London Group A group of specialist businesses where the bottom line is always financial sense 28 HTML viewer

Royal London Group A group of specialist businesses where the bottom line is always financial sense 29 Java Editor

Royal London Group A group of specialist businesses where the bottom line is always financial sense Other Enhancements 30 Interact with Oracle  Call procedures/functions (standalone or in packages)  Scalar parameters  Ref Cursors Run a folder at a time (groups of tests) Easy to use Flexible environment MI

Royal London Group A group of specialist businesses where the bottom line is always financial sense Interact with Oracle “Out of the box” framework doesn’t support non-java calls DBFit can connect to various databases Extended with own code to provide a flexible solution 31

Royal London Group A group of specialist businesses where the bottom line is always financial sense HTML Driver File 32 fixtures.PackageTester Test pck_sample1 Test Case l call procedure fit_sample1.p_call_1 Iterations IN Output OUT 1 Hello World fixtures.PackageTester call procedure fit_sample1.p_call_1

Royal London Group A group of specialist businesses where the bottom line is always financial sense PLSQL Fixture 33 CREATE OR REPLACE PACKAGE BODY fit_sample1 IS PROCEDURE p_call_1(pn_number IN NUMBER,pv_output OUT VARCHAR2,pv_success OUT VARCHAR2) IS BEGIN pv_success := 'FAILED'; pck_sample1.p_call_1(pn_number => pn_number,pv_output => pv_output); pv_success := 'PASSED'; END p_call_1; END fit_sample1; RL definition of a fixture: Acts as a conduit from the test to the application Handles parameter translation Provides a “success” indicator

Royal London Group A group of specialist businesses where the bottom line is always financial sense Ref Cursors - definition 34 call function fit_table.f_get_data with ref cursor return ref_cursor_col1 ref_cursor_col2 ref_cursor_col3 Success OUT PASSED Function to call Note extra instruction Columns in the ref cursor Normal parameters fixtures.PackageTester Test Ref Cursor Fetch Test Case l..

Royal London Group A group of specialist businesses where the bottom line is always financial sense Ref Cursors - definition 35 ref cursor output ref_cursor_col1 ref_cursor_col2 ref_cursor_col3 ROW Mar 2008 ROW Mar 2008 ROW Mar 2008 fixtures.PackageTester Test Ref Cursor Fetch Test Case l.. Cursor definition 1 row in the table per row expected

Royal London Group A group of specialist businesses where the bottom line is always financial sense Ref Cursors – plsql 36 FUNCTION f_get_data(pv_success OUT VARCHAR2) RETURN SYS_REFCURSOR IS lcu_cursor SYS_REFCURSOR; BEGIN OPEN lcu_cursor FOR 'SELECT ref_cursor_col1,ref_cursor_col2,ref_cursor_col3 FROM datatest ORDER BY ref_cursor_col1 DESC'; pv_success := 'PASSED'; RETURN lcu_cursor; EXCEPTION WHEN OTHERS THEN pv_success := SQLERRM; END f_get_data; INSERT INTO datatest (ref_cursor_col1,ref_cursor_col2,ref_cursor_col3) VALUES ('ROW1','1','12 MARCH 2008'); INSERT INTO datatest (ref_cursor_col1,ref_cursor_col2,ref_cursor_col3) VALUES ('ROW2','2','13 MARCH 2008'); INSERT INTO datatest (ref_cursor_col1,ref_cursor_col2,ref_cursor_col3) VALUES ('ROW3','4','14 MARCH 2008'); Data

Royal London Group A group of specialist businesses where the bottom line is always financial sense Ref Cursor Data 37 SELECT ref_cursor_col1,ref_cursor_col2,ref_cursor_col3 FROM datatest ORDER BY ref_cursor_col1 DESC; REF_CURSOR_COL1REF_CURSOR_COL2REF_CURSOR_COL3 ROW3414/03/2008 ROW2213/03/2008 ROW1112/03/2008

Royal London Group A group of specialist businesses where the bottom line is always financial sense Ref Cursor Output 38 Note the order of the data – it is in the order we specified in the test NOT the order that PLSQL returned

Royal London Group A group of specialist businesses where the bottom line is always financial sense Other Enhancements 39 Interact with Oracle  Call packages and functions  Scalar parameters  Ref Cursors Run a folder at a time Easy to use Flexible environment MI

Royal London Group A group of specialist businesses where the bottom line is always financial sense Run a folder at a time 40 Picks up tests for folder Runs them one at a time Reports results for each test and a summary for the folder

Royal London Group A group of specialist businesses where the bottom line is always financial sense Run a folder at a time 41 Scripts in folderTests

Royal London Group A group of specialist businesses where the bottom line is always financial sense Other Enhancements 42 Interact with Oracle  Call packages and functions  Scalar parameters  Ref Cursors Run a folder at a time Easy to use Flexible environment MI

Royal London Group A group of specialist businesses where the bottom line is always financial sense Easy to Use 43 Testers write the test scripts (in HTML) or generate test scripts using Excel This makes cloning the script for different scenarios as simple as keying the input data and expected results into the spreadsheet Agreement on approach up front Testing primarily done by test and business analysts Programmers write the fixtures in PLSQL Test data centrally stored, is easily cloned and altered. Template driven test script

Royal London Group A group of specialist businesses where the bottom line is always financial sense Test Script Flow 44 Delete data Load in test data This ensures a script is testing what we want, we have to empty any data from previous scripts Prepare the start-point of the test we are running Run code In the case of functions, we can do these in one. Some tests will require that we run something, then display the results afterwards Check results

Royal London Group A group of specialist businesses where the bottom line is always financial sense Other Enhancements 45 Interact with Oracle  Call packages and functions  Scalar parameters  Ref Cursors Run a folder at a time Easy to use Flexible environment MI

Royal London Group A group of specialist businesses where the bottom line is always financial sense Flexible environment 46 Two distinct types of clients 1.Developers & Projects 2.Automatic “continuous” Environment needs to be easy built and maintained Need to consider code and data Easily built Self contained

Royal London Group A group of specialist businesses where the bottom line is always financial sense Developer/Project Environment 47 HTML Output HTML Scripts Schema Build Process schema Datastore

Royal London Group A group of specialist businesses where the bottom line is always financial sense Automatic “continuous” Environment 48 HTML Output HTML Scripts Schema Update Process Datastore schema

Royal London Group A group of specialist businesses where the bottom line is always financial sense Automatic “continuous” Environment Maintained as part of the normal shipping process Schema set up matches production Locked down Runs different suites of tests Centrally reported Managed by Test Hub 49

Royal London Group A group of specialist businesses where the bottom line is always financial sense Datastore Contains two types of data  Static business data  Policy/Scheme test data Repository of data to allow repeatable tests Can be updated/cloned to meet testing needs 50

Royal London Group A group of specialist businesses where the bottom line is always financial sense Other Enhancements 51 Interact with Oracle  Call packages and functions  Scalar parameters  Ref Cursors Run a folder at a time Easy to use Flexible environment MI

Royal London Group A group of specialist businesses where the bottom line is always financial sense MI 52

Royal London Group A group of specialist businesses where the bottom line is always financial sense MI 53

Royal London Group A group of specialist businesses where the bottom line is always financial sense What has Fit done for us? Reduced production failures – caught them early Made regression testing easier Lessens risk of late changes Testers and developers working together Provide a large reusable regression suite 54

Royal London Group A group of specialist businesses where the bottom line is always financial sense What has Fit done for us? Current test count - c8600 Run approx 1200 scripts a night (6000 at a weekend) Equates to 350,000 checks per night (1,100,000 at a weekend) All new PLSQL code must have a corresponding Fit suite 55

Royal London Group A group of specialist businesses where the bottom line is always financial sense Summary Fit is easy to use and provides lots of opportunities Geared towards test/business users Framework can be easily extended to do what you need The software is free – even the Eclipse GUI Provided business benefits with improved quality Large reusable regression suite 56

Royal London Group A group of specialist businesses where the bottom line is always financial sense Any questions? Malcolm Leckie

Royal London Group A group of specialist businesses where the bottom line is always financial sense URLs Fit : Fit Download : FitNesse : Jdeveloper : Eclipse : DBFit :