© Vidiom Systems Corp., 2004 AutoXlet Framework Requirements Framework design Xlet Script Test Results and Logging Synchronization control Examples Configure,

Slides:



Advertisements
Similar presentations
Chapter 6 Server-side Programming: Java Servlets
Advertisements

Introduction to Java 2 Programming Lecture 4 Writing Java Applications, Java Development Tools.
Web forms and CGI scripts Dr. Andrew C.R. Martin
Cognos Web Services Business Intelligence. SOA SOA (Service Oriented Architecture) The SOA approach involves seven key principles: -- Coarse -grained.
COS 461 Fall 1997 Network Objects u first good implementation: DEC SRC Network Objects for Modula-3 u recent implementation: Java RMI (Remote Method Invocation)
J-Unit Framework.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
NETW-250 Troubleshooting Last Update Copyright Kenneth M. Chipps Ph.D. 1.
O’Reilly – Hadoop: The Definitive Guide Ch.5 Developing a MapReduce Application 2 July 2010 Taewhi Lee.
1 Frameworks. 2 Framework Set of cooperating classes/interfaces –Structure essential mechanisms of a problem domain –Programmer can extend framework classes,
Remote Method Invocation Chin-Chih Chang. Java Remote Object Invocation In Java, the object is serialized before being passed as a parameter to an RMI.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
How Does Remote Method Invocation Work? –Systems that use RMI for communication typically are divided into two categories: clients and servers. A server.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Monitoring System Monitors Basics Monitor Types Alarms Actions RRD Charts Reports.
Fundamentals of Python: From First Programs Through Data Structures
Automatic Software Testing Tool for Computer Networks ARD Presentation Adi Shachar Yaniv Cohen Dudi Patimer
Unit Testing & Defensive Programming. F-22 Raptor Fighter.
© Dr. A. Williams, Fall Present Software Quality Assurance – JUnit Lab 1 JUnit A unit test framework for Java –Authors: Erich Gamma, Kent Beck Objective:
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
The ATLAS Production System. The Architecture ATLAS Production Database Eowyn Lexor Lexor-CondorG Oracle SQL queries Dulcinea NorduGrid Panda OSGLCG The.
CSCI 6962: Server-side Design and Programming JDBC Database Programming.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
SDR Test bench Architecture WINLAB – Rutgers University Date : October Authors : Prasanthi Maddala,
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Software Architecture for ColdFusion Developers Unit 4: Application Events and Global Variables.
Designing For Testability. Incorporate design features that facilitate testing Include features to: –Support test automation at all levels (unit, integration,
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
Automatic Software Testing Tool for Computer Networks ADD Presentation Dudi Patimer Adi Shachar Yaniv Cohen
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
FINAL MPX DELIVERABLE Due when you schedule your interview and presentation.
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.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
OCAP-RI Vendor Forum August 10, 2011 Presenters: NDS and CableLabs Dev Teams Location: CableLabs Summer Conference – Keystone, CO.
Jan Hatje, DESY CSS ITER March 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
1 Cisco Unified Application Environment Developers Conference 2008© 2008 Cisco Systems, Inc. All rights reserved.Cisco Public Introduction to Etch Scott.
Spring/2002 Distributed Software Engineering C:\unocourses\4350\slides\DefiningThreads 1 RMI.
PI Data Archive Server COM Points Richard Beeson.
Networks Sockets and Streams. TCP/IP in action server ports …65535 lower port numbers ( ) are reserved port echo7 time13 ftp20 telnet23.
Unit Testing with JUnit and Clover Based on material from: Daniel Amyot JUnit Web site.
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
Web Services Error Handling and Debugging. Agenda Simple SOAP faults Advanced SOAP faults SOAP headers and faults Error handling From a Service Perspective.
Testing in Android. Methods Unit Testing Integration Testing System Testing Regression Testing Compatibility Testing Black Box (Functional) White Box.
Field Programmable Port Extender (FPX) 1 NCHARGE: Remote Management of the Field Programmable Port Extender (FPX) Todd Sproull Washington University, Applied.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
GT3 Tutorial Chapter 3 and Chapter 4 Lecture for Cluster and Grid Computing, CSCE 490/590 Fall 2004, University of Arkansas, Dr. Amy Apon
Internal use only Slide 1 Anritsu RTD Automation Training Slides – Oct 2011.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Correlator GUI Sonja Vrcic Socorro, April 3, 2006.
Technical lssues for the Knowledge Engineering Competition Stefan Edelkamp Jeremy Frank.
Flag Quiz Game App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
SOAP, Web Service, WSDL Week 14 Web site:
Distributed Computing & Embedded Systems Chapter 4: Remote Method Invocation Dr. Umair Ali Khan.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae david streader, VUW Echo Networking COMP
SWE 434 SOFTWARE TESTING AND VALIDATION LAB2 – INTRODUCTION TO JUNIT 1 SWE 434 Lab.
Integrating ArcSight with Enterprise Ticketing Systems
Troubleshooting Tools
Introduction to JUnit CS 4501 / 6501 Software Testing
Designing For Testability
Play Framework: Introduction
ETL Job Scheduler Job Database Server User Interface Scheduler
Introduction to javadoc
Introduction to JUnit CS 4501 / 6501 Software Testing
Introduction to javadoc
Executing Host Commands
Presentation transcript:

© Vidiom Systems Corp., 2004 AutoXlet Framework Requirements Framework design Xlet Script Test Results and Logging Synchronization control Examples Configure, build, and run Status and goals

© Vidiom Systems Corp., 2004 AutoXlet Requirements Automate test Xlet launching and the dispatching of remote control events Make test Xlets deterministic with definitive PASS/FAIL results using JUnit-like asserts Be able to run tests and report results in release/production mode Make it relatively simple for existing Xlets to be integrated into the automated framework Test Xlets must still function manually

© Vidiom Systems Corp., 2004 Design Authors – Greg Rutz, Mark Mindenhall, Francesco Dorigo Components –XML Event Scripts –XletDriver –Driveable Interface –AutoXletClient

© Vidiom Systems Corp., 2004 Design Diagram by Greg Rutz XletDriver TestXlet AutoXletClient XML Event Script Xlet List Remote Control Events Logging Mech. Test Results Log Statements IXCIXC

© Vidiom Systems Corp., 2004 Xlet Scripts Simulating Remote Control Events Extensible Xml format Root element – AutoXlet consists of one or more Xlet tags –Xlet attributes – name, org id, app id, pauseAfterLast An Xlet consists of zero or more RCEvent tags which correspond to org.ocap.ui.event.OCRcEvent –RCEvent attributes – name, pauseBeforeNext, monitorTimeout, getResultsAfter 1 new element since release – Repeat –Allows you to repeat a sequence of RCEvents

© Vidiom Systems Corp., 2004 Example Script VK_CHANNEL_UP VK_CHANNEL_UP VK_CHANNEL_DOWN VK_CHANNEL_DOWN VK_3 VK_CHANNEL_UP VK_CHANNEL_DOWN VK_2

© Vidiom Systems Corp., 2004 XletDriver Controls Xlet Automation Loads Xlets from Xml script file Sends remote control events to an Xlet Sets up UDP Logging and results recording Sets up IXC communication to the Xlets for logging and results recording Configurable with a set of properties in hostapp.properties

© Vidiom Systems Corp., 2004 Example hostapp.properties ############################################ ## Application 0 ## The following Xlet arguments are used to configure the XletDriver: ## ## XletDriverScript=[Path to script file] ## -- Specfies the location of the XML script file. ## ## DebugFile=[Path to debug file] ## -- Specifes the location of a local file to which the Xlet driver will ## write Xlet debugging log statements ## ## DebugServer=[IP or name of UDP debug log server] ## -- Specifies the IP address or hostname of the UDP log server to which the Xlet ## driver will write Xlet debugging log statements. If DebugFile argument is ## present, this argument is ignored. ## ## DebugPort=[Port] ## -- Specifies the port number of the UDP log server to which the Xlet driver ## will write Xlet debugging log statements. If DebugFile argument is present, ## this argument is ignored. If DebugServer argument is present, this argument ## must be present. ## ## ResultsFile=[Path to results file] ## -- Specifes the location of a local file to which the Xlet driver will write ## Xlet test results statements ## ## ResultsServer=[IP or name of UDP results server] ## -- Specifies the IP address or hostname of the UDP log server to which the Xlet ## driver will write Xlet test results statements. If ResultsFile argument is ## present, this argument is ignored. ## ## ResultsPort=[Port] ## -- Specifies the port number of the UDP log server to which the Xlet driver ## will write Xlet test results statements. If ResultsFile argument is present, ## this argument is ignored. If ResultsServer argument is present, this argument ## must be present. ## ## It is very important to always signal the XletDriver application with the following ## AppID and OrgID values. The AutoXletClient object used by each test xlet assumes ## that XletDriver has a particular set of IDs so that it can establish communication ## via IXC. ## ## XletDriver: ## OrgID = 0x1 AppID = 0x7000 ## ############################################### app.0.application_identifier=0x app.0.application_control_code=AUTOSTART app.0.visibility=VISIBLE app.0.priority=220 app.0.application_name=XletDriver app.0.base_directory=/syscwd/qa/xlet app.0.initial_class_name=com.vidiom.test.autoxlet.XletDriver app.0.args.0=XletDriverScript=XletDriver.xml app.0.args.1=ResultsFile=Results.txt app.0.args.2=DebugFile=Debug.txt

© Vidiom Systems Corp., 2004 Driveable Interface Provides an Xlet a method for receiving and interpreting key events Indicates whether the key events should behave synchronously using a Monitor –Monitor parameters are passed directly from XML script. public interface Driveable extends Remote { /** /** * Dispatches a java.awt.event.KeyEvent to the object with suggested * Dispatches a java.awt.event.KeyEvent to the object with suggested * monitor configuration information * monitor configuration information * event the event being dispatched event the event being dispatched useMonitor true if the command initiated by this event should useMonitor true if the command initiated by this event should * use a monitor object to enfore synchronous behavior, false otherwise * use a monitor object to enfore synchronous behavior, false otherwise monitorTimeout the monitor object timeout in milliseconds monitorTimeout the monitor object timeout in milliseconds */ */ void dispatchEvent(KeyEvent event, boolean useMonitor, int monitorTimeout) void dispatchEvent(KeyEvent event, boolean useMonitor, int monitorTimeout) throws RemoteException; throws RemoteException;}

© Vidiom Systems Corp., 2004 AutoXletClient Initiates IXC communication to the XletDriver for logging and test results reporting Reports connectivity state between client and driver. Xlets can report their own test results and instantiate their own logging object when not running under the XletDriver. Provides a Test object for making JUnit- like assert statements Provides Logger object established by the XletDriver

© Vidiom Systems Corp., 2004 Logging Logger object is provided by the AutoXletClient, when connected. Xlets can create their own XletLogger object when running manually UDP Logger and UDP LogServer available for running test Xlets in release environments. Logger interface provides: public void log(TestResult testResults); public void log(String message); public void log(Exception e);

© Vidiom Systems Corp., 2004 TestResults Accessible via the Test object Keeps counts of successes and failures from assert statements When running under the XletDriver, results automatically written to a log in the format of JUnit results –At the end of a particular Xlet run –When a RCEvent tag indicates that results should be output When running manually, TestResults can be logged by the Xlet author by passing the results object to the Logger

© Vidiom Systems Corp., 2004 AutoXlet Examples PropertiesTestXlet TuneTestXlet

© Vidiom Systems Corp., 2004 Configuring an AutoXlet Instrument an Xlet with the AutoXlet framework objects and add assert test statements Add your Xlet to the hostapp.properties file in $OCAPROOT/apps/qa/AutoXlet Provide an AutoXlet Xml events file Add the Xlet xml from your Xlet to the master AutoXlet xml file in $OCAPROOT/apps/qa/AutoXlet

© Vidiom Systems Corp., 2004 Building an AutoXlet AutoXlet code is in $OCAPROOT/apps/qa/AutoXlet From the top level: $ omake build.autoxlet.image – builds 4 site specific images Class files are written to $OCAPROOT/bin/$OCAPTC/qa/xlet including the AutoXlet framework classes needed Driver Xml and hostapp.properties are copied to $OCAPROOT/bin/$OCAPTC/qa/xlet/AutoX let

© Vidiom Systems Corp., 2004 Status and Goals Xlets automated include: –PropertiesTestXlet –PermissionsTestXlet –FileAccessPermissionsTest –TuneTestXlet –ServiceListXlet –ObjectCarouselTestXlet –DvrTestRunner All new Xlet automated