Use it before integrating automation to decide whether Treseko should execute the script or whether your current pipeline should keep running and only send results.
Expected result
The team clearly distinguishes between AUTOMATED and EXTERNAL modes, configures the correct path and avoids duplicating executions or mixing evidence.
Treseko supports two paths that look similar in the final report but are different in operation. In internal mode, Treseko creates the job, a worker picks it up, executes the script and returns results. In external mode, your tool runs outside Treseko and then reports the result via API.
Use internal automation when you want to centralize scripts, variables, datasets, workers, evidence and execution from the Treseko UI. Use external API when you already have Playwright, Selenium, Cypress, Pytest or a CI/CD pipeline working and do not want to migrate execution.
Both paths feed history, metrics, reports and bugs. The key difference is who executes. If Treseko executes, the visible mode is automated. If your pipeline executes and Treseko receives the result, the visible mode is external.
To avoid confusion, external identifiers must be stable: solution_code, project_code, component_code, build_code and case_code. The visible name can change; the code should not break the integration.
Recommended flow
Choose internal mode if the script lives and runs from Treseko.
Choose external API if the script lives in another repository or pipeline.
Create or review short codes for solution, project, component, build and test case.
Create an API key from the profile of the user who will report results.
Run the tests in the external framework.
Send results to POST /external/executions/report.
Use external_run_id to deduplicate pipeline retries.
Review History, Reports and Metrics filtering by External mode.
Minimal external report
curl -X POST "$TRESEKO_API_URL/external/executions/report" \
-H "Authorization: Bearer $TRESEKO_EXTERNAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"solution_code":"SOL-a8f31c22","project_code":"PRJ-b91e02aa","component_code":"CMP-77ac10ff","build_code":"BLD-3f91ad44","external_run_id":"playwright-main-001","overwrite":true,"cases":[{"case_code":"TC-0008","status":"PASO","observations":"Prueba ejecutada desde CI/CD."}]}'