GitHub integration
TCG can push generated automation scripts directly to a GitHub repository. This creates a seamless bridge between test case generation and your automation pipeline.
What GitHub integration enables
Push a single script from the Script Generator dialog
Push all scripts from the Batch Script builder
Auto-create a repository (
generated-test-cases) if you don't have one yetCommit scripts with structured commit messages and metadata
Connecting your GitHub account
Step - Repository setup
TCG checks for a repository named generated-test-cases in your account:
If it exists: TCG uses it.
If it doesn't exist: TCG creates a new public repository named
generated-test-casesautomatically.
You can change the target repository by editing the Target Path / Repository settings before pushing.
Pushing a single script
After generating a script in the Script generation:
Click Push to GitHub.
TCG shows a commit preview:
File path - Where the script will be placed (e.g.
tests/auth/test_login.py)Commit message - Auto-generated from the test case title
Confirm to commit.
A success notification appears with a link to the committed file on GitHub.
Pushing all scripts (batch)
After a batch generation in the Batch scripts:
Click Push All to GitHub.
TCG shows a summary:
Total scripts to commit
Target repository and branch
Base path for all files
Confirm to commit all files in a single push.
A link to the repository is shown when complete.
Where scripts are committed
Scripts are committed to:
For example, with target path tests/ and language Python:
Commit message format
Each commit from TCG uses:
Disconnecting GitHub
Click the GitHub icon in the Script Generator or Automation Builder.
Click Disconnect.
Your access token is removed from local storage.
Disconnecting does not remove any files already committed to GitHub.
Troubleshooting
"Repository not found"
Check you authorized the correct GitHub account. Reconnect if needed.
"Permission denied"
Ensure TCG has repo scope. Revoke and re-authorize to re-grant permissions.
"File already exists"
TCG will overwrite the file with the latest version.
Connection window doesn't close
Close it manually and refresh the TCG page.
Last updated