Automating Testing and Configuration Data Migration in OTM/GTM Projects using Open Source Tools By Rakesh Raveendran Oracle Consulting



Similar documents
AUTOMATING THE WEB APPLICATIONS USING THE SELENIUM RC

Oracle Application Express MS Access on Steroids

Certified Selenium Professional VS-1083

Continuous Integration

Exploring Web Testing Tools For Use In A Classroom

SOFTWARE TESTING TRAINING COURSES CONTENTS

Selenium Automation set up with TestNG and Eclipse- A Beginners Guide

PEtALS Quick Start. PEtALS Team Roland NAUDIN - February

Web Service Testing. SOAP-based Web Services. Software Quality Assurance Telerik Software Academy

Test Automation Integration with Test Management QAComplete

OTM Performance OTM Users Conference Jim Mooney Vice President, Product Development August 11, 2015

soapui Product Comparison

MIS Export via the FEM transfer software

Module 4: File Reading. Module 5: Database connection

Oracle Database Cloud Services OGh DBA & Middleware Day

GLOBAL JOURNAL OF ENGINEERING SCIENCE AND RESEARCHES

Oracle Service Bus Examples and Tutorials

Regression & Load Testing BI EE 11g

Chapter 1: Web Services Testing and soapui

Magento Test Automation Framework User's Guide

A-Team Tech Talk Series. SOA Unit Testing. Olivier LeDiouris, Oracle A-Team

Application Testing Suite: A fully Java-based software testing platform for testing Oracle E-Business Suite and other web applications

Integration Knowledge Kit Developer Journal

Viewpoint. Choosing the right automation tool and framework is critical to project success. - Harsh Bajaj, Technical Test Lead ECSIVS, Infosys

Continuous Delivery for Alfresco Solutions. Satisfied customers and happy developers with!! Continuous Delivery!

Chapter 24: Creating Reports and Extracting Data

Compiere ERP & CRM Installation Instructions Windows System - EnterpriseDB

Software Automated Testing

Application Testing Suite Oracle Load Testing Introduction

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

Test Challenges and Approaches With SaaS and PaaS. Dr. Ganesh Neelakanta Iyer Principal QA Engineer Progress Software

Regression & Load Testing BI EE 11g

<Insert Picture Here> Application Testing Suite Overview

Automation using Selenium

GUI Test Automation How-To Tips

Automated testing of CS UI using Selenium and Python

Various Load Testing Tools

Install guide for Websphere 7.0

T320 E-business technologies: foundations and practice

Automated Integration Testing & Continuous Integration for webmethods

WebLogic Server Foundation Topology, Configuration and Administration

QA Tools (QTP, QC/ALM), Selenium with Java, Mobile with Automation, Unix, SQL, SOAP UI

6.2 Reporting BIPublisher Improvements

Agile Web Service and REST Service Testing with soapui

Oracle Data Integrator 11g: Integration and Administration

Top 10 Oracle SQL Developer Tips and Tricks

OpenTOSCA Release v1.1. Contact: Documentation Version: March 11, 2014 Current version:

Consuming and Producing Web Services with Web Tools. Christopher M. Judd. President/Consultant Judd Solutions, LLC

Dynamic Decision-Making Web Services Using SAS Stored Processes and SAS Business Rules Manager

QEx Whitepaper. Automation Testing Pillar: Selenium. Naveen Saxena. AuthOr:

DESIGN OF AUTOMATION SCRIPTS EXECUTION APPLICATION FOR SELENIUM WEBDRIVER AND TestNG FRAMEWORK

Tool-Assisted Knowledge to HL7 v3 Message Translation (TAMMP) Installation Guide December 23, 2009

WebLogic Server Administration

Automate Your BI Administration to Save Millions with Command Manager and System Manager

Unit Testing webmethods Integrations using JUnit Practicing TDD for EAI projects

Automated tests on websites using Selenium-IDE.

BEST WEB PROGRAMMING LANGUAGES TO LEARN ON YOUR OWN TIME

NGASI Shared-Runtime Manager Administration and User Guide WebAppShowcase DBA NGASI

Introduction to Testing Webservices

Testing. Chapter. A Fresh Graduate s Guide to Software Development Tools and Technologies. CHAPTER AUTHORS Michael Atmadja Zhang Shuai Richard

Geotech AEMS Data Centre User Guide

What's New in ActiveVOS 9.1

CloudBees Continuous Integration and Test with Appvance Enterprise August 28, 2013 Frank Cohen, (408)

SMS for Outlook. Installation, Configuration and Usage Guide

Umbraco Courier 2.0. Installation guide. Per Ploug Hansen 5/24/2011

Don t get it right, just get it written.

IBM Rational Asset Manager

Aspire Systems - Experience in Digital Marketing and Social Media

SOA Solutions & Middleware Testing: White Paper

Performance Analysis of webmethods Integrations using Apache JMeter Information Guide for JMeter Adoption

MarathonITE. GUI Testing for Java/Swing Applications

BDD FOR AUTOMATING WEB APPLICATION TESTING. Stephen de Vries

Enterprise Service Bus

Installation Instructions Release Version 15.0 January 30 th, 2011

V7 Reporting. Highlights

Test Automation -Selenium

AquaLogic ESB Design and Integration (3 Days)

Selenium An Effective Weapon In The Open Source Armory

Compiere 3.2 Installation Instructions Windows System - Oracle Database

Things to consider before you do an In-place upgrade to Windows 10. Setup Info. In-place upgrade to Windows 10 Enterprise with SCCM

SDK Code Examples Version 2.4.2

Oracle to SQL Server 2005 Migration

PrintSuperVision 4.0. Enterprise and Professional Editions. Installation, Configuration and Users Guide

An Oracle White Paper May Oracle Tuxedo: An Enterprise Platform for Dynamic Languages

ActiveVOS Server Architecture. March 2009

HP OO 10.X - SiteScope Monitoring Templates

AgencyPortal v5.1 Performance Test Summary Table of Contents

Load Testing with JMeter

Magaya Software Installation Guide

Expresso Quick Install

NS DISCOVER 4.0 ADMINISTRATOR S GUIDE. July, Version 4.0

AdminToys Suite. Installation & Setup Guide

ITG Software Engineering

IBM Rational Web Developer for WebSphere Software Version 6.0

Subscription Content Import Guide

Transcription:

Automating Testing and Configuration Data Migration in OTM/GTM Projects using Open Source Tools By Rakesh Raveendran Oracle Consulting

Agenda Need Desired End Picture Requirements Mapping Selenium Testing Tool Soap UI Testing Tool Apache Ant based config migration Q&A

Need for Automating Testing and Configuration Data Migration Testing Testing is never ending Team size varies Impact of Testing due to delays Accuracy Test Data Generation Load Testing and Performance Tuning Configuration Data Migration Version control of Configuration data Selective Config Migration Multiple phases of projects New Modules GTM Fleet Management

Desired End Picture DEV Master Domain* * Master Domain can also be maintained in a separate server UAT PROD Client Domain Client Domain Client Domain Extract From Master Domain Complete Config Migration Selective Config (Agent) Migration Version Support Integration to Client Version Control tool to version control config data Update Client Domain Convert Master Domain Data to Client Domain and Update Regression Test Perform Regression Testing (Only in Test Environments) Report Agent Configuration Testing

Requirement and Tool Mapping Requirement Tool What it Does Resource UI Testing Selenium Web UI Testing http://seleniumhq.org/ Data Driven UI Testing TestNG Data Driven Selenium Testing http://testng.org/ doc/index.html Integration Unit Testing Functional Testing Regression Testing Load Testing Extracting Config Data Converting Config Data from One Domain to another Executing OTM python scripts Integrating with client Version Control Tool Executing automated test suite (SoapUI, Selenium+TestNG) Executing XSL transformation to generate customization report Converting data from one domain to another SOAP UI OTM Python Scripts Functional Testing/Integration Unit Testing Extracts data into CSV or XML http://www.soapu i.org/ Apache Ant Build Automation Tool http://ant.apache.org/

Selenium Selenium is a suite of tools to automate web testing Selenium has a IDE which is a Firefox add-on To install Selenium download and install the Firefox add-on from seleniumhq.org

Selenium IDE 5. Playback Test Suite for Testing 4. Control Speed 1. Record UI Actions to create Test Case 3. Option to create multiple Test Cases and group them into Test Suite 2. Option to Edit the Test Case

Selenium IDE Display the Result of Testing Tips for OTM Try to use the direct URL to finder screen (Screen Set )to avoid menu changes and Selenium is more efficient with single Window than multiple frame. Prefer Always open in same window as Selenium is not that efficient with multiple windows Introduce delays using setspeed("500") and use waitforpagetoload(" 30000") and AndWait actions

Selenium IDE script generation Export Test Case in a language of your choice Java, Python, PHP, Ruby etc

Selenium RC + TestNG Selenium RC is a tool to run Selenium test case using standalone scripts Supports Multiple Browsers and scripting language Test Case script template is generated using IDE TestNG is java and XML based Test Framework TestNG has standard functions for SeleniumRC Combination of SeleniumRC+TestNG ideal for Data Driven testing( Data in Spreadsheet etc)

Data Driven Testing using Selenium RC+Test NG <suite name="suite" parallel="none"> <parameter name="selenium.host" value="localhost" /> <parameter name="selenium.port" value="1235" /> <parameter name="selenium.browser" value="*iexplore" /> <parameter name="selenium.url" value="http://consapp07/" /> <parameter name= file.location" value= c:/otm/test/" /> <test name="test" preserve-order="false"> <classes> The TestNG program uses Data from spreadsheet and calls Selenium

SoapUI Free and Open Source Functional Testing Tool Started as a web service based SOA testing tool Good graphical interface and powerful features Wide user community Has licensed commercial version (SoapUIPro)

SoapUI for testing in OTM projects Leverage integration framework of OTM Can help OTM projects with the following testing needs Integration Unit Testing Functional Testing Regression Testing Load Testing

Setup Import OTM/GTM WSDL file to create project (OTM/GTM WSDL Can be obtained from Business Process Automation > Integration > Integration Manager > Retrieve WSDLs. You may have to Increase JVM memory for WSDL to load Note: The JVM parameter can be modified by editing the soapui.bat file under the bin folder and editing the following line and making the change as highlighted in this case it is set to 2GB set JAVA_OPTS=-Xms2g -Xmx2g -Dsoapui.properties=soapui.properties "- Dsoapui.home=%SOAPUI_HOME%\"

SoapUI with Sample Test Case

Test Case The Transmission should have the namespace (xmlns)properly defined Enclose the OTM Transmission within a soap envelope Properties are used to generate key fields

Scripting in Soap UI Java based scripting language Groovy is used Helps with generating random numbers, dates and other data to be used in testing Can also be used to read data from spreadsheet for data driven testing

SoapUI Assertion Xpath and Xquery based assertion You can compare on status, cost, weight, volume etc You can also check if an element is present in XML and the number of lines etc

SoapUI Report Basic Report using Free SoapUI version Report Using Commercial SoapUIPro Version

SoapUI for load testing Any Test Case can be configured to be load tested Right click on test case and click on new load test to start a load test The test strategy can be changed according to requirement

SoapUI for load Testing Soap UI Webservice OTM Application Server OTM Performance Reports(EventDiagnostic etc), top,sar AWR. ADDM, SQL Trace DB

SoapUI in OTM projects Create Unit Test Cases during Integration Mapping Test Case can be reused for Load Testing Data Driven Testing is possible with scripting MockService can be used for creating Test Stubs Link Unit Test cases already created to create Functional Test Cases Use Topic Interface to execute Bulk Plan using Integration

Configuration Migration using Apache Ant ClientUtil.py OTM python script provides option to extract and load data from OTM tables Uses ant scripts to call ClientUtil.py and uses standard task available with ant for the following Integration to Version Control tool Integration to testing tool for regression testing Automating manual processes

Apache Ant Open source build automation tool Standard Tasks available to integrate with Version Control tools and Testing Tools Has various standard tasks available to automate manual process and execute scripts XML Build file is created with the logic to automate the config migration

Setup Install Python and OTM Python Scripts (Refer Configuring Python on a Client PC section in Admin Guide) Install latest version of Apache Ant(http://ant.apache.org) Install pyanttasks (http://code.google.com/p/pyanttasks/) Create an ant build.xml file with the Configuration tables to be exported and imported and other tasks

Sample Logic of the Ant Build File Run Ant Task s to extract data from Master Domain using OTM Scripts Run Ant task to clean up any table files which require special handling like removing domain hardcoding etc Execute Ant Task to integrate with client version control tool Run Ant Tasks to update transactional client domain Run XSLT using Agent data XML s to get Documents -----------------Restart OTM------------- Execute automated test cases

Apache Ant Build File

Ant Task for importing and exporting into a table Refer Data Management Guide for ClientUtil.py usage Exporting Data Importing Data

Calling Version control and Testing Tool using ant Calling Version control and Testing tool

Closing Thoughts Each of the Tools can be used by itself Evaluate Commercial Tools if you have option Put a process in place for automating testing Check license of open source tools if you are planning to use them Have a long term view with testing requirement Each of the tools have lot of training material in the internet (youtube.com has videos on how to use)