> For the complete documentation index, see [llms.txt](https://docs.qapilot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qapilot.io/execution-and-reliability/export-appium-code.md).

# Export Appium Code

Export a QApilot Test Plan as ready-to-run Appium test scripts.

QApilot allows you to export any Test Plan as ready-to-run Appium code

### Prerequisites

* You must have at least one Test Plan already created in QApilot.
* The Test Plan must contain test cases with recorded steps.

***

### Step 1 - Trigger the Download from the Test Plan

1. Navigate to **Test Case Management** → **Test Plans** from the navigation panel.
2. Locate the Test Plan you want to export.
3. Click the **⋯ (more options)** icon on the Test Plan card.
4. Select **Download Appium Code** from the dropdown menu.

<figure><img src="https://1727045651-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff7DuCvkprTM62hS3tKQF%2Fuploads%2F2xk5or5bDPq55X9bMhjQ%2Fimg-a0eaee31-40e4-4bfd-8ff0-579554ba66a3.png?alt=media&amp;token=c97915ea-95b8-45e6-9b21-25b05298195e" alt=""><figcaption></figcaption></figure>

> **Note:** The option is highlighted in the menu alongside other actions such as Edit, Schedule Run, Activate CI/CD, Deactivate, and Delete.

***

### Step 2 - Export Status

Once triggered, QApilot queues the code generation job. To track progress:

1. Go to **Settings** (gear icon in the left sidebar).
2. Select the **Appium Code** tab from the settings navigation bar.

You will see an entry for your Test Plan with the following columns:

The **Status** field will display one of the following states:

* 🟡 **Initiated** - The export job has been queued and is being processed.
* 🟢 **Completed** - The code has been generated and is ready to download.

<figure><img src="https://1727045651-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff7DuCvkprTM62hS3tKQF%2Fuploads%2FfucpAdeN37PpTeEuAuW3%2Fimage%20(15).png?alt=media&amp;token=334ce5d5-2de8-4207-8c0f-571c029694ce" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1727045651-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff7DuCvkprTM62hS3tKQF%2Fuploads%2Fn37wkPTYEyIJVaSrFR7P%2Fimage%20(16).png?alt=media&amp;token=646dca6f-2c24-4519-8cc5-c35826b18d02" alt=""><figcaption></figcaption></figure>

### Step 3 - Download the Generated Appium Code

Once the status changes to **Completed**:

1. Stay on the **Settings → Appium Code** page.
2. Click the **↓ (download)** icon in the **Actions** column for your Test Plan.
3. The Appium code archive will be downloaded to your machine.

> **Tip:** If the status still shows **Initiated**, wait a few moments and refresh the page. Code generation time varies depending on the size of the Test Plan.

***

### What's Included in the Download

The downloaded zip file contains Appium test scripts corresponding to the steps recorded in your Test Plan.&#x20;

You can run these scripts using your preferred IDE or CI/CD, results will automatically be populated within QApilot Reports.

***

### Related Topics

* [Creating a Test Plan](https://docs.qapilot.io/)
* [Activating CI/CD for a Test Plan](https://docs.qapilot.io/)
* [Scheduling a Test Run](https://docs.qapilot.io/)
