Testing with TestComplete Igor Gershovich Connected Testing, Inc.

Slides:



Advertisements
Similar presentations
Auto-test Tools: Sahi and Rational Robot Ting Yu Xia Liu University of Ottawa.
Advertisements

Facts about Welcome to this video from Ozeki. In this video I will present what makes Ozeki Phone System XE the Worlds best on-site software PBX for Windows.
Using VB with MS Applications R. Juhl, Delta College.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Automation Testing Presentation Phil Hunter Phil Hunter - Automation Presentation 1.
OPC WPFHMI.NET.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
EValid Getting Started. Agenda Introduction to eValid First experience of using eValid Recording and Site Analysis in eValid.
Tutorial 8 Sharing, Integrating and Analyzing Data
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Web 2.0 with AJAX Students : LASC Ioana KELEMEN Csilla POP Dan Adrian CIOBANU Dumitru Daniel Project leader : Ahmed RHIAT.
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
Creating a Web Page HTML, FrontPage, Word, Composer.
A detailed guide on how to set-up your printing storefront. Please Note: Storefronts are compatible with all browsers, however for optimal use of the admin.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Preparing for Electronic Distribution Lesson 14.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
IPNexus Briefing Instant Messaging and Collaboration.
Danielle Baldwin, ITS Web Services CMS Administrator Application Overview and Joomla 1.5 RC 1 Highlights.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computer Concepts 2014 Chapter 7 The Web and .
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Modular Software/ Component Software 2 Modular Software Code developed in modules. Modules can then be linked together to produce finished product/program.
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.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
C Copyright © 2009, Oracle. All rights reserved. Appendix C: Service-Oriented Architectures.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury.
Visual Basic Advanced Programming.
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Internet, intranet, and multimedia database processing l Database processing across local and wide area networks l Alternative architectures for distributing.
Terry Henry IS System Manager, SharePoint SME Micron Technology Inc.
Chapter 9 Programming with Web Forms Programming In Visual Basic.NET.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Tutorial 1: Browser Basics.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Microsoft Internet Explorer and the Internet Using Microsoft Explorer 5.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Selenium Web Test Tool Training Discover The Automating Power Of Selenium Author : Girija Prasad Panda Alcatel-Lucent.
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 1.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
XP Browser and Basics COM111 Introduction to Computer Applications.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
Tools for Automated Testing Presented by: Žygimantas Mockus.
XP Creating Web Pages with Microsoft Office
THE NEW MOBILE WORKSPACE Enable Business Applications on Mobile Devices hopTo Work “I am amazed to see how easily hopTo transforms the user interface of.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Progress Apama Fundamentals
Architecture Review 10/11/2004
Introduction ITEC 420.
Web fundamentals: Clients, Servers, and Communication
Web Programming Language
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
What is WWW? The term WWW refers to the World Wide Web or simply the Web. The World Wide Web consists of all the public Web sites connected to the Internet.
Design and Consume DataWindows in Visual Studio 2005
Presentation transcript:

Testing with TestComplete Igor Gershovich Connected Testing, Inc.

Overview About TestComplete Types of Testing with TestComplete TestComplete vs. HP/Mercury QTP Data/Keyword-driven automation

1. About TestComplete

Over 8000 companies own AutomatedQA products

…It’s easy to get started with TestComplete, but to take full advantage of everything that it has to offer you need not only to understand the built-in functionality, but you also need a deep knowledge of your testing trade and software development best practices… Atanas Stoyanov Original Founder of AutomatedQA

Automated Testing TestComplete is an automated testing environment for Win32,.NET and Windows Presentation Foundation (WPF) applications. TestComplete provides extended support for testing Web Pages, Web Servers, Web Services and Projects created in the following development tools:  Microsoft Visual C++/Borland C++ Builder  VB  Delphi  Java .NET  WPF

TestComplete IDE TestComplete IDE includes: Test Project Management Test Execution tool for both manual and automated test cases Reporting Web Load/Performance tool

TestComplete Project Workspace

Supplementary Applications TestExecute is CLI utility allows to execute scripts written with TestComplete and log test results on machines without TestComplete installed. TestRecorder is a set of runtime libraries to be distributed with your 32/64-bit applications. TestRecorder records end- user actions in the binary format that can be converted with TestComplete to scripts.

2. Types of Testing with TestComplete

Testing types Automated  Web  HTTP Load/Performance  Web Services  GUI (Win32,.NET)  Unit  Distributed Manual Coverage with AQTime

Web Testing Web Testing and Firefox Support plug- ins are included in Enterprise edition Browsers:  Microsoft Internet Explorer ver  Mozilla Firefox ver  Any web browser based on the Microsoft WebBrowser control.  Netscape Navigator ver – limited support

Web Testing – Tree Models The web tree models define how elements of the tested web page are shown in the Object Browser panel and how they are addressed in scripts Tree Models:  DOM - HTML elements are in the form of Item(index)  Tag – same form as DOM but sorted by type  Tree - HTML elements have the form ObjectType(Index), for example: Panel(0) - div element, Image ("Logo.gif") - image element  Hybrid (DOM+Tree)

Web Testing settings

HTTP Load/Performance HTTP load testing is only included in Enterprise edition TestComplete can record and reproduce HTTP/HTTPS and SOAP requests that send to Web servers or Web Services Remote Agent is a tool that allows for the distribution of HTTP loads tests across a network of computers

Distributed Load Testing setting

Load Testing results

Web Service testing against WSDL 1. Add the Web services project item to your project  a. Right-Click on the project, select Add | New Item… from the context menu.  b. Select the Web services project item 2. Add a Web Service project item to the Web services Project Item.  a. Right-Click the newly added Web services project item and select Add | New Item… from the context menu.  b. Name the Web Service project Item and click the OK button. 3. Select the WSDL file for the web service.  a. Click the Select button for the Web Service Definition URL.  b. Enter the URL (location) to the web service.  c. Click the Get Services button.  d. Select the Web Service to test from the drop down list.

Web Service testing against WSDL

Web Service Objects and Methods

Web Service testing – with COM ‘Example with known Web Service URL and XML Request – no need for Web Service project item Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1") WinHttpReq.Open "POST", " False Set xmlDoc = CreateObject("Msxml2.DOMDocument") 'loadXML xmlDoc.load( C:\test1.xml) 'Send request WinHttpReq.Send xmlDoc 'Get XML Response XMLResponse = WinHttpReq.ResponseText msgbox XMLResponse

Unit Testing TestComplete can be integrated with: DUnit - A unit test framework for Delphi Applications. JUnit - A standard unit test framework for Java Applications. MSTest - A unit test framework designed by Microsoft for unit testing.NET applications, comes with Visual Studio 2008 and Visual Studio 2005 Team Edition. NUnit - An open-source unit test framework based on JUnit, used for unit testing.NET applications.

Manual Testing

Create a Manual Test

Distributed Testing Distributed Testing is the ability of TestComplete to control test cases running on several computers at the same time In addition to running the tests, the computers involved can communicate with each other using TestComplete.

Distributed Testing with TestComplete and TestExecute

3. TestComplete vs. HP/Mercury QTP (a brief comparison) PLEASE NOTE: THIS SECTION IS ONLY MY OPINION.

TestComplete vs. QTP (Slide 1) Test CompleteQTP Test ManagementYes. Built in.No. Needs Quality Center Cost$2K Enterprise Seat License $8K Seat License Separate Test Execution Module Yes. $200 – TestExecuteNo. Must use Full QTP install. User CommunityMediumBiggest by far Ease of useProgramming background is highly recommended Good for beginners. However, Programming background is needed for advanced automation

TestComplete vs. QTP (Slide 2) Test CompleteQTP SupportExcellent. AutomatedQA personnel actively participates in QAForums Improving. Knowledge Base access is restricted to Paid subscribers Support Cost20% of Purchase price Scripting LanguagesVBScript, Jscript, C# Script, C++ Script, Delphi Script VBScript Version Control Integration YesVia Quality Center only. Descriptive Programming LimitedVery good

TestComplete vs. QTP (Slide 3) Test CompleteQTP Web TestingYes. IE, FirefoxYes. IE (good), Firefox (limited) Manual TestingYesNo. It is Quality Center functionality Web Load/Performance Testing YesNo. This is LoadRunner functionality Web Services TestingYes Unit Testing IntegrationDUnit, JUnit, NUnit, MSTest No. It can be done only in Quality Center.

TestComplete vs. QTP (Slide 4) Test CompleteQTP.NET testingYes PowerBuilder TestingLimitedYes Delphi TestingYes VB TestingYes C++ TestingYes

QAForums.com Visitors/Treads/Posts

4. Data/Keyword-driven automation

Data Driven Plug-In (DDT) DDT uses ADO to access different data elements, such a text files, Excel Spreadsheets, or any ADO compatible database. DDT plug-in supports the creation of three different types of drivers, CVSDriver, ExcelDriver, and ADODriver

DDT Example for DB SQLStatement = "SELECT TOP (100) CustomerID, FirstName, LastName FROM Sales.vIndividualCustomer" ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;" & _ "Persist Security Info=False;" & _ "Initial Catalog=AdventureWorks;Data Source=.\SQLExpress" ' Create Driver Set MyDriver = DDT.ADODriver(ConnectionString,SQLStatement)

Accessing Excel with COM (Not DDT) ' Retrieves Worksheets names starting with 2nd worksheet Function Excel_GetWorksheetNames(sFilename) intSize =0 Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open(sFilename) objExcel.Visible = True For Each objWorksheet in objWorkbook.Sheets If intSize<>0 Then ' skipping first worksheet ReDim Preserve arrNames(intSize-1) arrNames(intSize-1) = objWorksheet.Name End If intSize = intSize + 1 Next objExcel.Quit …

Demo Project Snapshot

Resources “TestComplete Made Easy” by Lino Tadros - Falafel Software Inc “TestComplete: A very brief review” blog by Theo Moore ( ) TestComplete Help System by AutomatedQA

Igor Gershovich Phone: Website: