Vaadin TestBench CSCI 3130 WINTER 2015. What’s TestBench  A toolkit for testing user interfaces  Based on Selenium  Written in Java; interacts with.

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

Apache Struts Technology
Test Automation Framework Ashesh Jain 2007EE50403 Manager Amit Maheshwari.
1 GWT Google Web Toolkit Build AJAX apps in the Java language
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
HTML Introduction (cont.) 10/01/ Lecture 8, MAT 279, Fall 2009.
Peoplesoft Fundamentals David Lewis 10/18/02 (adapted from Psoft Training Materials)
Lecture 3B: Client-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Apache Tomcat Server Typical html Request/Response cycle
Java Server Pages B.Ramamurthy. Java Server Pages Servlets are pure Java programs. They introduce dynamism into web pages by using programmatic content.
Hello Vaadin! CS 3130 Summer 2015.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
Julien Thibault / Phil Brewster / Kristina Doing-Harris
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
UNIT-V The MVC architecture and Struts Framework.
Android Application Development 2013 PClassic Chris Murphy 1.
Client/Server Architectures
Web Servers Don McGregor Research Associate MOVES Institute
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
LAYING OUT THE FOUNDATIONS. OUTLINE Analyze the project from a technical point of view Analyze and choose the architecture for your application Decide.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
CS 4720 RESTfulness and AJAX CS 4720 – Web & Mobile Systems.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 16: Java Applets & AWT Fundamentals of Web Programming.
With your friendly Web Developer, Chris.. Terminology  HTML - > Hypertext Markup Language  CSS -> Cascading Style Sheet  open tag  close tag  HTTP->Hypertext.
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.
Some essentials difference syntax and concept for jquery developers Roohullah Afzali
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
CSCI 6962: Server-side Design and Programming Support Classes and Shopping Carts.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
JSP Java Server Pages Softsmith Infotech.
Win8 on Intel Programming Course Modern UI HelloWorld in HTML5/JS Cédric Andreolli Intel.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
© 2006 IBM Corporation IBM WebSphere Portlet Factory Architecture.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 6: Links.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
C# AND ASP.NET What will I do in this course?. MAJOR TOPICS Learn to program in the C# language with the Visual Studio IDE (Interactive Development Environment)
SE-02 COMPONENTS – WHY? Object-oriented source-level re-use of code requires same source code language. Object-oriented source-level re-use may require.
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.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
Web application architecture1 Based on Jim Conallen: Web Applications with UML.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Creating Dynamic Webpages
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
1 Applets are small applications that are accessed on an Internet server, transported over the internet, automatically installed and run as a part of web.
PROGRAMMING IN VISUAL BASIC.NET CREATING YOUR FIRST WEB APPLICATION Bilal Munir Mughal 1 Chapter-3.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
Display Page (HTML/CSS)
Introduction  “M” “V” “C” stands for “MODEL” “VIEW” “CONTROLLER”. ASP.NET MVC is an architecture to develop ASP.NET web applications in a different manner.
Chapter 1 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Java Server Pages. 2 Servlets The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
Bayu Priyambadha, S.Kom. Static content  Web Server delivers contents of a file (html) 1. Browser sends request to Web Server 3. Web Server sends HTML.
Presented By:. What is JavaHelp: Most software developers do not look forward to spending time documenting and explaining their product. JavaSoft has.
CS320 Web and Internet Programming Web Application and MVC Chengyu Sun California State University, Los Angeles.
丁建文 國立高雄應用科大資管系副教授 兼任計網中心軟體發展組組長 跨平台行動應用軟體開發技術 : HTML5 & Mobile JavaScript Framework 暨南大學.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
WPS - your story so far Seems incredible complicated, already
An introduction to jQuery
COMPONENTS – WHY? Object-oriented source-level re-use of code requires same source code language. Object-oriented source-level re-use may require understanding.
a middleware implementation
Murach's JavaScript and jQuery (3rd Ed.)
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

Vaadin TestBench CSCI 3130 WINTER 2015

What’s TestBench  A toolkit for testing user interfaces  Based on Selenium  Written in Java; interacts with HTML/CSS/JavaScript

Installing TestBench  Already installed with Vaadin!  Create a text file called “.vaadin.testbench.developer.license ” in your home directory  Put the license key you are given into that file.

Installing TestBench  Already installed with Vaadin!  Create a text file called “.vaadin.testbench.developer.license ” in your home directory  Put the license key you are given into that file.

Running JUnit Tests in Eclipse  Just Right-Click the test file you want to run, then “Run As…” then “Unit Test”

Running JUnit Tests in Eclipse  Just Right-Click the test file you want to run, then “Run As…” then “Unit Test”

Code Coverage  A measure of how much of your code is run when you execute a test  Eclipse can easily generate a report  But you’ll want to run all your tests at once

Code Coverage  A measure of how much of your code is run when you execute a test  Eclipse can easily generate a report  But you’ll want to run all your tests at once

Code Coverage  A measure of how much of your code is run when you execute a test  Eclipse can easily generate a report  But you’ll want to run all your tests at once

Code Coverage  A measure of how much of your code is run when you execute a test  Eclipse can easily generate a report  But you’ll want to run all your tests at once

Code Coverage  A measure of how much of your code is run when you execute a test  Eclipse can easily generate a report  But you’ll want to run all your tests at once

Code Coverage  A measure of how much of your code is run when you execute a test  Eclipse can easily generate a report  But you’ll want to run all your tests at once

Creating your first TestBench Test  It’s already done!  A test is generated when you make a new Vaadin Project

Creating your first TestBench Test  It’s already done!  A test is generated when you make a new Vaadin Project

How does testing work? 1. Creates a browser 2. Opens the application’s page 3. Looks for HTML elements 4. Makes sure the elements are right

Vaading Testing Architecture UI Display UI Control Business Logic ClientServer TestBench Standard JUnit

Components and Elements  A widget by any other name…  Components are what you use for laying out your UI (on the server)  Each component has a corresponding element for testing (on the client)

Components and Elements

Element Selectors  Let you find an element on a page  Can be chained together  Based on jQuery  Start with $  Typically end with a first(), all() or get(index)

Element Selectors  Let you find an element on a page  Can be chained together  Based on jQuery  Start with $  Typically end with a first(), all() or get(index)

Using IDs and CSS classes  Instead of relying on layout to find elements, give important elements an ID.  Group important elements together with a CSS class.

Using IDs and CSS classes  Instead of relying on layout to find elements, give important elements an ID.  Group important elements together with a CSS class.

PageObject pattern  Move all of the layout details to a separate class  Test cases will call methods to retrieve certain elements

Sample Project  Accessed at  _trainer _trainer  Running at rd_trainer rd_trainer