Import Test Cases

Import from PIE Behavior Matrix

Preview available UAT scenarios from PIE, then seed them as TCMS test cases.

@if (previewStep() === 'ready') { } @if (previewStep() !== 'idle') { }
@if (previewStep() === 'ready' && piePreview(); as p) {
{{ p.moduleName }} PIE Behavior Matrix Preview
{{ p.variantCount }} Variants
{{ p.templateCount }} Test Templates
{{ p.autoGenCount }} Auto-Generated
{{ p.totalBehaviors }} Behaviors
{{ p.totalConfigItems }} Config Items

Clicking Confirm Import will create {{ p.templateCount }} test case(s) in the selected TCMS module (existing records matched by PIE ScenID will be updated, duplicates skipped).

} @if (previewStep() === 'error') {
⚠ Failed to load PIE preview. Check the PIE Module ID and ensure the PIE backend is reachable.
} @if (importStep() === 'done' && importResult(); as r) {
✅ Import complete
Created: {{ r.created }} Updated: {{ r.updated }} Skipped: {{ r.skipped }} @if (r.errors > 0) { Errors: {{ r.errors }} }
} @if (importStep() === 'error') {
⚠ Import failed. Check the TCMS Module ID and backend logs.
}

Import from Gherkin (.feature file)

Upload a .feature file to parse its scenarios into TCMS test cases.

@if (gherkinFileName()) { 📄 {{ gherkinFileName() }} }
@if (gherkinStep() !== 'idle') { }
@if (gherkinStep() === 'done' && gherkinResult(); as r) {
✅ Gherkin import complete
Created: {{ r.created }} Updated: {{ r.updated }} Skipped: {{ r.skipped }} @if (r.errors > 0) { Errors: {{ r.errors }} }
} @if (gherkinStep() === 'error') {
⚠ Gherkin import failed. Ensure the file is a valid Cucumber .feature file.
}