This is an extension for Aha! Develop providing integration with TestRail.
It provides these contributions:
Tests tab (on features/reqs)- Manages automatic syncing of TestRail data, allows linking of test cases and tests and creation of new test cases.Tests tab (on sprints)- Manages automatic syncing and allows linking test runs to sprints.TestRail connection page- Allows for finer-grained control of TestRail data sync, such as loading new projects and suites. Under the 'Work' menu item.Sync events- The 10 syncing events are called by the connection page and auto-sync to fetch data from TestRailCreate Test Case event- Calls the TestRail API to create new test cases
Note: In order to install an extension into your Aha! Develop account, you must be an account administrator.
-
Install the TestRail extension by clicking here.
-
As a TestRail user with access to all projects you want to sync, configure an API key in TestRail.
-
In TestRail, click on your username and select 'My Settings', then go to the 'API Keys' tab.
-
Choose to add a new key, with a memorable name. After clicking 'Generate key', copy the displayed key.
-
Choose 'Add key', and then click 'Save settings' to persist your changes.
-
-
Configure the extension with your settings.
-
In Aha! go to Settings -> Account -> Extensions -> TestRail.
-
Copy the key from step 2 into the 'TestRail API token' field, and click 'Update secret' (after save the field will remain blank as a security measure).
-
Enter your TestRail domain (the name before
.testrail.io) into the 'TestRail Domain' field. -
Enter the TestRail email address of the user that generated the key in step 2 into the 'TestRail API Username' field.
-
(Optional) Adjust the automatic sync delay field. This controls how often auto-sync will run when you visit the tests tab. It defaults to 1 hour (3600 seconds) since the last successful sync.
-
-
Run initial sync.
- In Aha!, go to Work -> TestRail connection. Click 'Sync all' next to 'Full TestRail re-sync'.
- You can also trigger initial sync by visiting the tests tab on any feature, requirement or sprint.
- Do not leave or refresh the page while initial sync is running, or it will restart. You can safely work in other tabs while it is running.
Install aha-cli:
npm install -g aha-cliClone the repo:
git clone https://github.com/aha-develop/testrail-aha.gitInstall required modules:
yarn installNote: In order to install an extension into your Aha! Develop account, you must be an account administrator.
Install the extension into Aha! and set up a watcher:
aha extension:install
aha extension:watchNow, any change you make inside your working copy will automatically take effect in your Aha! account.
When you have finished working on your extension, package it into a .gz file so that others can install it:
aha extension:buildAfter building, you can upload the .gz file to a publicly accessible URL, such as a GitHub release, so that others can install it using that URL.
To learn more about developing Aha! Develop extensions, including the API reference, the full documentation is located here: Aha! Develop Extension API





