# API & Automation

## Taco Truck For Automation

* **Overview:** Tacotruck [github.com/testfiesta/tacotruck](https://github.com/testfiesta/tacotruck) is an open-source tool that pushes automated test results into TestFiesta runs or exports data, simplifying automation for TestRail users.
* **Setup:**
  1. Visit [github.com/testfiesta/tacotruck](https://github.com/testfiesta/tacotruck) for setup guides.
  2. Generate an API key in Admin > API Keys.
  3. Configure tacotruck in your CI/CD pipeline (e.g., GitHub Actions, Jenkins) to send results.
  4. Map statuses (e.g., “pass” to “passed”) per [docs.testfiesta.com/automation](https://docs.testfiesta.com/automation).
  5. Test in a demo project to verify run progress bars.
* **Benefits:** Unifies automated (e.g., Selenium, Cypress) and manual results; supports GitHub Actions for CI/CD; enables data export for custom analytics.
* **For TestRail Users:** Tacotruck simplifies automation compared to TestRail’s scripting-heavy API, with pre-built pipeline support.

## Data Management

* **Policies:** In Admin > Data, set auto-archive/delete rules for entities (e.g., runs, plans) based on inactivity (e.g., archive after 20 days). Schedule jobs off-peak.
* **Benefits:** Prevents database bloat, ensuring scalability for automation-heavy workflows.
* **For TestRail Users:** Unlike TestRail, TestFiesta’s policies optimize performance for large datasets.

TestFiesta’s tacotruck and data management make it a flexible alternative to TestRail’s automation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testfiesta.com/testfiesta-for-testrail-users/api-and-automation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
