Skip to main content
Skip table of contents

First Sync Tutorial

🧭 Prerequisites

Before you begin syncing, please make sure the following conditions are met:

  • ✅ Your Jira Cloud site has Xray Cloud installed and active

  • ✅ Your target Jira project has the “Test” issue type configured for Xray (not Bug, Story, etc.)

  • ✅ Your GitHub repository has:

    • A valid main (or specified) branch

    • The configured Test Directory Path exists and contains test scripts

🎯 Access AutoTestCase Extractor in Project Settings

Go to Project Settings > Apps > AutoTestCase Extractor.

image-20250612-073801.png

🧩 Authorization Setup

1. Connect to GitHub

  1. Configure Git Repository.

  2. Enter:

    • Git Provider (GitHub - github.com)

    • GitHub Personal Access Token (with repo and admin:repo_hook scopes)

Optional: Fine-grained Personal Access Token (Recommanded for more granular control)

If you prefer more granular permission control, you can use a Fine-grained Personal Access Token instead.

🔗 Creating a personal access token (fine-grained)

Please select:

  • Repository accessOnly select repositories

    • Choose the repositories you want to enable auto-sync.

  • PermissionsRepository permissions

    • Contents (Read-only)

    • Metadata (Read-only)

    • Webhooks (Read and write)

  • Git Repository (e.g. your-org/your-repo)

  • Branch Name (e.g. master)

  • Test Directory Path (e.g. tests/)

    • The specified path must exist in your repository. If it’s incorrect or points to a non-existent file/folder, the sync will silently complete without importing any test cases.

image-20250612-074714.png
  1. Click Test Connection to check the credential is correct.

image-20250612-074810.png

Note: The “Test Connection” only verifies the correctness of your GitHub credentials. It does not validate the test file path or check the repository contents.

  1. Click Save Settings to complete configurating

image-20250612-075431.png
  1. You can click Enable incremental sync switch to activate git commit-based sync

image-20250612-075534.png

The app will verify access and automatically create a webhook for the target branch.

2. Connect to Xray

  1. Switch to the Test Management System Integration section.

  2. Enter:

    • Test Management System (Xray - Test Management for Jira)

    • Xray Work Item Type (e.g. Test)

      • In most cases, this should be set to ”Test”, unless your Jira admin has customized the issue type mapping in Xray (e.g., renamed it or mapped “Test” to a different Jira issue type).

    • Xray Client ID and Xray Client Secret from Xray API settings

    • Xray Test Repository Root Path (/AutoTestCaseSync)

      • All synced test cases will be added into this root path, this value cannot be modified in this version

image-20250612-075829.png
  1. Click Test Connection and Save Settings

image-20250612-075928.png

🏎️ Run First Sync

Click Run Full Import to manually trigger case extraction.

image-20250612-080650.png

The app will start importing test cases from code.

🛠 Common Pitfalls & Misconfigurations

Here are a few things to double-check if the sync is not working:

  • ❌ The GitHub repository does not contain the specified branch

  • ❌ The configured test file path (e.g., tests/test_sample.py) does not exist

  • ❌ The Xray Test issue type is incorrectly mapped (e.g., to “Bug” instead of “Test”) - this prevents test cases from being created.

  • ❌ The repository is private and credentials are invalid

✅ We plan to improve these with automatic validations in future releases.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.