SlideShare una empresa de Scribd logo
1 de 31
Test Complete
Presentation
Agenda
What is, what to test?
Test Complete IDE
Create projects, tested application
Create/record tests, tests execution
order, run tests
Identify objects
Checkpoints
Work
What is Test Complete?
 Automated testing tool that lets you create,
manage and run tests for any Windows,
Web
 Can test applications that were created in
C#, C++, Delphi, Java, or any other
development language
 Automate your tests and you can run them
anytime, day or night by using a
continuous integration tool or by using
Task Scheduler
SmartBear
 http://smartbear.com/
 User guide:
http://support.smartbear.com/viewarticle/3
2760/?st=0
 Forum:
http://smartbear.com/forums/f81/general-
testcomplete-discussions
 Screencasts and Videos:
http://support.smartbear.com/screencasts/t
estcomplete/
Decide What Test Cases to Automate
 Impossible to automate all testing, in this case
we should automate
 Repetitive tests that run for multiple builds
 Tests that tend to cause human error
 Frequently used functionality that introduces high risk
conditions
 Tests that are impossible to perform manually
 Tests that run on several different hardware or
software platforms and configurations
 Tests that take a lot of effort and time when manual
testing
Divide Your Automated Testing Efforts
 Identify the level of experience and skills for
each of your team members and divide your
automated testing efforts accordingly
 Writing automated test scripts requires expert
knowledge of scripting languages
 Test Complete‘s keyword tests feature (TC7)=
simple series of keywords with a specified
action. With keyword tests, you can simulate
keystrokes, click buttons, select menu items, call
object methods and properties
Keyword Testing
Types of software testing
Unit
Load (WEB)
Keyword-Driven
Manual
Test Complete IDE (1)
 Test Complete’s desktop is organized into a
number of panels (View  Select Panels)
 Project Explorer panel: displays a tree of project
items, their child elements and test log nodes :
Project Suite, Projects, Project Items, Project Items
Elements
Test Complete IDE (2)
 Project Workspace panel: placeholder for different
editors that let you view and modify the contents of
the project suite, project, project item or its child item
you are exploring using the Project Explorer panel
Test Complete IDE (3)
 Object browser panel: lets you explore what
properties, fields, methods and events your
application has. The tree view on the left contains a
list of processes that are currently running in the
operating system and their windows. All processes
are direct children of System (the Sys object in
scripts), and windows are children of the process that
opened them
Test Complete IDE (4)
 Object spy:
lets you
explore and
capture
onscreen
objects by
moving the
mouse to them
on screen.
Test Complete IDE (5)
 Debugging panels: Call Stack, Locals, Breakpoints,
Watch List
Create Projects
 Project Suite  Right-click  Add new Item
 File  New  New Project
 Choose programming language
 Default content contains
 Events
 Unit test
 Keyword test
Tested Application (1)
 Each project may have a list of tested
applications
Tested Application (2)
 Launch tested application
 Workspace  Right-click Run Selected
 Scripts
 Recording
Creating Tests
 Define the test goal: functionalities to be tested,
create a simple test aimed at one objective only
 Plan testing steps: decide which actions the
test will perform
 Check test results: decide how to determine
that the test passed successfully or failed
 Logging the result: file, images, test complete
log
 Create you test
Recording Tests
 To start the recording, select Script | Record
from Test Complete’s main menu or press
Record on the Test Engine toolbar
Editing and Writing Scripts (1)
 First record a script and then modify it
 Create new scripts manually without recording
anything
 Syntax highlighting (for each of the supported
languages, the Code Editor uses syntax color
highlighting - different fonts and colors for different code
elements, making them easier to locate and
distinguish.)
 Outlining
 Code templates
 Code navigation (CTRL+function)
Specifying Execution Order for Tests
 Create the desired test items, specify their
execution flow and modify properties on the Test
Items page of the project editor
 Double click Project and enter order in
WorkspaceTest Items
Running the Created Test
 Run from Application Menu: solution, project,
script
 Run from Tested Items
 Run from Code Editor
 Run from Project Explorer
Analyzing Test Results
 Test Log
Log
 Test Log
Checkpoints
 Comparison (or verification) operation that is
performed during testing
 Perform verifications of different kinds:
 If you test a new control, you may need to verify that
after a user performs actions, certain control’s
properties contain the appropriate values. The
operation that will check the property value is called a
property checkpoint.
 If the tested application exports data to a file, you may
need to compare this file with a baseline copy. This
check is called a file checkpoint. Similarly, to verify that
the application changes the database as expected, you
create a database checkpoint.
Object Checkpoints
 Verifying several properties of the object with a
single test command
 Object checkpoints obtain the specified object in
your application (this object must exist at that
moment), verify that some or all properties of the
object and, optionally, its child objects contain
the expected values and report the results.
 The baseline data used by the object checkpoint
for comparison is stored in the Stores | Objects
collection of your project.
 Objects.CheckpointName.Check
Property Checkpoints
 Verifies that an object property has the expected
value in the tested application. For example, it
verifies the text in a text box or the state of a
check box. This helps you check whether your
tested application works correctly.
 In scripts, property checkpoints are performed
using the aqObject.CheckProperty method:
aqObject.CheckProperty(Aliases.Orders.MainForm.OrdersView,
"wItem(5, 0)", cmpContains, "Mark Twain")
Table Checkpoints
 Quite often applications use controls that display
information in a tabular form. During testing, you
may need to verify that these controls contain the
appropriate data.
 Use table checkpoints to verify data in the
following controls: Microsoft DataGridView
controls, Microsoft DataGrid .NET controls,
Microsoft PropertyGrid controls, Developer
Express XtraGrid controls, Developer Express
QuantumGrid controls etc
File Checkpoints
 During testing, you may need to check whether a
file stores the appropriate data. This may be
needed if your application exports some data, for
example, the customers list, to a file and you
need to check whether the exporting procedure
functions properly
 File.Check
Region Checkpoints
 One of the most common testing tasks is to verify
that an application’s window or control is
displayed correctly. This can be done by
comparing the actual image of the object with the
previously captured baseline image stored in your
test project.
 Regions.Compare
Work (1)
 Create a new solution with a project. Open
NotepadFont dialog and set Times New Roman
Bold 36. Reopen dialog and check if the values
were stored.
 Create a new solution with a project. Add as
tested application
c:UsersPublicDocumentsTestComplete 9
SamplesWorking With GridsMicrosoft
DataGridDataGridSamplebinReleaseDataGrid
Sample.exe. Create a test that modifies the table
content and performs a table checkpoint.
Work (2)
 Create a new solution with a project. Add
DataGridSample.exe as a Tested Application. Copy all
content of the grid in a notepad, save the file and perform
a file checkpoint. Write in logs all steps that you are
performing. Use aqFile object to work with files
 Create a function to report the testing results as .mht in
foder Reports (relative to current project path)
 Use Project["ConfigPath"] to take the path for the project
 Use aqFileSystem to delete folder Reports if exists
 Use Log.SaveResultsAs function to store the results
 Run this project from Task Scheduler
 ActionProgram/script: “…TestComplete.exe"
 Actionargument“…ProjectSuite1.pjs" /r /e

Más contenido relacionado

La actualidad más candente

Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with seleniumTzirla Rozental
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Edureka!
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation OmarUsman6
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaEdureka!
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.pptAna Sarbescu
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual TestingDirecti Group
 
What is Regression Testing? | Edureka
What is Regression Testing? | EdurekaWhat is Regression Testing? | Edureka
What is Regression Testing? | EdurekaEdureka!
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologiesMesut Günes
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
[Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation [Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation Katalon Studio
 
Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Mindfire Solutions
 

La actualidad más candente (20)

Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium Data driven Automation Framework with Selenium
Data driven Automation Framework with Selenium
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation
 
Cucumber ppt
Cucumber pptCucumber ppt
Cucumber ppt
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | Edureka
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 
What is Regression Testing? | Edureka
What is Regression Testing? | EdurekaWhat is Regression Testing? | Edureka
What is Regression Testing? | Edureka
 
Manual testing
Manual testingManual testing
Manual testing
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
BDD with Cucumber
BDD with CucumberBDD with Cucumber
BDD with Cucumber
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologies
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
[Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation [Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation
 
Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)
 
Selenium
SeleniumSelenium
Selenium
 
Software test life cycle
Software test life cycleSoftware test life cycle
Software test life cycle
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 

Similar a Test Complete

Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7Hoamuoigio Hoa
 
Getting started with_testcomplete
Getting started with_testcompleteGetting started with_testcomplete
Getting started with_testcompleteankit.das
 
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosUnit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosFlutter Agency
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorialpingkapil
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentationtechgajanan
 
Qtp 9.2 examples
Qtp 9.2 examplesQtp 9.2 examples
Qtp 9.2 examplesmedsherb
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professionalsunny.deb
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anilguest3373d3
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorialguest37ae7f
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769subhasis100
 
qtp 9.2 features
qtp 9.2 featuresqtp 9.2 features
qtp 9.2 featureskrishna3032
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorialsasidhar
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769subhasis100
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtpRamu Palanki
 

Similar a Test Complete (20)

Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
 
Getting started with_testcomplete
Getting started with_testcompleteGetting started with_testcomplete
Getting started with_testcomplete
 
QTP Online Training
QTP Online TrainingQTP Online Training
QTP Online Training
 
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex ScenariosUnit Testing in Flutter - From Workflow Essentials to Complex Scenarios
Unit Testing in Flutter - From Workflow Essentials to Complex Scenarios
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
 
Testing
Testing Testing
Testing
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Coded ui test
Coded ui testCoded ui test
Coded ui test
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
 
Qtp 9.2 examples
Qtp 9.2 examplesQtp 9.2 examples
Qtp 9.2 examples
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Qtp 92 Tutorial Anil
Qtp 92 Tutorial AnilQtp 92 Tutorial Anil
Qtp 92 Tutorial Anil
 
Qtp 9.2 Tutorial
Qtp 9.2 TutorialQtp 9.2 Tutorial
Qtp 9.2 Tutorial
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
qtp 9.2 features
qtp 9.2 featuresqtp 9.2 features
qtp 9.2 features
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
 
Qtp 92 Tutorial769
Qtp 92 Tutorial769Qtp 92 Tutorial769
Qtp 92 Tutorial769
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 

Último

WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...marcuskenyatta275
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024TopCSSGallery
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKUXDXConf
 

Último (20)

WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 

Test Complete

  • 2. Agenda What is, what to test? Test Complete IDE Create projects, tested application Create/record tests, tests execution order, run tests Identify objects Checkpoints Work
  • 3. What is Test Complete?  Automated testing tool that lets you create, manage and run tests for any Windows, Web  Can test applications that were created in C#, C++, Delphi, Java, or any other development language  Automate your tests and you can run them anytime, day or night by using a continuous integration tool or by using Task Scheduler
  • 4. SmartBear  http://smartbear.com/  User guide: http://support.smartbear.com/viewarticle/3 2760/?st=0  Forum: http://smartbear.com/forums/f81/general- testcomplete-discussions  Screencasts and Videos: http://support.smartbear.com/screencasts/t estcomplete/
  • 5. Decide What Test Cases to Automate  Impossible to automate all testing, in this case we should automate  Repetitive tests that run for multiple builds  Tests that tend to cause human error  Frequently used functionality that introduces high risk conditions  Tests that are impossible to perform manually  Tests that run on several different hardware or software platforms and configurations  Tests that take a lot of effort and time when manual testing
  • 6. Divide Your Automated Testing Efforts  Identify the level of experience and skills for each of your team members and divide your automated testing efforts accordingly  Writing automated test scripts requires expert knowledge of scripting languages  Test Complete‘s keyword tests feature (TC7)= simple series of keywords with a specified action. With keyword tests, you can simulate keystrokes, click buttons, select menu items, call object methods and properties
  • 8. Types of software testing Unit Load (WEB) Keyword-Driven Manual
  • 9. Test Complete IDE (1)  Test Complete’s desktop is organized into a number of panels (View  Select Panels)  Project Explorer panel: displays a tree of project items, their child elements and test log nodes : Project Suite, Projects, Project Items, Project Items Elements
  • 10. Test Complete IDE (2)  Project Workspace panel: placeholder for different editors that let you view and modify the contents of the project suite, project, project item or its child item you are exploring using the Project Explorer panel
  • 11. Test Complete IDE (3)  Object browser panel: lets you explore what properties, fields, methods and events your application has. The tree view on the left contains a list of processes that are currently running in the operating system and their windows. All processes are direct children of System (the Sys object in scripts), and windows are children of the process that opened them
  • 12. Test Complete IDE (4)  Object spy: lets you explore and capture onscreen objects by moving the mouse to them on screen.
  • 13. Test Complete IDE (5)  Debugging panels: Call Stack, Locals, Breakpoints, Watch List
  • 14. Create Projects  Project Suite  Right-click  Add new Item  File  New  New Project  Choose programming language  Default content contains  Events  Unit test  Keyword test
  • 15. Tested Application (1)  Each project may have a list of tested applications
  • 16. Tested Application (2)  Launch tested application  Workspace  Right-click Run Selected  Scripts  Recording
  • 17. Creating Tests  Define the test goal: functionalities to be tested, create a simple test aimed at one objective only  Plan testing steps: decide which actions the test will perform  Check test results: decide how to determine that the test passed successfully or failed  Logging the result: file, images, test complete log  Create you test
  • 18. Recording Tests  To start the recording, select Script | Record from Test Complete’s main menu or press Record on the Test Engine toolbar
  • 19. Editing and Writing Scripts (1)  First record a script and then modify it  Create new scripts manually without recording anything  Syntax highlighting (for each of the supported languages, the Code Editor uses syntax color highlighting - different fonts and colors for different code elements, making them easier to locate and distinguish.)  Outlining  Code templates  Code navigation (CTRL+function)
  • 20. Specifying Execution Order for Tests  Create the desired test items, specify their execution flow and modify properties on the Test Items page of the project editor  Double click Project and enter order in WorkspaceTest Items
  • 21. Running the Created Test  Run from Application Menu: solution, project, script  Run from Tested Items  Run from Code Editor  Run from Project Explorer
  • 24. Checkpoints  Comparison (or verification) operation that is performed during testing  Perform verifications of different kinds:  If you test a new control, you may need to verify that after a user performs actions, certain control’s properties contain the appropriate values. The operation that will check the property value is called a property checkpoint.  If the tested application exports data to a file, you may need to compare this file with a baseline copy. This check is called a file checkpoint. Similarly, to verify that the application changes the database as expected, you create a database checkpoint.
  • 25. Object Checkpoints  Verifying several properties of the object with a single test command  Object checkpoints obtain the specified object in your application (this object must exist at that moment), verify that some or all properties of the object and, optionally, its child objects contain the expected values and report the results.  The baseline data used by the object checkpoint for comparison is stored in the Stores | Objects collection of your project.  Objects.CheckpointName.Check
  • 26. Property Checkpoints  Verifies that an object property has the expected value in the tested application. For example, it verifies the text in a text box or the state of a check box. This helps you check whether your tested application works correctly.  In scripts, property checkpoints are performed using the aqObject.CheckProperty method: aqObject.CheckProperty(Aliases.Orders.MainForm.OrdersView, "wItem(5, 0)", cmpContains, "Mark Twain")
  • 27. Table Checkpoints  Quite often applications use controls that display information in a tabular form. During testing, you may need to verify that these controls contain the appropriate data.  Use table checkpoints to verify data in the following controls: Microsoft DataGridView controls, Microsoft DataGrid .NET controls, Microsoft PropertyGrid controls, Developer Express XtraGrid controls, Developer Express QuantumGrid controls etc
  • 28. File Checkpoints  During testing, you may need to check whether a file stores the appropriate data. This may be needed if your application exports some data, for example, the customers list, to a file and you need to check whether the exporting procedure functions properly  File.Check
  • 29. Region Checkpoints  One of the most common testing tasks is to verify that an application’s window or control is displayed correctly. This can be done by comparing the actual image of the object with the previously captured baseline image stored in your test project.  Regions.Compare
  • 30. Work (1)  Create a new solution with a project. Open NotepadFont dialog and set Times New Roman Bold 36. Reopen dialog and check if the values were stored.  Create a new solution with a project. Add as tested application c:UsersPublicDocumentsTestComplete 9 SamplesWorking With GridsMicrosoft DataGridDataGridSamplebinReleaseDataGrid Sample.exe. Create a test that modifies the table content and performs a table checkpoint.
  • 31. Work (2)  Create a new solution with a project. Add DataGridSample.exe as a Tested Application. Copy all content of the grid in a notepad, save the file and perform a file checkpoint. Write in logs all steps that you are performing. Use aqFile object to work with files  Create a function to report the testing results as .mht in foder Reports (relative to current project path)  Use Project["ConfigPath"] to take the path for the project  Use aqFileSystem to delete folder Reports if exists  Use Log.SaveResultsAs function to store the results  Run this project from Task Scheduler  ActionProgram/script: “…TestComplete.exe"  Actionargument“…ProjectSuite1.pjs" /r /e