SlideShare une entreprise Scribd logo
1  sur  39
Testing with TestComplete

Igor Gershovich
Connected Testing, Inc.
www.connectedtesting.com
igershovich@connectedtesting.com
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 enduser 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 plugins are included in Enterprise edition
 Browsers:


 Microsoft

Internet Explorer ver. 5 - 7.
 Mozilla Firefox ver. 1.5.0.1 - 3.0.
 Any web browser based on the Microsoft
WebBrowser control.
 Netscape Navigator ver. 8.1.2 – 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





2. Add a Web Service project item to the Web services
Project Item.





a. Right-Click on the project, select Add | New Item… from the
context menu.
b. Select 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", "http://servername:25000/node/test", 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 Complete

QTP

Test Management

Yes. Built in.

No. Needs Quality
Center

Cost

$2K Enterprise Seat
License

$8K Seat License

Separate Test Execution
Module

Yes. $200 – TestExecute No. Must use Full QTP
install.

User Community

Medium

Biggest by far

Ease of use

Programming
background is highly
recommended

Good for beginners.
However, Programming
background is needed
for advanced automation
TestComplete vs. QTP (Slide 2)
Test Complete

QTP

Support

Excellent. AutomatedQA
personnel actively
participates in QAForums

Improving. Knowledge
Base access is restricted
to Paid subscribers

Support Cost

20% of Purchase price

20% of Purchase price

Scripting Languages

VBScript, Jscript, C# Script,
C++ Script, Delphi Script

VBScript

Version Control
Integration

Yes

Via Quality Center only.

Descriptive
Programming

Limited

Very good
TestComplete vs. QTP (Slide 3)
Test Complete

QTP

Web Testing

Yes. IE, Firefox

Yes. IE (good), Firefox
(limited)

Manual Testing

Yes

No. It is Quality Center
functionality

Web Load/Performance
Testing

Yes

No. This is LoadRunner
functionality

Web Services Testing

Yes

Yes

Unit Testing Integration

DUnit, JUnit, NUnit,
MSTest

No. It can be done only
in Quality Center.
TestComplete vs. QTP (Slide 4)
Test Complete

QTP

.NET testing

Yes

Yes

PowerBuilder Testing

Limited

Yes

Delphi Testing

Yes

Yes

VB Testing

Yes

Yes

C++ Testing

Yes

Yes
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 (
http://geekswithblogs.net/tmoore/archive/2008/11/12/126972.aspx )
TestComplete Help System by AutomatedQA
Igor Gershovich




E-Mail: igershovich@connectedtesting.com
Phone: 720-933-9395
Website: www.connectedtesting.com

Contenu connexe

Tendances

Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application TestingSWAAM Tech
 
Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)Archana Krushnan
 
Mobile application testing
Mobile application testingMobile application testing
Mobile application testingSoftheme
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation OmarUsman6
 
Appium: Automation for Mobile Apps
Appium: Automation for Mobile AppsAppium: Automation for Mobile Apps
Appium: Automation for Mobile AppsSauce Labs
 
Basic interview questions for manual testing
Basic interview questions for manual testingBasic interview questions for manual testing
Basic interview questions for manual testingJYOTI RANJAN PAL
 
A Top Down Approach to End-to-End Testing
A Top Down Approach to End-to-End TestingA Top Down Approach to End-to-End Testing
A Top Down Approach to End-to-End TestingSmartBear
 
Automation With Appium
Automation With AppiumAutomation With Appium
Automation With AppiumKnoldus Inc.
 
Automation test framework with cucumber – BDD
Automation test framework with cucumber – BDDAutomation test framework with cucumber – BDD
Automation test framework with cucumber – BDD123abcda
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testingQualitest
 
Mobile Application Testing Training Presentation
Mobile Application Testing Training PresentationMobile Application Testing Training Presentation
Mobile Application Testing Training PresentationMobiGnosis
 
Mobile Application Testing Strategy
Mobile Application Testing StrategyMobile Application Testing Strategy
Mobile Application Testing StrategyankitQA
 
Mobile Testing Service Desk_Own.ppt
Mobile Testing Service Desk_Own.pptMobile Testing Service Desk_Own.ppt
Mobile Testing Service Desk_Own.pptQA Programmer
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech suhasreddy1
 

Tendances (20)

Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application Testing
 
Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)
 
Mobile application testing
Mobile application testingMobile application testing
Mobile application testing
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation
 
Appium: Automation for Mobile Apps
Appium: Automation for Mobile AppsAppium: Automation for Mobile Apps
Appium: Automation for Mobile Apps
 
Mobile App Testing
Mobile App TestingMobile App Testing
Mobile App Testing
 
Basic interview questions for manual testing
Basic interview questions for manual testingBasic interview questions for manual testing
Basic interview questions for manual testing
 
A Top Down Approach to End-to-End Testing
A Top Down Approach to End-to-End TestingA Top Down Approach to End-to-End Testing
A Top Down Approach to End-to-End Testing
 
Automation With Appium
Automation With AppiumAutomation With Appium
Automation With Appium
 
Automation test framework with cucumber – BDD
Automation test framework with cucumber – BDDAutomation test framework with cucumber – BDD
Automation test framework with cucumber – BDD
 
Introduction & Manual Testing
Introduction & Manual TestingIntroduction & Manual Testing
Introduction & Manual Testing
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
 
Mobile Application Testing Training Presentation
Mobile Application Testing Training PresentationMobile Application Testing Training Presentation
Mobile Application Testing Training Presentation
 
Mobile Application Testing Strategy
Mobile Application Testing StrategyMobile Application Testing Strategy
Mobile Application Testing Strategy
 
Mobile Testing Service Desk_Own.ppt
Mobile Testing Service Desk_Own.pptMobile Testing Service Desk_Own.ppt
Mobile Testing Service Desk_Own.ppt
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
Appium solution
Appium solutionAppium solution
Appium solution
 
Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech
 
Mobile Application Development - Guide 2020
Mobile Application Development - Guide 2020Mobile Application Development - Guide 2020
Mobile Application Development - Guide 2020
 

En vedette

Script Driven Testing using TestComplete
Script Driven Testing using TestCompleteScript Driven Testing using TestComplete
Script Driven Testing using TestCompletesrivinayak
 
Automation Testing with TestComplete
Automation Testing with TestCompleteAutomation Testing with TestComplete
Automation Testing with TestCompleteRomSoft SRL
 
Coding using jscript test complete
Coding using jscript test completeCoding using jscript test complete
Coding using jscript test completeViresh Doshi
 
Keyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompleteKeyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompletesrivinayak
 
TestComplete 7.50 New Features
TestComplete 7.50 New FeaturesTestComplete 7.50 New Features
TestComplete 7.50 New FeaturesVlad Kuznetsov
 
social prez - mpcc - mholterhaus
social prez - mpcc - mholterhaussocial prez - mpcc - mholterhaus
social prez - mpcc - mholterhausmholterhaus
 
Web Service Testing using TestComplete
Web Service Testing using TestCompleteWeb Service Testing using TestComplete
Web Service Testing using TestCompletesrivinayak
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkMikhail Subach
 

En vedette (10)

Script Driven Testing using TestComplete
Script Driven Testing using TestCompleteScript Driven Testing using TestComplete
Script Driven Testing using TestComplete
 
Automation Testing with TestComplete
Automation Testing with TestCompleteAutomation Testing with TestComplete
Automation Testing with TestComplete
 
Test complete, work done so far
Test complete, work done so farTest complete, work done so far
Test complete, work done so far
 
Testing_with_TestComplete
Testing_with_TestCompleteTesting_with_TestComplete
Testing_with_TestComplete
 
Coding using jscript test complete
Coding using jscript test completeCoding using jscript test complete
Coding using jscript test complete
 
Keyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompleteKeyword Driven Testing using TestComplete
Keyword Driven Testing using TestComplete
 
TestComplete 7.50 New Features
TestComplete 7.50 New FeaturesTestComplete 7.50 New Features
TestComplete 7.50 New Features
 
social prez - mpcc - mholterhaus
social prez - mpcc - mholterhaussocial prez - mpcc - mholterhaus
social prez - mpcc - mholterhaus
 
Web Service Testing using TestComplete
Web Service Testing using TestCompleteWeb Service Testing using TestComplete
Web Service Testing using TestComplete
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation Framework
 

Similaire à Testing with test_complete

Justmeans power point
Justmeans power pointJustmeans power point
Justmeans power pointjustmeanscsr
 
Test strategy for web development
Test strategy for web developmentTest strategy for web development
Test strategy for web developmentalice yang
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymorePragya Rastogi
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netajmal_fuuast
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professionalsunny.deb
 
How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012Chen-Tien Tsai
 
Whats New In 2010 (Msdn & Visual Studio)
Whats New In 2010 (Msdn & Visual Studio)Whats New In 2010 (Msdn & Visual Studio)
Whats New In 2010 (Msdn & Visual Studio)Steve Lange
 
Felix Ramos_Automation Programmer Analyst_QA
Felix Ramos_Automation Programmer Analyst_QAFelix Ramos_Automation Programmer Analyst_QA
Felix Ramos_Automation Programmer Analyst_QAFelix Ramos
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Testing in Craft CMS
Testing in Craft CMSTesting in Craft CMS
Testing in Craft CMSJustinHolt20
 
Testing of React JS app
Testing of React JS appTesting of React JS app
Testing of React JS appAleks Zinevych
 
Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008Jonas Follesø
 
BDD/TDD based automation on short-term project on real example, Igor Kokoz
BDD/TDD based automation on short-term project on real example, Igor Kokoz BDD/TDD based automation on short-term project on real example, Igor Kokoz
BDD/TDD based automation on short-term project on real example, Igor Kokoz Sigma Software
 
Behavior Driven Development by Example
Behavior Driven Development by ExampleBehavior Driven Development by Example
Behavior Driven Development by ExampleNalin Goonawardana
 
Pragmatic Parallels: Java and JavaScript
Pragmatic Parallels: Java and JavaScriptPragmatic Parallels: Java and JavaScript
Pragmatic Parallels: Java and JavaScriptdavejohnson
 

Similaire à Testing with test_complete (20)

Justmeans power point
Justmeans power pointJustmeans power point
Justmeans power point
 
JMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar pptJMeter_ Cubet Seminar ppt
JMeter_ Cubet Seminar ppt
 
Test strategy for web development
Test strategy for web developmentTest strategy for web development
Test strategy for web development
 
Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymore
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.net
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012How to make a Load Testing with Visual Studio 2012
How to make a Load Testing with Visual Studio 2012
 
Whats New In 2010 (Msdn & Visual Studio)
Whats New In 2010 (Msdn & Visual Studio)Whats New In 2010 (Msdn & Visual Studio)
Whats New In 2010 (Msdn & Visual Studio)
 
Felix Ramos_Automation Programmer Analyst_QA
Felix Ramos_Automation Programmer Analyst_QAFelix Ramos_Automation Programmer Analyst_QA
Felix Ramos_Automation Programmer Analyst_QA
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Testing in Craft CMS
Testing in Craft CMSTesting in Craft CMS
Testing in Craft CMS
 
Testing of React JS app
Testing of React JS appTesting of React JS app
Testing of React JS app
 
Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008Silverlight 2 for Developers - TechEd New Zealand 2008
Silverlight 2 for Developers - TechEd New Zealand 2008
 
BDD/TDD based automation on short-term project on real example, Igor Kokoz
BDD/TDD based automation on short-term project on real example, Igor Kokoz BDD/TDD based automation on short-term project on real example, Igor Kokoz
BDD/TDD based automation on short-term project on real example, Igor Kokoz
 
Behavior Driven Development by Example
Behavior Driven Development by ExampleBehavior Driven Development by Example
Behavior Driven Development by Example
 
Pragmatic Parallels: Java and JavaScript
Pragmatic Parallels: Java and JavaScriptPragmatic Parallels: Java and JavaScript
Pragmatic Parallels: Java and JavaScript
 

Dernier

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Testing with test_complete

  • 1. Testing with TestComplete Igor Gershovich Connected Testing, Inc. www.connectedtesting.com igershovich@connectedtesting.com
  • 2. Overview About TestComplete  Types of Testing with TestComplete  TestComplete vs. HP/Mercury QTP  Data/Keyword-driven automation 
  • 4. Over 8000 companies own AutomatedQA products
  • 5. …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
  • 6. 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
  • 7. TestComplete IDE TestComplete IDE includes:  Test Project Management  Test Execution tool for both manual and automated test cases  Reporting  Web Load/Performance tool 
  • 9. 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 enduser actions in the binary format that can be converted with TestComplete to scripts. 
  • 10. 2. Types of Testing with TestComplete
  • 11. Testing types  Automated  Web  HTTP Load/Performance  Web Services  GUI (Win32, .NET)  Unit  Distributed Manual  Coverage with AQTime 
  • 12. Web Testing Web Testing and Firefox Support plugins are included in Enterprise edition  Browsers:   Microsoft Internet Explorer ver. 5 - 7.  Mozilla Firefox ver. 1.5.0.1 - 3.0.  Any web browser based on the Microsoft WebBrowser control.  Netscape Navigator ver. 8.1.2 – limited support
  • 13. 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)
  • 15. 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 
  • 18. Web Service testing against WSDL  1. Add the Web services project item to your project    2. Add a Web Service project item to the Web services Project Item.    a. Right-Click on the project, select Add | New Item… from the context menu. b. Select 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.
  • 19. Web Service testing against WSDL
  • 20. Web Service Objects and Methods
  • 21. 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", "http://servername:25000/node/test", 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
  • 22. 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.
  • 25. 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. 
  • 27. 3. TestComplete vs. HP/Mercury QTP (a brief comparison) PLEASE NOTE: THIS SECTION IS ONLY MY OPINION.
  • 28. TestComplete vs. QTP (Slide 1) Test Complete QTP Test Management Yes. Built in. No. Needs Quality Center Cost $2K Enterprise Seat License $8K Seat License Separate Test Execution Module Yes. $200 – TestExecute No. Must use Full QTP install. User Community Medium Biggest by far Ease of use Programming background is highly recommended Good for beginners. However, Programming background is needed for advanced automation
  • 29. TestComplete vs. QTP (Slide 2) Test Complete QTP Support Excellent. AutomatedQA personnel actively participates in QAForums Improving. Knowledge Base access is restricted to Paid subscribers Support Cost 20% of Purchase price 20% of Purchase price Scripting Languages VBScript, Jscript, C# Script, C++ Script, Delphi Script VBScript Version Control Integration Yes Via Quality Center only. Descriptive Programming Limited Very good
  • 30. TestComplete vs. QTP (Slide 3) Test Complete QTP Web Testing Yes. IE, Firefox Yes. IE (good), Firefox (limited) Manual Testing Yes No. It is Quality Center functionality Web Load/Performance Testing Yes No. This is LoadRunner functionality Web Services Testing Yes Yes Unit Testing Integration DUnit, JUnit, NUnit, MSTest No. It can be done only in Quality Center.
  • 31. TestComplete vs. QTP (Slide 4) Test Complete QTP .NET testing Yes Yes PowerBuilder Testing Limited Yes Delphi Testing Yes Yes VB Testing Yes Yes C++ Testing Yes Yes
  • 34. 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 
  • 35. 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)
  • 36. 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 …
  • 38. Resources    “TestComplete Made Easy” by Lino Tadros - Falafel Software Inc “TestComplete: A very brief review” blog by Theo Moore ( http://geekswithblogs.net/tmoore/archive/2008/11/12/126972.aspx ) TestComplete Help System by AutomatedQA
  • 39. Igor Gershovich    E-Mail: igershovich@connectedtesting.com Phone: 720-933-9395 Website: www.connectedtesting.com