
Master Testcomplete with Python introduces the IDE, project explorer, Object Spy, and name mapping, then covers Python basics, checkpoints, web testing, and event handling for robust automation.
Log in to my.smartbear.com to view your TestComplete license, download and install, then activate the 14-day trial.
Explore Testcomplete's file menu, toolbar, and startup page to manage projects and suites. Learn to open, save, print, and customize with commands like git pull, push, and commit.
Explore the TestComplete project workspace and project explorer to manage projects, project suites, and items, learn the four creation methods, and understand the project versus project suite distinction.
Switch TestComplete to record in script using Python for this course, then record a Notepad session to type good morning and press enter, illustrating Python function creation and name mapping.
Explore how the test visualizer captures screenshots for clicks and keyboard actions, shows a gutter, compares images for success, and can be turned off to save disk space.
Use bookmarks in TestComplete Python to navigate long unit files. Create and toggle bookmarks up to ten per unit, then jump with keyboard shortcuts such as Ctrl+7 or Ctrl+8.
Learn to use TestComplete's search window to find and replace across documents and projects, using control F, find next, find all, and persistent results for easy navigation.
Explore todo window as poor man's project management in TestComplete by using a to do directive in comments with priority, owner, and category; track todo and done states.
Explore TestComplete's object browser, the brain of the tool, to inspect processes, memory, and visual and non-visual objects. Learn to highlight UI elements and use advanced view for deeper inspection.
Use the object spy in TestComplete to identify UI elements by dragging to capture an object or with point-and-fix using Shift control A, which highlights objects in the object browser.
Learn Python basics, including integers, floats, strings, and booleans, using Visual Studio Code and optional Jupyter notebooks, with awareness of Python interpreters.
Create a Python script in TestComplete, define a calc function, and log the result to the suite logs, illustrating Python use in Visual Studio and notebooks.
Explore variables in Python, highlighting dynamic typing, value reassignment, and type compatibility with strings and numbers. Adopt snake_case naming with underscores, avoid starting with digits, and readability for TestComplete projects.
Explore Python control flow with if, elif, and else statements, showing how indentation and truthy conditions select a single code path, and noting switch as an alternative.
Explore defining and calling Python functions in Testcomplete, learning about returns versus prints, parameter handling, default values, and the benefits of using keyword arguments for clarity.
Explore scope in Python by contrasting local, global, and project-level variables in TestComplete, and learn how to declare and access project variables to share data across units.
Explore Python lists, indexing, and length calculations; learn to append items, use negative indexing for end elements, and distinguish between functions and methods with practical examples.
Learn how to use dictionaries in Python to store key-value pairs, access values with get, add new keys, and check for key existence with the in operator.
Master Python loops with for loops, range, and list comprehensions by iterating over lists, logging items, filtering with conditions, building a modified list, and transforming numbers.
learn how to handle errors in python using try-except blocks, catch specific exceptions like zero division and name errors, and continue execution with logging.
Create and use Python classes as blueprints for objects, define constructors with __init__, manage attributes like name color and weight, instantiate objects, and update attributes while using methods and logs.
Learn Python essentials for Testcomplete, including variables, integers, floats, strings, if and elif statements, functions vs methods, scoping, lists, dictionaries, for loops, exceptions, and classes with constructors and self attributes.
Master name mapping in TestComplete by exploring mapped objects, the alias window, and hierarchical aliasing; rename objects, and use aliases in Python with Notepad example.
With multiple Notepad instances, extend name mapping beyond process name, using the index to reliably target the first instance and avoid ambiguous calls.
Learn how name mapping and aliasing improve readability and maintainability by using friendly aliases like Notepad text editor, and updating one alias to swap underlying controls without touching code.
Learn how name mapping uses conditional mode to locate UI elements by left property, right value, and condition, and to try alternatives like text boxes or drop-downs when not found.
Discover how to obtain and install TestComplete samples, using checkpoints and stores to manage images, files, properties, objects, XML, databases, and grids, with guidance to the public documents path.
Run the orders.exe desktop sample in TestComplete with Python 2023, exercising dotnet c sharp, delphi, pascal, c++, java swing, and wpf variants and a binary tbl grid for checkpoints.
Create an image checkpoint in TestComplete with Python, capture and store a toolbar reference image, and compare live screenshots pixel-by-pixel using masks and tolerance, with update options.
Learn how to perform file checkpoints in TestComplete with Python, compare files byte-by-byte, manage the store of good files, and use hash-based comparisons to verify exact matches.
Learn to create property checkpoints in TestComplete by validating a text box's w text value for Steve Jones using Python or the built-in wizard for reliable UI checks.
explore TestComplete's table checkpoint for grids, using object spy to map a grid, recognize cells, and store expected rows while generating Python code for automated checks.
Create a database checkpoint in TestComplete by using a connection string to SQL Server or other databases, then verify data against DB tables.
Learn data driven testing with TestComplete using Python scripts, record a new order in a sample app, and understand aliasing, piping, and how the recorder generates structured test code.
Use data driven testing in TestComplete with a CSV file, leveraging DDT and current driver value to feed records, using headers and mapped columns.
Learn to organize test logs in data driven testing using the log object's append folder and pop log folder to create per-record folders under a root.
Discover how to drive tests from Excel data in TestComplete with Python, including preparing an Excel workbook, saving as xlsx, and choosing the ace driver for faster data access.
Learn to drive tests with data from a sql server using TestComplete and Python, supplying a connection string and a data set (table, view, or query) to feed test data.
Master how to control data-driven tests with a while loop in Python, selectively running tests for matching records and debugging with breakpoints and watch lists.
Learn how TestComplete with Python inspects a web page by traversing the DOM, uses the object spy to identify elements, and edits inner HTML programmatically.
Use web comparison checkpoints in Python with TestComplete to save a known good page in a web testing store, then compare live pages by links, images, or inputs.
Demonstrates web accessibility testing with TestComplete in Python, performing 508 checks on alt attributes, image sizes, page title, tab indexes, links, and server-side images, with a final report.
Learn how TestComplete integrates Google Lighthouse to audit website performance, accessibility, SEO, and PWAs, with desktop and mobile runs and in tool reports.
Record a Python script on the web order sample site with TestComplete, run across Edge, Firefox, or Chrome, using name mapping, page wait, and password variables.
Refactor test suites in TestComplete with Python by organizing scripts into atomic functions and folders, enabling reusable login and web store units across the team.
Explore how TestComplete uses run, launch, and tested applications to manage browsers like Edge. Run waits for startup, launch starts without waiting, and tested applications launch specific executables.
Master XPath and CSS selectors for web testing instead of name mapping; learn fallback strategies when selectors change, and handle dynamic login forms with unique identifiers.
Create a new test project in TestComplete and enable name mapping. For web testing, compare name mapping to XPath and CSS selectors, noting uniqueness and ambiguity challenges.
Explore creating and using an execution plan in TestComplete, add test items, map names, and run the project for a comprehensive execution report.
Learn to pass parameters to execution plans in TestComplete by turning hard-coded values into parameters, specifying string types or variants, and setting default values.
Learn how TestComplete handles errors and how to change the on error playback setting in current project properties to continue running.
explain the difference between test items and child test items in execution plan, showing indentation and on error settings that govern whether children run after a parent.
Explore low level procedures in TestComplete with Python, focusing on window coordinates, mouse movement, and activating the target window to reliably script on-screen actions.
Create and integrate user forms in TestComplete to design dialogs with input fields and buttons for test interactions, using modal dialogs to pause execution until user input.
Access dialog objects and modal results from a Python script to handle ok or cancel and write user input to notepad using a login form.
Mastering TestComplete with Python Scripting 2023 with over 60 lessons that will demonstrate the power of TestComplete performing functional testing and UX testing while using the Python language as the driving force behind the scripting of Test Suites.
The course will go through the following topics:
Introduction to the IDE
Menus and Toolbars
Project Workspace
Recording a Test in Python
Test Visualizer
Bookmarks Window
Search Window
Todo Window
Understanding the Object Browser and Object Spy
Introduction to the Python Language
Types
Variables
Control Flow
Functions
Lists and Dictionaries
Loops
Exceptions
Classes
Working with Name Mapping
Name Mapping and Aliases
Multiple instances
Why use Name Mapping?
Conditional Mode
Store Checkpoints
Regions
Files
Properties
Grids
Databases
Working with Data Driven Tests
CSV
Excel
MS SQL Server Tables
Working with Low Level Procedures
Working with TestComplete Project Management Concepts
Execution Plans
Parameters
Working with Web Testing
Discovery of Web Page
Web Comparison
Web Accessibility
Lighthouse - Web Audits
Refactoring
XPath and Css Selectors
Working with UserForms
Creating Dialogs and access their objects and properties in Python
Working with Events
The power of events in TestComplete
OnLogError Event
OnOverlappingWindow Event
This course utilizes the latest version of TestComplete at the time of recording - version 15.50. When significant changes occur in the UX over time, videos will be updated to reflect these changes.