Gannon University Frank Xu

Slides:



Advertisements
Similar presentations
Citavi – Adding References – Articles from EBSCOhost Databases
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Access Tutorial 10 Automating Tasks with Macros
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Automated GUI testing How to test an interactive application automatically?
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Automating Database Processing
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
Summer 2011 Project Zimmerman.  After discussion and initial introduction to Alice, students will receive another overview and use existing code to create.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Automated GUI testing How to test an interactive application automatically?
Service Side Ajax Richard Schmidt gmail. Com Metservice.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Paging Through a Data Table Creating a Navigation Bar Using the Recordset Navigation Bar Server Behavior.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Modal Dialogs. What is a Modal Dialog? A modal dialog is a separate window that remains in focus until it is closed by the user. During this time the.
Schoolwires Calendar App. Calendar Overview Calendar app uses the same color scheme and fonts as the rest of the IRHS site.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Dive Into® Visual Basic 2010 Express
Excel Tutorial 8 Developing an Excel Application
Using Macros, Switchboards, PivotTables, and PivotCharts
Select a work instruction
Working in the Forms Developer Environment
Graphical User Interface in MATLAB
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Introduction to Microsoft publisher
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Official Academic Course, Microsoft Access 2013
New Perspectives on Microsoft Windows 10
Program and Graphical User Interface Design
Chapter Eleven Handling Events.
Fastest way for already created documents
Using GUI Objects and the Visual Studio IDE
Internal Vacancies.
Microsoft Word 2010 Lesson 1.
Program and Graphical User Interface Design
Chapter 2 Adding Web Pages, Links, and Images
Chapter 2 – Introduction to the Visual Studio .NET IDE
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development Programming with Visual Basic
Constructors, GUI’s(Using Swing) and ActionListner
European Computer Driving Licence
Scripts In Matlab.
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Tutorial 10 Automating Tasks with Macros
EViews Training The Basics: EViews Desktop, Workfiles and Objects Note: Data and Workfiles for examples in this tutorial are: Data: Data.xlsx Results:
Presentation transcript:

Gannon University Frank Xu Abbot Tutorial Gannon University Frank Xu CIS software design and testing 9/22/2018

Abbot – A Better ’Bot A GUI testing framework for Swing Works seamlessly with Junit Uses some Junit 3 features Can be used to create Unit tests for GUI components Functional tests for existing GUI apps Open source http://abbot.sourceforge.net/ CIS software design and testing 9/22/2018

Goals of the Abbot framework Reliable reproduction of user input High-level semantic actions Scripted control of actions Loose component bindings CIS software design and testing 9/22/2018

Launch the script editor. http://abbot.sourceforge.net/doc/download.shtml Unzip to a folder called: abbot-1.0.2 Type command: abbot CIS software design and testing 9/22/2018

Create a new script File->New Script For example, Launch defines a class and method to invoke to launch your GUI.  Terminate disposes of all GUI components generated by the launch step. For example, invoke the main(String[] args) method in class example.MyCode  with no arguments, CIS software design and testing 9/22/2018

Save scripts: \abbot-1.0.2\codescripts CIS software design and testing 9/22/2018

Test->Launch  display the GUI under test. The example code will display a frame with a variety of sample components. CIS software design and testing 9/22/2018

Record some user actions. Capture->All Actions (or shift+F2), perform some user actions in the GUI. If you haven't already launched the GUI, the editor will launch it for you. The editor will detect as many high-level semantic events as it can and insert raw mouse motion and button events for what it doesn't recognize. When you get the GUI to a point that you want to make some tests of its state, press shift+F2 or activate the editor window to suspend recording. The recording so far will be inserted into the script as a sequence of steps. CIS software design and testing 9/22/2018

All captured activities Move Resize Select tabs close CIS software design and testing 9/22/2018

Replay: click Run CIS software design and testing 9/22/2018

Add some assertions Move the mouse over the component in your GUI for which you'd like to add a test and press shift+F1. That component will be selected in the component browser tree in the bottom half of the script editor. The hierarchy view presents the full hierarchy of components that have been created. Once you've selected a component, its associated properties will appear in the pane to the right. Select a property ("Text" on a JButton, for instance), Click the Assert equals button to insert an assertion into the test. Repeat as necessary for other components, or press shift+F2 to continue recording actions. Note that if a component you'd like to test is within a modal dialog, you'll need to explicitly add a reference withalt+shift+F1 and add the assertion after the dialog has been dismissed. CIS software design and testing 9/22/2018

Add some assertions 1. Shift F1 5. Type assertion 2. hierarchy view 3. Properties 4. Click Assert equals CIS software design and testing 9/22/2018

replay Change expected value to something else. CIS software design and testing 9/22/2018

Homework http://java.sun.com/docs/books/tutorial/uiswing/examples/l earn/index.html#CelsiusConverter CIS software design and testing 9/22/2018

Classpath CIS software design and testing 9/22/2018

Another tutorial Abbot_tutorial_2.docx CIS software design and testing 9/22/2018