Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Introducing JavaScript
1 Appendix A: Writing and Submitting SAS ® Programs A.1 Writing and Submitting SAS Programs.
MT311 Tutorial Li Tak Sing( 李德成 ). Uploading your work You need to upload your work for tutorials and assignments at the following site:
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
MCT260-Operating Systems I Operating Systems I Managing Your System.
JsUnit An introduction to unit testing in-browser JavaScript with JsUnit Edward Hieatt February, 2005 JsUnit.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
JavaScript, Fourth Edition
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
CSC 216/001 Lecture 4. Unit Testing  Why is it called “unit” testing?  When should tests be written?  Before the code for a class is written.  After.
Session Objectives • Login to PeopleSoft Test Framework(PTF)
SELENIUM
JUnit test and Project 3 simulation. 2 JUnit The testing problems The framework of JUnit A case study Acknowledgement: using some materials from JUNIT.
Outlook Web App Crash course. Outlook Agenda Login Login Reset Password Reset Password Getting Started in Outlook Web App Getting Started in Outlook Web.
Welcome To Eclipse. Basic Concepts Workspace – directory where your projects are stored –Projects grouping of related works –Resources generic term to.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
CS4272 Hardware-Software Co-design Assignment 2 School of Computing National University of Singapore Guo Liang.
Unit Testing with JUnit and Clover Based on material from: Daniel Amyot JUnit Web site.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
1 CSC/ECE 517 Fall 2010 Lec. 3 Overview of Eclipse Lectures Lecture 2 “Lecture 0” Lecture 3 1.Overview 2.Installing and Running 3.Building and Running.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 What we'll cover here l Using the debugger: Starting the debugger Setting.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Getting Start with WebPoint. 0. Introduction WebPoint is aimed to rapidly create HTML-based web presentations from PowerPoint files. Presentation WebPoint.
1 CSC 216 Lecture 3. 2 Unit Testing  The most basic kind of testing is called unit testing  Why is it called “unit” testing?  When should tests be.
Test Automation For Web-Based Applications Portnov Computer School 1 Selenium HP Web Test Tool Training.
JavaScript Functions A function is a block of code that can be reused. It is similar to a method in Java. It consists of a function name, an argument.
© 2012 LogiGear Corporation. All Rights Reserved FitNesseFitNesse Authors: Nghia Pham 1.
Test a Little, Code a Little Colin Sharples IBM Global Services New Zealand Colin Sharples IBM Global Services New Zealand.
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
PHP Form Processing * referenced from
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
If you don’t have Google Earth downloaded already, you can go to to get it.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
Java IDE Dwight Deugo Nesa Matic
Managing, Storing, and Executing DTS Packages
Selenium HP Web Test Tool Training
Selenium HP Web Test Tool Training
Selenium HP Web Test Tool Training
Advanced Web Automation Using Selenium
Chapter 6 Programming with Office 97
Selenium HP Web Test Tool Training
Test Automation For Web-Based Applications
Selenium HP Web Test Tool Training
Overview of Eclipse Lectures
Test Automation For Web-Based Applications
Social Media And Global Computing Creating DLLs with Visual Studio
Introduction to JUnit IT323 – Software Engineering II
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Scripts In Matlab.
SOP of System Security Settings
Shane Cantrell Zach Crisman
Setting up home folders and roaming profiles
Presentation transcript:

Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel

2 Day 9 Managing Tests and Testing Resources

3 Save to your workspace/project/src folder Select ‘Save Link As’ Right-click the link

4 Double-click Move ‘Environment.java’ to package … Click the [x] icon Open the file in Eclipse The com.auto.common package will be created for you in the project

5 Replace all occurrences of “30000” with Environment.TS_WAIT_FOR_PAGE_TO_LOAD Press CTRL + F Open TestCase in Eclipse Add import com.auto.common.*; statement

 File used to store all common values utilized in test scripts.  Improves maintainability  Edit the file to specify global variables such as: ◦ URL ◦ PORT ◦ HOST ◦ BROWSER_TYPE  Declare additional global variables as needed. 6

7 Select ‘Save Link As’ Right-click the link Save to your workspace/project/src folder

8 Double-click Move ‘GPH.java’ to package … Click the [x] icon Open the file in Eclipse The com.auto.utils package will be created for you in the project

 File used to store all common actions utilized in test scripts: ◦ doLogin(username, password) ◦ doLogout()  Improves maintainability and scripting time  Edit the file to include additional global behaviors occurring in multiple TestCases. 9

10 Replace with GPH.doLogin(selenium, "admin", "password"); Replace with GPH.doLogin(selenium, "admin", "password"); Select the seven lines which execute the login Open TestCase in Eclipse Add import com.auto.utils.*; statement to the top of the script!

11 Select ‘Save Link As’ Right-click the link Save to your workspace/project/src folder

12 Double-click Move ‘QAutoTestSuite.java’ to package … Click the [x] icon Open the file in Eclipse The com.auto package will be created for you in the project

 File serves as the middle layer between JUnit TestSuite class and our TestSuite(s)  QAutoTestSuite.java inherits all the functionality of the JUnit TestSuite class but specifies a new behavior for its run method which will now start and stop the selenium server, as well as open and close the browser as part of setUp and tearDown.  Improves maintainability and scripting time by centralizing operations common to all tests. (One common fixture) 13

 Modify all TestCases to extend the JUnit TestCase class: ◦ Replace SeleneseTestCase with TestCase  Create a TestSuite by extending QAutoTestSuite class: ◦ public class LoginRegressionTestSuite extends QAutoTestSuite{ … code …}  Add whole TestCases or select test methods to the TestSuite.  Remove all setUp and tearDown methods from all TestCase classes  Add the following two line to the beginning and end of each test method: ◦ Selenium selenium = Environment.getBrowser(); ◦ Environment.killBrowser();  You may need to add import statements for common and utils packages 14 Should be added to the com.auto package

 Your test suite should now automatically start and stop the Selenium Server!  Run and debug the project as needed.  HOMEWORK:  Look back at the past homework assignment which utilize javaScript.  Modify the code to use java instead, to perform the same operation.  To convert from String to number use: ◦ Number_Type1 = Type1.valueOf(String);  To convert from number to a different type of number" use: ◦ num_type1 = (Type1) num_type2; 15 Double num = Double.valueOf(“24”); int num2 = (int) num;