# Run test and debug

After creating the script, click on the sort icon to automatically arrange the commands in the order you've created them. Then, click **"Run test"** to test the script.

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FOokbbxwXHJnJazEl4mGN%2Frun%20test%20scrip%5Bt.png?alt=media&#x26;token=37889d72-5f87-49a1-b449-1a3443c3d5e5" alt=""><figcaption></figcaption></figure>

Once the script has finished running, click **"Debug"** to check for errors.&#x20;

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2Fz4OOVER94zYKKJAOUc4B%2Fdebug%202.png?alt=media&#x26;token=a6491c9a-427c-4ef3-9ba3-1f597ea6fda5" alt=""><figcaption></figcaption></figure>

If there are no errors, you can give the script a name, attach tags (optional), and click **"Save"** to save the script.&#x20;
