Robot Framework – Basic Level. Date: 2011-10-03 Version:1.0 Page 1.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

ITEC 1001 Tutorial 1 Using Common Features of Microsoft Office 2003.
Tutorial 6 Creating a Web Form
Project 1 Introduction to HTML.
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Russell Taylor Lecturer in Computing & Business Studies.
XP Using Common Features of Microsoft Office Tutorial 1.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
© 2011 LogiGear Corporation. All Rights Reserved Capturing Interface Presenter: Thuy Tran.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
4.1 JavaScript Introduction
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Chapter 1: Introduction to Web
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Selenium automated testing in Openbravo ERP Quality Assurance Webinar April 8th, 2010.
Robot Framework – Basic Level. Date: Version:1.0 Page 1.
1 Test Automation For Web-Based Applications Selenium HP Web Test Tool Training Portnov Computer School.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
ITCS 6010 SALT. Speech Application Language Tags (SALT) Speech interface markup language Extension of HTML and other markup languages Adds speech and.
Tutorial 1: Browser Basics.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
JavaScript - A Web Script Language Fred Durao
Selenium and Selenium on Rails. Agenda  Overview of Selenium Simple Selenium Tests Selenium IDE  Overview of Selenium on Rails  Problems with Selenium.
Web Automation Testing With Selenium By Rajesh Kanade.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Introduction Selenium IDE is a Firefox extension that allows you to record, edit, and debug tests for HTML Easy record and playback Intelligent field selection.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
August 2003 At A Glance The IRC is a platform independent, extensible, and adaptive framework that provides robust, interactive, and distributed control.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Test Automation For Web-Based Applications Portnov Computer School 1 Selenium HP Web Test Tool Training.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
© 2012 LogiGear Corporation. All Rights Reserved FitNesseFitNesse Authors: Nghia Pham 1.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
Tata Consultancy Services1 WebDriver Basics Submitted By : Akhil K Gagan Deep Singh Naveenrajha H M Poornachandra Meduri Shubham Utsav Sunil Kumar G Vivek.
1 PDMLink Application - User Features & Functions Module 6: Search Capabilities.
Tutorial 6 Creating a Web Form
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
COMP 143 Web Development with Adobe Dreamweaver CC.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Section 10.1 Define scripting
Advanced HTML Tags:.
Project 1 Introduction to HTML.
Selenium HP Web Test Tool Training
Selenium and Selenium on Rails
JRA2: Acceptance Testing senarious
Chapter 1 Introduction to HTML.
PHP Training at GoLogica in Bangalore
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Selenium IDE Installation and Use.
Presentation transcript:

Robot Framework – Basic Level. Date: Version:1.0 Page 1

Robot Framework - Introduction Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). Page 2

Robot Framework - Introduction It has easy-to-use tabular test data syntax and utilizes the keyword-driven testing approach. Page 3

Robot Framework - Introduction Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new keywords from existing ones using the same syntax that is used for creating test cases. Page 4

Robot Framework - Features  Enables easy-to-use tabular syntax for creating test cases in a uniform way.creating test cases  Allows using keyword-driven, data-driven and behavior-driven (BDD) approaches.keyword-driven, data-driven and behavior-driven (BDD)  Provides ability to create reusable higher-level keywords from the existing keywords.higher-level keywords  Provides easy-to-read reports and logs in HTML format.reports and logs  Is platform and application independent.  The modular architecture supports creating tests even for applications with several diverse interfaces.modular architecture  Provides a simple library API for creating customized test libraries.library API  Provides a command line interface and XML based outputs for integration into existing build infrastructure (continuous integration systems).command line interface and XML based outputs  Provides support for Selenium for web testing, Java GUI testing, running processes, Telnet, SSH, Swing, and so on.SeleniumJava GUI testingrunning processes TelnetSSH  Remote library interface enables distributed testing and implementing test libraries in any programming language. Remote library interface  Provides tagging to categorize and select test cases to be executed.tagging  Has built-in support for variables, practical particularly for testing in different environments.variables Page 5

How to install? ROBOT FRAMEWORK  SELENIUM RC  Page 6

Plugins and Libraries  FireFox:  Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. Firebug  XPath Checker is a Firefox Extension for testing XPath expressions interactively. XPath Checker Page 7

Plugins and Libraries  ROBOT (buil in):  Selenium Library (used in the workshop). SeleniumLibrary is a Robot Framework test library that uses the popular Selenium web testing tool internally. It provides a powerful combination of simple test data syntax and support for different browsers. Selenium Library  Database Library Database Library is a Robot Framework test library that provides common funtionality for testing database contents. Database Library  SSH Library It enables execution of commands on a remote machine over an SSH connection. It also offers possibility to transfer files from and to a remote machine. SSH Library  Swing Library SwingLibrary is a Robot Framework test library for testing Java Swing applications. Swing Library  Dialogs test library Dialogs is Robot Framework's standard library that provides means for pausing the test execution and getting input from users. Page 8

Documentation – for example SeleniumLibrary  All keywords in SeleniumLibrary that need to find an element on the page take an argument, locator.  In the most common case, locator is matched against the values of key attributes of the particular element type.  For example, id and name are key attributes to all elements, and locating elements is easy using just the id as a locator Page 9

How to find LOCATOR?  For example button from  1. Click RMB on button  2. Choose Inspect element (Zbadaj element) from menu. Page 10

How to start using ROBOT? 1. Run Selenium Server RC (click shortcut on desktop) or from Terminal* : java -jar /usr/local/lib/python2.6/dist- packages/SeleniumLibrary/lib/selenium-server.jar -port Run RIDE: Shortcut „ctrl+i” or from Terminal* type ride.py Tips: run Terminal – Aplications>Accessories>Terminal or shortcut „ctr+ ~ ” (tylda) Page 11

1. Step - Creating new PROJECT  1. Create NEW PROJECT (File>New Project)  and select options: Page 12

Add Libraries to PROJECT  Choose Project_name and add three LIBRARIES:  TIPS: Selenium Library is with argument value 15 – stands for 15 seconds timeout Page 13

Test setup and teardown  Test setup and teardown Test setup and teardown  Robot Framework has similar test setup and teardown functions as many other test automation frameworks.  In short, a test setup is something that is executed before a test case and a test teardown is executed after a test case. Page 14 Test setup: 1. Open FireFox browser 2. Go to Test case: Run all test steps in Test Case Test teardown: Close browser

Teardown – what for? Page 15  What makes a test teardown special is that it is executed also when a test case fails, so it can be used for clean-up activities that must be done regardless of the test case status.  Both a setup and a teardown can also easily be specified for all test cases in a test suite, so using them avoids repetition.

2 Step – Create Test Setup  1. Click RMB on Project_name > New User Keyword Page 16

2 Step – Create Test Setup  2. Type in table:  ff – stands for FireFox browser  Page 17

2 Step – Create Test Setup  Tips: Start typing ‚Open Br..’ and then use ‚ctr+space’ for autocompletion. Page 18

2 Step – Create Test Teardown  1. Click RMB on Project_name > New User Keyword  2. Type in script table: Page 19

Adding setup and teardown - success  Select Test Setup and Test Teardown into Project Settings Page Page 20

SAVE  Save:Hit ‚ctrl+shift+s’  or click (save button): Page 21

Create new TEST CASE  Click RMB on Project_name > New test Case Page 22

Excrsise 1 – Steps 1.Open FF and go to (this part is in Test Setup) 2.Input text ROWER in search field. 3.Click submitt button 4.VALIDATE: Results page schould contain text ‚ROWER’ Page 23

Excrsise 1 – Steps 1.Input steps into script table: Page 24

Run test case 1.Select RUN bookmark 2.Select checkbox for test case 3.Hit ‚START’ and… Page 25

View Report and Logs  After finish test case view Report and Logs  Report and Logs opens in browser. Page 26

Exercise 1a (variables) – Steps 1. Copy exercise 1 test case 2. In script:  add new row (RMB>Insert Rows)  replace Value ‚Rower’ to ${item} Page 27

Exercise - 2  1. Step: Page 28

Exercise - 2  2. Step:  Input Text ${item}  DropBox:‚którekolwiek ze słów’  Chcechbox: ‚Szukaj również w opisach’ and ‚Odbiór osobisty’  Radiobutton: ‚Wszystkie województwa’ Page 29

Exercise - 2 Page 30

Creating User keywords 1.Click RMB on New User Keyword 2.Named it as ‚Find item’ 3.Add new Argument ${item_name} 4.Hit New Keyword appears: Page 31

Creating User keywords 1.Select all rows from Excercise 2 – copy to clipbord (ctr+c) 2.Paste it to ‚Find item’ keyowrd ` Page 32

Exercise 3 – using user keywords  Use ‚Find item’ keyword to build script  Then on Results Page delete dynamic link (shown as button) Page 33

Exercise 3 – using user keywords Excercise 3 script: Page 34

Excersise 4 - Loops  Find few items in one Test Case  Script for Loop is: Page 35

How LOOP works? 1.Find zegar 2.Click link ${item_name} = zegar 1.Find kubek 2.Click link ${item_name} = kubek 1.Find zeszyt 2.Click link ${item_name} = zeszyt Page 36

LOOP with multiple variables Page 37

LOOP – IN RANGE  Send 100 s Page 38

LOOP – HOMEWORK  Invite new member. Page 39

HOMEWORK  Invite 50 times Page 40

The End Page 41

Page 42