Project: NotePad-Automation-using-TestComplete
Author: Ujjwal Bisht
GitHub: https://github.com/teche74/NotePad-Automation-using-TestComplete
This project demonstrates how to automate a Windows desktop application using SmartBear TestComplete with a structured automation framework approach.
Instead of creating only recorded tests, the project focuses on:
- Better project organization
- Separation of concerns
- Stable object identification
- Reusable automation functions
- Abstraction layers
- Basic BDD-style thinking
- CRUD operation automation on Notepad
The repository is a strong beginner-to-intermediate example for engineers learning desktop automation using TestComplete.
Most beginners using TestComplete rely heavily on:
- Record & Playback
- Hardcoded object paths
- Repeated steps
- Unstable locators
This project tries to avoid those issues by introducing:
✅ Modular structure
✅ Name Mapping usage
✅ Reusable scripts
✅ Organized folders
✅ Scenario-based execution
✅ Separation between test logic and UI interaction
That makes the framework closer to how automation is implemented in real enterprise desktop testing projects.
| Area | Technology |
|---|---|
| Automation Tool | TestComplete |
| Language | JavaScript |
| Test Style | Keyword + Script Hybrid |
| Application Under Test | Windows Notepad |
| Mapping Strategy | Name Mapping |
| Testing Type | Desktop UI Automation |
The repository contains the following main folders:
KeywordTests/
NameMapping/
Scenarios/
Script/
Stores/
TestedApps/
and suite/project files:
E2ENotepadAutomation.mds
E2ENotepadAutomation.mds.tcLS
README.md
This folder contains keyword-driven test flows created inside TestComplete.
- Visual test flow management
- Easier execution for beginners
- Reusable action sequences
- Faster debugging
Keyword tests are useful when:
- Non-programmers contribute to testing
- QA teams want visual readability
- Hybrid frameworks are used
The project combines keyword testing with scripting, which is a practical enterprise approach.
This is one of the most important parts of the framework.
Stores UI object mappings for:
- Notepad window
- Text editor
- Menu items
- Dialogs
- Buttons
Desktop applications often generate:
- Dynamic properties
- Changing window handles
- Runtime IDs
Using Name Mapping allows tests to avoid fragile locators.
Instead of directly accessing objects like:
Sys.Process("notepad").Window(...)the framework can use aliases:
Aliases.notepad.window.editorThis improves:
✅ Readability
✅ Maintainability
✅ Stability
This folder likely contains scenario-based test organization.
Examples:
- Open File
- Save File
- Update Text
- Replace Text
- CRUD operations
Instead of writing one huge automation script, the framework separates test scenarios logically.
This mirrors real-world framework design.
This is the core automation logic layer.
Usually this folder contains:
- Utility functions
- Base classes
- Page logic
- Common reusable actions
The framework appears to follow a layered approach:
Test Scenario
↓
Reusable Functions
↓
Mapped UI Objects
↓
Application Interaction
This is a strong automation design pattern.
Stores in TestComplete are used for:
- Baseline images
- Test data
- Regions
- Properties
- File checkpoints
They help support:
- Validation
- Comparison
- Data-driven testing
This folder/configuration contains the applications configured for execution.
Example:
notepad.exe
Instead of manually launching apps every time:
- TestComplete controls startup
- Execution becomes repeatable
- Environment becomes consistent
One of the biggest desktop automation challenges is unstable locators.
The project attempts to reduce flakiness using:
- Aliases
- Name Mapping
- Controlled object hierarchy
This is extremely important for desktop testing.
Good frameworks avoid direct UI calls inside tests.
Bad Example:
Aliases.notepad.menu.click()
Aliases.notepad.editor.Keys("Hello")Better Example:
NotepadPage.enterText("Hello")This project attempts to follow that layered design.
Reusable methods reduce:
- Duplicate code
- Maintenance cost
- Debugging complexity
Reusable functions are critical in enterprise automation.
A major learning point from this repository is:
Automation is not just writing scripts. It is designing maintainable systems.
That mindset separates beginners from automation engineers.
Based on the repository description and folder structure, the framework likely automates:
| Scenario | Description |
|---|---|
| Create File | Create a new text file |
| Read File | Open and validate content |
| Update File | Modify existing text |
| Delete/Clear | Remove text or reset editor |
| Save File | Save using dialogs |
| Replace Text | Replace occurrences |
| Menu Interaction | File/Edit operations |
One centralized object repository.
- Easier maintenance
- Better readability
- Stable references
Aliases simplify long object paths.
Example:
Aliases.notepad.Editorinstead of:
Sys.Process("notepad").Window("Notepad")A practical enterprise pattern.
Keyword Tests:
- Easy to understand
- Fast to build
Scripts:
- Flexible
- Reusable
- Scalable
Using both together is often better than using only one approach.
Desktop apps may generate:
- Dynamic IDs
- Runtime properties
- Window handle changes
Automation must handle:
- Delays
- Dialog openings
- App loading
One of the hardest parts of desktop automation.
This project helps beginners understand:
- Object trees
- Mapping strategy
- Alias usage
Even though the application is simple (Notepad), the structure reflects real-world automation practices.
✅ Layered framework
✅ Object repository
✅ Reusable utilities
✅ Scenario separation
✅ Stable locators
✅ Modular organization
These concepts scale to:
- ERP systems
- Legacy desktop apps
- Banking software
- Healthcare systems
- RMS applications
- POS systems
The framework is already structured well for learning, but here are possible future enhancements.
Example:
Pages/
NotepadPage.js
Benefits:
- Cleaner abstraction
- Easier maintenance
Example:
BaseAssertions.verifyText(expected)Benefits:
- Centralized validation
- Better reporting
Use:
- CSV
- Excel
- JSON
Benefits:
- Higher coverage
- Reusable tests
Example:
Feature: Update Text
Scenario: Replace existing word
Given user opens notepad
When user replaces "Hello" with "Yellow"
Then editor should contain "Yellow"This improves readability.
Possible integrations:
- Jenkins
- Azure DevOps
- GitHub Actions
Benefits:
- Automated execution
- Faster feedback
This repository is valuable because it teaches more than simple recording.
How folders and modules are organized.
How stable desktop locators are managed.
How to avoid duplication.
How Windows applications behave during automation.
How to separate UI from test logic.
How to build tests that survive UI changes.
The strongest idea in this repository is:
Even small automation projects should follow scalable architecture principles.
That mindset is extremely important for QA automation growth.
This project is a strong learning resource for engineers who want to understand:
- Desktop automation
- TestComplete framework design
- Name Mapping
- Reusable architecture
- Stable locator strategy
Even though the application is simple, the framework thinking is aligned with industry practices.
It is especially useful for:
- Beginners learning TestComplete
- QA engineers moving from manual to automation
- Engineers working on Windows desktop applications
- Teams maintaining legacy enterprise software
https://support.smartbear.com/testcomplete/docs/
https://github.com/teche74/NotePad-Automation-using-TestComplete
Many automation engineers focus only on “making tests run”.
This project demonstrates something more valuable:
✅ Structure
✅ Maintainability
✅ Scalability
✅ Stability
That is what real automation engineering is about.