INFSO-RI-223782 JRA2: Testing senarious ETICS AH meeting Budapest, 22-24 Iune 2009 Eva Takacs, Jozsef Kuti, András Milassin 4D Soft.

Slides:



Advertisements
Similar presentations
Vincent Massol, 1 st December 2006 Quality with Maven2.
Advertisements

TSpaces Services Suite: Automating the Development and Management of Web Services Presenter: Kevin McCurley IBM Almaden Research Center Contact: Marcus.
Introduction to Maven 2.0 An open source build tool for Enterprise Java projects Mahen Goonewardene.
Web Toolkit Julie George & Ronald Lopez 1. Requirements  Java SDK version 1.5 or later  Apache Ant is also necessary to run command line arguments 
® IBM Software Group © 2010 IBM Corporation What’s New in Profiling & Code Coverage RAD V8 April 21, 2011 Kathy Chan
Test Automation Framework Ashesh Jain 2007EE50403 Manager Amit Maheshwari.
Roadmap to Continuous Integration Testing and Benefits Gowri Selka, Walgreens Natalie Koltun, Walgreens May 20th, 2014 ©2013 Walgreen Co. All rights reserved.
Server-Side vs. Client-Side Scripting Languages
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
1 Ant – Another Neat Tool Representation and Management of Data on the Internet.
SC7 WG6 Rome Engineering Ingegneria Informatica S.p.A. INFSO-RI Isabel Matranga ETICS Automated Building,Testing and Quality Assurance.
Tomcat Configuration A Very, Very, Very Brief Overview.
Java web development Servlet & Java server pages.
CSE 403 Lecture 11 Static Code Analysis Reading: IEEE Xplore, "Using Static Analysis to Find Bugs" slides created by Marty Stepp
Maven & Bamboo CONTINUOUS INTEGRATION. QA in a large organization In a large organization that manages over 100 applications and over 20 developers, implementing.
WorkPlace Pro Utilities.
INFSO-RI Quality Assurance with ETICS – multi- node automated testing CGW 09 M.Zurek, A. A. Rodriguez, A. Aimar, A. di Meglio, L. Dini CERN Krakow,
MAVEN-BLUEMARTINI Yannick Robin. What is maven-bluemartini?  maven-bluemartini is Maven archetypes for Blue Martini projects  Open source project on.
Created by the Community for the Community BizTalk & Build.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
LDS Account Integration. Disclaimer This is a training NOT a presentation. – Be prepared to learn and participate in labs Please ask questions Prerequisites:
AUTOBUILD Build and Deployment Automation Solution.
INFSO-RI D SOFT's exploitation plan Budapest, 23 June 2009.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
The In’s and Out’s of the IIS 6.0 Migration Tool The In’s and Out’s of the IIS 6.0 Migration Tool Chris Adams Web Platform Supportability Lead Microsoft.
INFSOM-RI Juelich, 10 June 2008 ETICS - Maven From competition, to collaboration.
INFSO-RI Module 01 ETICS Overview Alberto Di Meglio.
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
INFSO-RI Module 01 ETICS Overview Etics Online Tutorial Marian ŻUREK Baltic Grid II Summer School Vilnius, 2-3 July 2009.
Connect. Communicate. Collaborate The Installation of RRD Measurement Archive (MA) Roman Łapacz, PSNC 27 th September, 2006 SEEREN2 Summer School, Heraklion.
Shannon Hastings Multiscale Computing Laboratory Department of Biomedical Informatics.
Ant & Jar Ant – Java-based build tool Jar – pkzip archive, that contains metadata (a manifest file) that the JRE understands.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
Ibm.com /redbooks © Copyright IBM Corp All rights reserved. WP07 ITSO iSeries Technical Forum WebSphere Portal Express– Installation, Configuration.
INFSO-RI Module 05 The ETICS Plugins and Compliance Analysis Alberto Di Meglio.
PwC New Technologies New Risks. PricewaterhouseCoopers Technology and Security Evolution Mainframe Technology –Single host –Limited Trusted users Security.
Confidential Continuous Integration Framework (CIF) 5/18/2004.
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
Software Development COMP220/COMP285 Seb Coope Introducing Ant These slides are mainly based on “Java Development with Ant” - E. Hatcher & S.Loughran.
Conference name Company name INFSOM-RI Speaker name The ETICS Job management architecture EGEE ‘08 Istanbul, September 25 th 2008 Valerio Venturi.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
1 Service Creation, Advertisement and Discovery Including caCORE SDK and ISO21090 William Stephens Operations Manager caGrid Knowledge Center February.
GLite build and integration system Building and Packaging Robert HARAKALY
XmlBlackBox The presentation Alexander Crea June the 15st 2010 The presentation Alexander Crea June the 15st 2010
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
Chapter 1 Introducing Ant. What is ant? Ant is a build tool  Automate the tasks of compiling code, running test, and packaging the results for redistribution.
INFSOM-RI The ETICS Web Portal WP5 activity Tomasz Kokoszka CERN/WP5.
INFSOM-RI WP 4 : Testing Tools and Methodologies Status Report ETICS Review – 15 February 2008 Éva Takács (4D SOFT)
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
ETICS All Hands meeting B ologna, October , 2006 WP4 Test and Metrics Plugin Framework (WP4) (WP4) Eva TAKACS.
Managing deployment and activation of Web Applications in a distributed e-Infrastructure EGI Technical Forum September 2011 Lyon
(1) Code Walkthrough robocode-pmj-dacruzer Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of.
INFSO-RI JRA2 Test Management Tools Eva Takacs (4D SOFT) ETICS 2 Final Review Brussels - 11 May 2010.
INFSOM-RI Training: Build using the ETICS Service The ETICS Build Process Alberto Di Meglio ETICS Project.
INFSO-RI JRA2: Status presentation ETICS AH meeting Budapest, Iune 2009 Eva Takacs, 4D Soft.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
M.-E. Bégin¹, S. Da Ronco², G. Diez-Andino Sancho¹, M. Gentilini³, E. Ronchieri ², and M. Selmi² ¹CERN, Switzerland, ² INFN-Padova, Italy, ³INFN-CNAF,
SCI-BS is supported by the FP7 Capacities Programme under contract nr RI Quality assurance in SCI-BUS project by applying agile testing practices.
Unit Testing.
JRA2: Acceptance Testing senarious
Plan What is Maven ? Links : mvn command line tool
JRA2 – TEST MANAGEMENT TOOLS
Overall Architecture and Component Model
Plug-in Framework ETICS All Hands – October 2006
J2EE Application Development
Module 01 ETICS Overview ETICS Online Tutorials
Presentation transcript:

INFSO-RI JRA2: Testing senarious ETICS AH meeting Budapest, Iune 2009 Eva Takacs, Jozsef Kuti, András Milassin 4D Soft

INFSO-RI Overview ETICS testing Services JRA2 tasks GWT Deployment scenario Web services tests Transition to multinode Test Tool Registration System – new developments Conclusion 2

INFSO-RI ETICS Testing Services In terms of testing services ETICS provides Test case/suites/scenarious execution environment able to automate test processes (some of the key words: etics-build, etics-test, target commands, properties, dependency mechanism, plugin framework, profiles) Plugin framework allowing the extensability of the framework with specialised tools Plugins – test tools included in the plugin framework 3

INFSO-RI New ETICS Testing Services JRA2 tasks Test Tool Registration System mechanism to register test tools as plugins a high level, web based registration mechanism to add test tools as plugins to extend the ETICS execution framework The output of the registration process - the tools are available in the system without the need of system administrator’s intervention 4

INFSO-RI New ETICS test services JRA2 task Workflow Designer Designer tool for multinode deployment/test orchestration High level frontend to hide the etics-set, etics-get mechanism – technique to store the communication parameters between services Issue with the etics-set, etics-get – the user has to include in his own scripts these commands – powerful mechanism but inconvenient way of usage from the user point of view 5

INFSO-RI ETICS does NOT provide Test tools to write tests for the user – ETICS does not write tests Already existing test scripts – the user has to implement his own scripts 6

INFSO-RI Deployment test scenario of the Test Tool Registration System 7

INFSO-RI ETICS Test system – main architecture 8

INFSO-RI Description of the scenario Test Tool Registartion system is a GWT based web application – is the entry point to perform plugins management. As architecture: GWT based web application (client/server side) Server side: - webservices for the plugin registartion for the plugin template generation The primary purpose of this scenario is to have an automated way of deploying the newly implemented features on various places especially on the test environment to be able to validate the new features not just using the GWT provided in-built browser mechanism – to solve the problem of working locally but doesn’t working remotely. 9

INFSO-RI Goal of the deployment scenario to have an automated way of deploying the newly implemented features on various places especially on the test environment ( to be able to validate the new features not just using the GWT provided in-built browser mechanism - to solve the problem of working locally but not working remotely to extract the configuration parameters as high as possible (ETICS properties, env variables level if possible) to solve the problem of configuration issues– not to be a „hidden knowledge” of system administrators to have an environment for running unit tests and static tests to have an environment for running web service tests to have an environment for running acceptance and browser compatibility tests (to be done) 10

INFSO-RI To sum up the scenario Input for the scenario the developer has implemented a new feature and wants to try it out on the test environment Output of the scenario the newly built software packages are deployed on the test environment in a very short time (in our case 5 minitues) – the new features can be tried out immediately in ‘production’ 11

INFSO-RI Modelling the environment in ETICS 12

INFSO-RI Steps to be performed Preparing the files to be commited into CVS The developer „prepares” the java files to be commited in CVS The local configuration parameters will be replaced with global placeholders. For In case of new configuration (communication) parameters – they should be added in the deployment script. 13

INFSO-RI Steps to be performed Building the packages The jars and wars are created and are copied into the stage dir. The initial configuration files (service.property, eticsPortalWA.configuration.xml) (that must be overwritten later on by the deployment script) will be copied into the stagedir. The deployment script from the test dir of the main component(eticsPortalWA) will be copied into the stage dir. (Everything needed for deployment is in the stageDir) 14

INFSO-RI Steps to be performed Deploying the packages Deploying of the components is done (from the stage dir deploys...) Deployment scripts for different configurations rebuildTestsystem.sh – main deploy script without WIKI rebuildTestsystemWiki.sh – main deploy with wiki deployEticsPortalWA.sh – main deploy without registration system restartTestSystem.sh – start/restart tomcat without deploying the war file 15

INFSO-RI Deployment settings For example in our case: REG_SYS_SERVER_NAME: SERVER_NAME: WF_DESIGNER_URL: 16

INFSO-RI Steps to be performed Deployment steps for the each component Stops the tomcat and disable firewall Deletes the necessary folders in the tomcat directory Copies the initial configuration files (service.properties, eticsPortalWA.configuration.xml) and wars into tomcat Deployment script overwrites the initial configuration files to the production ones (see slide 16) Start httpd, tomcat (Deployment is ready. For example: or or....) 17

INFSO-RI Configurations org.etics.testsystem_deployment – performs build, deployment org.etics.testsystem_dep_local_wiki – performs build, deployment with wiki on local host org.etics.testsystem_build – performs build without deployment and with plugins running 18

INFSO-RI Configuration for testing purposes org.etics.testsystem_build Profiles are set (subconfigurations, profiles ) : eticsPortalWA.build: checkstyle; findbugs; pmd; jccn; ckjm; pluginGenerationWS.build checkstyle; jdepend; findbugs; pmd; jccn; ckjm; pluginRegistrationWS.build emma; jdepend; findbugs; jccn; ckjm; cobertura; testSystemPortlet.build: checkstyle; jdepend; pmd; emma; ckjm; cobertura; Report (At this point we are ready with unit tests and static tests and we have metrics.) 19

INFSO-RI Web service test scenario Goal: the test scenario is to run webservice tests and to follow the test coverage. The general steps are: Compile the source of the web service Instrument the byte code of the web service Copy emma.jar to the jdk of the tomcat Create the war file Deploy the instrumented war file to the tomcat Run the junit on the client stub Stop the tomcat Run emma report 20

INFSO-RI Technical steps for such a scenario web service deployment with instrumented files The user has to define the build/test process Some required, time-consuming operations of the proceess could be done by the plugins: clean: ant clean -f build-emma.xml init: cp ${emma.location}/emma /lib/emma.jar ${jdk.location}/jre/lib/ext configure:ant prefetch compile -f build-emma.xml compile:ant instrument -f build-emma.xml //plugin emma instrument install: packaging: cp coverage/metadata.emma ${reportsDir} test: ant emma.dist -f build-emma.xml; sh ${stageDir}/deployRegistrationWS.sh prepublish: publish: (Output: instrumented web service is deployed on tomcat) ( 21

INFSO-RI Technical steps for such a scenario Creating the stub and the comiling the junit tests clean: init: ant clean configure: compile:ant dist doc: checkstyle: install: packaging:echo test: ant test.compile prepublish: 22

INFSO-RI Technical steps for such a scenario Running the tests clean: init: cd ${src.location}; ant init run -f build-junit.xml; //plugin junit sh ${tomcat.location}/bin/shutdown.sh; sleep 5; test: cp ${workspaceDir}/coverage.ec ${reportsDir} cd ${reportsDir}; ${jdk.location}/bin/java emma report -sp ${pluginRegistrationWS.src.location}/src/ -r html -in metadata.emma,coverage.ec //plugin emma report Reports emma Reports junit 23

INFSO-RI Conclusion The tests provided by plugins mechanism (unit tests, standards complience, static analysis, in some cases dynamic analysis) does not require separate test scenario. In case of more high level test scenarious when deployment is required the user has to model the testing scenario in a similar manner like in the case of building processes using the facilities provided by ETICS framework. And the plugin mechanism could be used inside process for specific tasks. 24

INFSO-RI Acceptance test Until know we have for our GWT project Local/Remote build scenario Build scenario with unit and static tests and metrics calculation utilities Deployment on test environment Web service test scenario with coverage metrics calculation All these tests are code related tests. Missing: user acceptance tests. (‘Selenium’ is under investigation for this purpose.) 25

INFSO-RI Transition to multinode – abstract workflow 26

INFSO-RI Transition to multinode 27

INFSO-RI Transition to multinode 28

INFSO-RI Transition to multinode – concrete workflow Deployment of the Registration webservice 29

INFSO-RI Concrete workflow Flow connectors of WA and Plugin Generator Service 30

INFSO-RI Concrete workflow Deployment of the WA and PG web service 31

INFSO-RI Concrete workflow Deployment of the WA and PG web service 32

INFSO-RI Benefits of this scenario Very quick deployment on the test environment („last-minute” developments can be put in production easily) Configuration parametres can be extracted easily as properties or environment variables – not a hidden knowledge of the system administrators Different configurations for different purposes (build, deploy, unit test, web service testing) Coverage metrics for web services help developers in identifying the ‘clien/server’ problems which unit tests can not provide Testing of web services in a „production” environment 33

INFSO-RI Test Tool registration system 34

INFSO-RI Conclusion The mentioned scenario is considered to be the „marketing project” for 4D SOFT. It means, that this project will be used to show for possible customers the features that ETICS provide In that way should be „perfect” from technical point of view 35