# AccelQ

### AccelQ: Overview

With every release, AutoRABIT is looking to improve its application quality, achieve in-sprint automation to align with continuous delivery.&#x20;

AccelQ's Quality Driven Development (QDD) implements an innovative Agile Quality Life Cycle approach, integrating the usual test silos into an end-to-end automated process. AccelQ is built on a cognitive core engine bringing the power of predictive analytics in scenario design, autonomics in test automation, and adaptive change management in traceability.

### Integrating AccelQ as a Plugin into AutoRABIT

To integrate AccelQ as a plugin with AutoRABIT, it does require some steps in AutoRABIT to get it configured. The below section will help you out to get AccelQ configured in AutoRABIT in easy steps.

{% hint style="info" %}
**Important Note:** AccelQ status polds only for 10 minutes.
{% endhint %}

#### Step 1: Store your user's AccelQ credential in AutoRABIT

This is an initial step where the user's AccelQ credential such as username and password is stored in AutoRABIT.

1. Log in to your AutoRABIT account.
2. Go to the **Credentials** tab.
3. Click on **Create Credential** button from the right navigation bar.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FKrEBjDKOv8PRwvXhPCgd%2Fimage.png?alt=media&#x26;token=71fa6ee0-e666-4405-8759-d2eac461ea82" alt=""><figcaption></figcaption></figure>

4. On the next pop-up screen, give a **credential name**.
5. Choose the **Credential Type** as **"User name with Password."**
6. Enter your username and **AccelQ API token** in the **Password** field.
7. Please double-check that you use your AccelQ username instead of the email address that you use to log in to AccelQ.
8. Click **Save**.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F1zyuuRFt8NWPRHPwrlOy%2Fimage.png?alt=media&#x26;token=5013e348-92b7-45cc-a38b-56a6aac06c90" alt="" width="416"><figcaption></figcaption></figure>

#### Step 2: Integrate AccelQ with AutoRABIT

1. Go to the **My Account** page.
2. In the **Plugins** section, select **AccelQ** under **Test Types**.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F1ASI2OutnZJqAzYxkn9G%2Fimage.png?alt=media&#x26;token=8e2526d8-2cb8-42d3-948f-c758975fbaac" alt=""><figcaption></figcaption></figure>

3. Fill in the below details to integrate AccelQ:

   * **URL:** Enter the AccelQ registered endpoint URL. For ex- poc.accelq.io
   * **Tenant Code:** Enter the Tenant code received from AccelQ. If you're not aware of this, you can retrieve your Tenant code from the **"AUTH PROPERTIES"** section in the User's Profile card on AccelQ.

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FNs4BkDlDOZqDx1WZEoeX%2Fimage.png?alt=media&#x26;token=025b9443-1609-4b70-ac0e-406ba95b9d7a" alt="" width="563"><figcaption></figcaption></figure>

   * **Select Credential:** Select the user's credential registered as mentioned in Step 1.

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F5xEDGh2gA21C4l3Z9eKj%2Fimage.png?alt=media&#x26;token=9439bfe4-25d5-43d6-9298-bf18768c31c3" alt=""><figcaption></figcaption></figure>
4. Once you're done filling the AccelQ fields, click on **Save** to complete the integration process.&#x20;

### Adding AccelQ configuration in CI Job

1. Go to the **New CI Job** screen.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2Fr4P15GkBM1UkOvNAYeHQ%2Fimage.png?alt=media&#x26;token=08fd32ef-b0b8-4066-9dfd-b07277b5032b" alt=""><figcaption></figcaption></figure>

2. Select any one of the below criteria for your CI job:

   * Deploy from Salesforce Org
   * Deploy from Version Control
   * Deploy from Salesforce Org with a Version Control backup
   * Deploy SFDX source from Version Control
   * Run Test Automation Scripts
   * Install an Unlocked Package from a Version Control Branch

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F4J0LLDgX9G8ja1yvNtgo%2Fimage.png?alt=media&#x26;token=d678decd-269a-4efc-8377-f30d18eac60f" alt=""><figcaption></figcaption></figure>
3. Give the job a descriptive name in the **CI Job Name** field.
4. Go to the **Test** section. Here you will need to select *AccelQ* to run the functional test cases to test the functionality of the code being deployed to production.
5. Select **Fetch Test Cases From** as **AccelQ**.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FcrhnfslKpxysUerx9Nrs%2Fimage.png?alt=media&#x26;token=ea7c8e28-709a-4dc0-8636-34ebe717f9f9" alt=""><figcaption></figcaption></figure>

6. Enter your **Project Name** and the **Test Job Name.**

   * You can find your project name from the **"AUTH PROPERTIES"** section in the User's Profile card on AccelQ. Similarly, the test job name will be available in the Job section on AccelQ.

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FG9i4rQtWyBESbsBm1iHl%2Fimage.png?alt=media&#x26;token=71eaefd9-96de-4f8e-b33e-169f390578e2" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FTl884dOQnyjee9rAJ7to%2Fimage.png?alt=media&#x26;token=81a8e6d5-0eb9-4287-af65-a3caf9af3138" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FAMmdEirv06rAwa4Wfr1l%2Fimage.png?alt=media&#x26;token=2c0cf624-6d15-46e5-8026-76ad78a33580" alt=""><figcaption></figcaption></figure>
7. Set the **parameter(s)** for your AccelQ test cases as shown below.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2Fzaly7b0B4I12EfMcqz0b%2Fimage.png?alt=media&#x26;token=cf8fcebb-5eed-439d-9d21-291bb532716f" alt=""><figcaption></figcaption></figure>

8. Click **Save**.
9. So, once the configured CI job is run and the build is triggered, AccelQ will review the code changes and functional review information can be found in the **CI Job Result** under the **Functional Tests** section. Here, you can find the status of the functional test done along with other details such as the number of components that successfully got reviewed, the number of components failed to review, components that are about to get reviewed or are in the queue.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FU1Iut5hLq2rKYyaL1FQK%2Fimage.png?alt=media&#x26;token=f9805d12-2263-46ae-9063-943f28021e82" alt=""><figcaption></figcaption></figure>

10. To view the detailed success or failure report, click on the link available under Functional Tests.

    * **Success Report:**

    <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FMlLir3YHtIy64lNjcmlx%2Fimage.png?alt=media&#x26;token=25419b06-bb59-4c5f-bb6f-ab19a2601a44" alt=""><figcaption></figcaption></figure>

    * **Failure Report:**

    <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FWMNI7gNSNFhFKjM78Dbf%2Fimage.png?alt=media&#x26;token=fcd5b00a-04ce-46ea-8b9e-922343866b6b" alt=""><figcaption></figcaption></figure>
11. Click on **Error Details** for each test case being reviewed to view the error report.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FyccSo4Tawdf9vDno5NAI%2Fimage.png?alt=media&#x26;token=9b67d3dc-5583-4049-834e-3345ad2a3c50" alt="" width="454"><figcaption></figcaption></figure>

### Adding AccelQ configuration in the 'Deployment Setting' screen

1. In the **Deployment Setting** screen, while performing a new deployment, you need to select **AccelQ** to fetch the test cases.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F3IEAwfpnbrVhh0U38n5U%2Fimage.png?alt=media&#x26;token=1e295292-4926-4d3b-b17e-8e52e3860a8f" alt=""><figcaption></figcaption></figure>

2. Enter your **Project Name** and the **Test Job Name**.

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FNDZDtOvZXgz0NLDjiqsd%2Fimage.png?alt=media&#x26;token=3f820e60-7de7-4255-a0bb-e723cb0267b5" alt="" width="419"><figcaption></figcaption></figure>

   * You can find your project name from the **"AUTH PROPERTIES"** section in the User's Profile card on AccelQ.

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FLhrcUnROnFpKlSlQF7C3%2Fimage.png?alt=media&#x26;token=d910ea3a-f8c7-404e-b8be-47da2cf40838" alt=""><figcaption></figcaption></figure>

   * Similarly, the test job name will be available in the Job section on AccelQ.

   <figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2F31xryrZlmDoBCvPIcECt%2Fimage.png?alt=media&#x26;token=192797a1-9c3f-401b-a2b0-d5bfd53f2ec8" alt=""><figcaption></figcaption></figure>
3. Click **Save**.
4. When the deployment is executed, you can find the AccelQ test cases report in the **Deployment History** screen.Click on the **Test Results** button for the detailed AccelQ report.

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2Fjwbvv2svH2dOESydycYg%2Fimage.png?alt=media&#x26;token=364091a1-3688-4bc1-a8ea-4659801ddeb4" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1912836914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9vAxMuDrkUkB4OXlH9CL%2Fuploads%2FWnh6uxPGl4eWZWyFEnli%2Fimage.png?alt=media&#x26;token=61027c2c-c40d-4cb1-a207-fe4fc3bce423" alt=""><figcaption></figcaption></figure>
