Import & Export Test Cases - Excel Guide
The Repository supports importing test cases from Excel files and exporting test cases to Excel, JSON, or CSV formats. This enables bulk creation, data migration, backup, and integration with other tools.
Exporting Test Cases
Export Formats
The Repository supports three export formats:
Excel (.xlsx):
- Rich formatting support
- Preserves test case structure
- Suitable for editing and reporting
- Includes all test case data
JSON (.json):
- Complete test case structure
- Machine-readable format
- Suitable for data migration
- Preserves relationships and metadata
CSV (.csv):
- Simple text format
- Compatible with spreadsheet applications
- Suitable for basic data analysis
- Limited formatting support
Exporting Selected Test Cases
To export selected test cases:
-
Select the test cases you want to export (see Bulk Operations).
-
Click the “Export” icon in the bulk actions bar.
-
Choose the export format:
- Excel: Export as Excel file (.xlsx)
- JSON: Export as JSON file (.json)
- CSV: Export as CSV file (.csv)
-
As a result:
- A file is downloaded with the selected test cases
- The file includes all test case data
- File name includes timestamp and selection count
Exporting All Test Cases
To export all test cases:
-
Select all test cases using
Ctrl+A(orCmd+Aon Mac). -
Click the “Export” icon in the bulk actions bar.
-
Choose the export format.
-
As a result:
- All test cases are exported to the selected format
- The file includes complete test case data
Exported Data
Exported files include:
-
Basic Information:
- Test case ID
- Title
- Description
- Parent folder
-
Properties:
- Type
- Priority
- Severity
- Automation status
-
Content:
- Preconditions
- Test steps
- Expected results
- Step attachments
-
Metadata:
- Tags
- Requirements
- Custom fields
- Created/updated dates
- Created/updated by
Importing Test Cases
Import from Excel
To import test cases from Excel:
-
Click the “Import Testcases” button in the Repository header.
-
A modal will appear with import instructions.
-
Prepare your Excel file with the required columns:
Required Columns:
- Title: Test case title (required)
- Description: Test case description (optional)
Property Columns:
- Type: Test case type (Functional, Regression, etc.)
- Priority: Priority level (Critical, High, Medium, Low)
- Severity: Severity level (Critical, High, Medium, Low)
- Automation Status: Manual or Automated
- Tags: Comma-separated tags
- Requirements: Comma-separated requirement IDs or names
Content Columns:
- Preconditions: Test preconditions
- Steps: Test steps (can include expected results)
- Expected Results: Expected results for steps
Custom Field Columns:
- Project-specific custom fields
- Column names match custom field names
-
Upload your Excel file:
- Click “Choose File” or drag and drop the file
- Supported formats: .xlsx, .xls
- Maximum file size varies by configuration
-
Review the import preview:
- The modal shows a preview of the data
- Verify column mappings
- Check for errors or warnings
-
Configure import options:
Folder Assignment:
- Select default folder for imported test cases
- Or map folders from the Excel file
Error Handling:
- Choose how to handle errors:
- Skip rows with errors
- Stop import on first error
Duplicate Handling:
- Choose how to handle duplicates:
- Skip duplicates
- Create new test cases
- Update existing test cases
-
Click “Import” to start the import.
-
As a result:
- Test cases are created from the Excel data
- They appear in the repository
- You can organize them into folders
- Import summary shows success/error counts
Excel Import Format
Sample Excel Structure:
| Title | Description | Type | Priority | Severity | Tags | Steps | Expected Results |
|---|---|---|---|---|---|---|---|
| Login Test | Verify user login | Functional | High | High | login, auth | Enter username and password | User is logged in |
| Logout Test | Verify user logout | Functional | Medium | Medium | logout | Click logout button | User is logged out |
Step Format:
- Steps can be separated by line breaks or special characters
- Expected results can be included in the same cell or separate column
- Use consistent formatting for best results
Import Validation
The import process validates:
- Required Fields: Title must be present
- Field Values: Values must match allowed options
- Data Types: Data types must be correct
- Relationships: Requirements must exist
- Format: Excel format must be valid
Validation Errors:
- Invalid data is highlighted
- Error messages explain the issue
- You can fix errors and re-import
Import/Export Use Cases
Data Migration
Migrating test cases between projects:
-
Export test cases from the source project.
-
Review and modify the exported file if needed.
-
Import the file into the target project.
-
Organize imported test cases into folders.
Backup and Restore
Creating backups:
-
Export all test cases regularly.
-
Store exported files securely.
-
Restore by importing exported files if needed.
Bulk Creation
Creating multiple test cases:
-
Prepare an Excel file with test case data.
-
Import the file to create test cases in bulk.
-
Faster than creating test cases individually.
Integration with Other Tools
Integrating with external tools:
-
Export test cases to JSON or CSV.
-
Process the data in external tools.
-
Import modified data back if needed.
Reporting
Generating reports:
-
Export test cases to Excel.
-
Use Excel features for analysis and reporting.
-
Create charts and summaries.
Best Practices
Export Best Practices
- Regular Backups: Export test cases regularly for backup
- Selective Export: Export only what you need to reduce file size
- Format Selection: Choose the format based on your use case
- Verify Exports: Check exported files to ensure data completeness
- Version Control: Keep track of export versions
Import Best Practices
- Prepare Data: Clean and format data before importing
- Validate First: Review data in Excel before importing
- Test Import: Test import with a small file first
- Backup First: Export existing data before importing
- Review Results: Verify imported test cases after import
- Handle Errors: Fix errors and re-import if needed
- Organize After: Organize imported test cases into folders
Excel File Preparation
- Use Templates: Use provided Excel templates if available
- Consistent Format: Maintain consistent formatting
- Required Fields: Ensure required fields are filled
- Valid Values: Use valid values for dropdown fields
- No Merged Cells: Avoid merged cells in data rows
- Clean Data: Remove empty rows and columns
Permissions
Access to import/export depends on your role:
- Project Owner: Full access to import and export
- Project Administrator: Can import and export test cases
- Project Manager: Can export test cases (import may be restricted)
- Tester: Can export test cases (read-only export)
- Viewer: Read-only access (export only)
Note: Import permissions may be more restrictive than export permissions to prevent unauthorized data changes.
File Size Limits
Import and export have file size limits:
- Excel Import: Typically 10-50 MB (varies by configuration)
- Export: No practical limit, but very large files may take time to generate
Tips for Large Files:
- Split large imports into smaller batches
- Use filters to export subsets
- Consider using JSON format for large datasets
Next Steps
- Learn about Bulk Operations
- Explore Creating Test Cases
- Read about Analytics & Reporting
- Check Repository Overview for other features
Was this page helpful?