The Simplest Way to Make PyCharm and Testcomplete Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use PyCharm and TestComplete together to write and run UI tests in Python. PyCharm handles code edits and checks, while TestComplete runs the tests against the app. This pair lets developers and testers share one clean codebase in Git. Developers write helper logic in their editor, and testers run those scripts against real screens. How PyCharm and TestComplete share files, keys, and data Both tools work on the same Python script files stored on disk or in Git. You edit the code in PyC

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams use PyCharm and TestComplete together to write and run UI tests in Python. PyCharm handles code edits and checks, while TestComplete runs the tests against the app.

This pair lets developers and testers share one clean codebase in Git. Developers write helper logic in their editor, and testers run those scripts against real screens.

How PyCharm and TestComplete share files, keys, and data

Both tools work on the same Python script files stored on disk or in Git. You edit the code in PyCharm and point both tools to the same Python interpreter.

TestComplete includes its own Python runtime and custom helper modules for UI objects. To get code hints in PyCharm, you map that same interpreter path in your project settings.

When a test runs, the test runner logs in to your staging app and database. It reads test inputs, drives the screen or API, and writes results to a log.

Permissions flow through two places during this workflow. First, the user needs file rights to edit shared test scripts and push changes to Git.

Second, the test runner needs keys or roles to reach the target app and database. If those keys sit in plain text inside the project folder, any user can read them.

Common failure modes and how to scope roles

Many teams hit trouble when they store shared service account keys inside the test repo. Anyone who clones the project in PyCharm gets full rights to the test database.

Broad API tokens create another big risk for engineering teams. A token meant for one UI test often holds write rights across the whole staging system.

Unlogged database queries during test setup or teardown also cause problems. When a test script wipes a table, nobody knows which person or run triggered the change.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Interpreter mismatches break test runs between local desks and build servers. A package added in PyCharm might be missing on the machine that runs TestComplete.

To fix these issues, scope every role to the smallest task it needs. Give the test runner a read-only database role when it only needs to check saved rows.

Use separate roles for local developer checks and automated pipeline runs. Never let a local editor share the same database login as an unattended test machine.

Keep network paths tight between your test hosts and your backend data stores. Only allow test machines to reach the exact staging ports they need for the test.

Keeping test data safe during local and automated runs

UI and API tests often pull records that look like real customer data. If a staging database holds live emails, phone numbers, or card numbers, test logs might capture them.

Developers debugging a failed script in PyCharm will see those raw values in console output. Test reports saved on shared drives will also store those sensitive fields in plain text.

Teams should scrub or mask sensitive fields like national IDs before they reach test logs. When masking rewrites matched fields in results, test scripts still check data shapes without exposing secrets.

You should also track every query that test scripts send to shared databases. Clear logs help the team spot broken tests that lock tables or change shared state.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why does PyCharm mark TestComplete objects as unknown names?

PyCharm does not know about the built-in test objects out of the box. Point your project interpreter to the Python setup inside the test tool folder to get hints.

Can both tools edit the same Python test script at the same time?

Yes, both tools read the same files from your local disk. Save your changes in one tool before you switch windows so neither tool overwrites your work.

How should we store database keys for automated UI tests?

Never commit passwords or API keys into your Git repo. Pull secrets from the host system at run time and give each test role minimal rights.

The query runs. The emails stay hidden.