Test Automation: Coded UI Test

Slides:



Advertisements
Similar presentations
Castafiore platform Consists or intend to consist of 1.Advanced Web framework 2.Advanced Graph database 3.Designer studio (something like visual basic)
Advertisements

ASP.NET Ajax Supplementary Tutorial. Why Use ASP.NET AJAX? - I ASP.NET AJAX enables you to build rich Web applications that have many advantages over.
Designing Reusable Frameworks for Test Automation
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
Microsoft SharePoint 2010 technology for Developers
Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Neelesh Kamkolkar Sr. Product Manager/Planner | Microsoft
Software Testing with Visual Studio 2013 & Team Foundation Server 2013 Benjamin Day.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Testing by Duncan Butler Sara Stephens. Too much to cover.
Mike Azocar Sr. Developer Technical Specialist Microsoft Corporation
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Quality Assurance CS 615. Mission Statement The Quality Assurance team will provide assurance to stakeholders in CS-615/616 projects that their projects.
Creating a SharePoint App with Microsoft Access Services
1 Agenda Overview Review Roles Lists Libraries Columns.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Final Year Project Presentation E-PM: A N O NLINE P ROJECT M ANAGER By: Pankaj Goel.
UNIT-V The MVC architecture and Struts Framework.
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
Separating VUI from business logic Caller Experience-centered design approach Alex Kurganov, CTO Parus Interactive
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Joel Bapaga on Web Design Strategies Technologies Commercial Value.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Classroom User Training June 29, 2005 Presented by:
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Testing Tools using Visual Studio Randy Pagels Sr. Developer Technology Specialist Microsoft Corporation.
Software Testing Life Cycle
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Expression Web 3... now with TFS!. What is Expression Web 3? Professional web design and development tool Create standards-based Web sites faster & easier.
06 | Develop Customer Value with High Quality Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence.
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.
I Copyright © 2007, Oracle. All rights reserved. Module i: Siebel 8.0 Essentials Training Siebel 8.0 Essentials.
Building an ASP.NET Website OUTLINE DIFFERENT PROJECT TYPES. DIFFERENT PROJECT TEMPLATES. NUMEROUS FILE TYPES AVAILABLE IN ASP.NET. CREATING STRUCTURED.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
1 MSTE Visual SourceSafe For more information, see:
Sofia Event Center May 2014 Martin Kulov Test Automation with Visual Studio.
The business logic engine for Microsoft IIS Speaker T.M. Arnett.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
QC – User Interface QUALITY CENTER. QC – Testing Process QC testing process includes four phases: Specifying Requirements Specifying Requirements Planning.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Eliminate Team Build Headaches with Unit Tests, WiX and Virtualization Benjamin Day
V7 Foundation Series Vignette Education Services.
Continuous Delivery and Team Foundation Server 2013 Ognjen Bajić Ana Roje Ivančić Ekobit.
Automation Testing Trainer: Eran Ruso. Training Agenda Automation Testing Introduction Microsoft Automation Testing Tool Box Coded UI Test and Unit Test.
Ognjen Bajić Ana Roje Ivančić Ekobit Efficient Application Testing.
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Building Enterprise Applications Using Visual Studio®
Capstone Project W-CMS `.
Software Testing.
Project Objectives Publish to a remote server
Manual testing of Windows Metro style apps built using HTML
Visual Studio 2005 “Personalized productivity”
Mission Science By Team 07.
07 | Workflows Chris Johnson | SharePoint Guru
Introduction to SharePoint Framework
DAT381 Team Development with SQL Server 2005
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
SharePoint Foundation 2010
Esri Production Mapping: An Introduction
Presentation transcript:

Test Automation: Coded UI Test Jan 25th 2013

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Automated Testing Ensures you don’t miss out on running a test Can actually enforce and drive clean design decisions Have training value

Coded UI Test Automated tests that drive your application through its user interface (UI) are also known as coded UI tests (CUITs). These tests include functional testing of the UI controls. They let you verify that the whole application, including its user interface, is functioning correctly. Coded UI Tests are particularly useful where there is validation or other logic in the user interface, for example in a web page. They are also frequently used to automate an existing manual test.

Coding Process with Coded UI Test Test Cases Recording the actions Coding with testing strategies Auto-compile and run If tests fail Fault in test script-> make appropriate modifications Bug in the application -> report (PF OOTB) If tests pass -> move ahead They are fun and challenging to write One has to carefully think of design for reusability and coverage

Recording the actions Generate code Add assertion Show recorded steps Coded UI Test Builder The Coded UI Test builder enables you to record actions and add them into your existing Coded UI Test Generate code Add assertion Show recorded steps Start recording

Understanding the tests Test Window Test View window Test List Editor

Identify Portal Framework Defects Bugs can be identified by Coded UI Test Habanero Portal Framework Out Of The Box

Identify Portal Framework Defects Bugs cannot be identified by Coded UI Test Habanero PF Habanero OOTB

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

UI Map Class The real work takes place An assortment of supporting classes are generated Class diagram helps you to understand the relationships and the classes involved.

Generic Library Using the auto-generated code in designer.cs Class is very inefficient Construct an efficient, reusable, beautiful libraries

Even More Generic

Class Diagram Document Library List Calendar Page Asset

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

The Automated Test Framework

Program Pattern

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Framework function or visit QA site: These framework functions will be documented in our Habanero QA site or visit QA site: https://h.habaneros.com/teamsites/QA/List s/Framework%20Functions/AllItems.aspx

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Demo I will run the following tests if time permits: ContentPF Test Cases: 1. Add content to a page 2. Edit the content of a page 3. Apply a markup style to content on a page 4. Edit the HTML of the content on a page ListInheritancePF Test Cases: 1. Break inheritance on a list 2. Break inheritance on a single list item ListWorkflowPF Test Cases: 1. Define a workflow for a list 2. Perform workflow on a list item PagePF Test Cases: 1. Create new page 2. Modify page properties 3. Check in/ Check out a page 4. Delete a page 5. Email a link to a page

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Reliability Controls & Actions Ensure the program find the correct controls Ensure the actions get executed Unstable Tests Some tests may wander between Pass and Fail Use Meaningful name helps identify the purpose of the method Limit each recorded method to fewer than 10 actions Makes it easier to replace a method if the environment changes Use the data from app.config file instead of hardcoding the data Increase the reliability of making an assertion

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Usability & Reusability Coded UI Tests are completely reusable Need to setup a continuous integration server Create libraries as the codebase Customize Search Properties Overwrite Search properties with parameters Customize Complete Functions Atomic Tests Tests are not depend on other tests Reusable modules (The BaseTest Class) Common test functions

Customized Search Properties

Customized Search Properties

Customized Functions

Customized Methods

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Efficiency Web Page Navigation

Efficiency Eliminate Delay

Efficiency Add Delay Sometimes, the control runs faster than the web browser

Introduction Internal Class Structure (Generic Structure) Program architecture Framework function Demo Reliability Usability & Reusability Efficiency Build Process in the Future

Test Cases Coded UI Test Build Process TFS MTM Client Projects

Build Process At this point, we have created numerous Test Cases. We can execute a Coded UI Test Case simply by taking the compiled assembly and executing it with Visual Studio or MSTest from the command line, which require us to sit there and do nothing while the test executes Another way: Associate Coded UI Tests and Test Cases Run the tests from Microsoft Test Manager Test Cases

MSTest

Associating Coded UI Tests and Test Cases (TFS)

Microsoft Test Manager

Next Step ( a typical way) Set Up Team Build With correct build definition and configuration So that the automated test can be found in the share location for the build definition and then it can be run from MTM Create Test Settings and Virtual (Physical) Environment We cannot run Coded UI Tests using MTM without an environment Create an environment that contains the roles in the test settings and then use this environment in the test plan

Sometimes, things don’t work the way you want it to be.

Thank you If you have any comments on the coded UI test, feel free to let me know  Thank you