# Integrating & executing Test Case with Browser Stack

There are two methods to execute Test Case on Browser Stack

A)  [Normal Execution ](#a-normal-execution-on-browser-stack)&#x20;

B)  [Parallel Execution](#b-parallel-execution-on-browser-stack)

### **A) Normal Execution on Browser Stack**

Normal execution in browser stack allows users to execute the Test Cases only on one device.\
\
Step-by-step process for normal execution in Browser Stack:

&#x20;             &#x20;

1\. Select the **Project** to be integrated from the Projects section of the landing Page.

2\. Click **Design Studio** button from top right corner of the screen.<br>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FvWN9p0BuJFIEWVNhUtAI%2Fimage.png?alt=media&#x26;token=73f22e06-733f-41ed-83db-2e7d99acf419" alt=""><figcaption></figcaption></figure>

3. Navigate to **Execution** tab and click **Cloud Test** button present in top right pane of Execution window.
4. Select **Browser Stack** from Cloud Test dropdown to bring browser stack integration login popup.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Fes7TLE0YuPqLnGJkfBMR%2Fimage.png?alt=media&#x26;token=ca42985c-7259-4163-9efb-b48783ff231a" alt=""><figcaption></figcaption></figure>

5. Fill all the mandatory details such as:\
   \
   **BrowserStack Username**: Enter BrowserStack username associated with the account\
   **BrowserStack Access key**: Enter Access key used to authenticate user's BrowserStack account
6. Click **Login** button to navigate to BrowserStack Integration window

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FWCBMNuTUY6KJ0IfcqVR0%2Fimage.png?alt=media&#x26;token=253412f3-9aac-44f6-9919-d497c6e68e98" alt=""><figcaption></figcaption></figure>

7. Choose **Normal Execution** tab form BrowserStack Integration dialog box.
8. Select the **required OS**, **OS version**, required **browser** and **browser version** from their respective BrowserStack Integration dropdownn
9. Select **Client** to start the execution on the selected Avo Assure client, then click **Execute** button

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FokIB6SAyI40juhs20Mb2%2Fimage.png?alt=media&#x26;token=287a4a4f-c0ad-4dd9-b4ef-74b6fe2a0619" alt=""><figcaption></figcaption></figure>

10. Navigate to the BrowserStack home screen.

Live test case execution and test results can be viewed on BrowserStack.

After completing the Execution, Test Case execution video would be available to view and analyse.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FHlkrZBaPZNZfnAW9Jwu2%2Fimage.png?alt=media&#x26;token=ef1ab106-c4f2-4265-9fd4-898f85eccff2" alt=""><figcaption></figcaption></figure>

### **B) Parallel Execution on Browser Stack**

Parallel execution in browser stack allows users to execute the Test Cases in multiple devices and browsers.

Step-by-step process for parallel execution in Browser Stack:

1\. Navigate to Parallel execution tab from the BrowserStack Integration dialog box

2\. Select the required number of combinations to execute selected number of executions simultaneously.

{% hint style="info" %}
**Note:** These arrows ![](https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FiP09bJiL4fJARBRqnXND%2Fimage.png?alt=media\&token=bc81231c-4b75-4b4a-9ca8-4a9232aea822)  are used to increase & decrease the combinations of OS & Browsers.
{% endhint %}

3\. Click Add button, after the selecting required numbers of combination of OS, Browsers.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FT46JhxPZKbiL4TCCXdc2%2Fimage.png?alt=media&#x26;token=b5e83bee-46a7-4221-a198-4845df34b1d0" alt=""><figcaption></figcaption></figure>

4. Select OS, OS version, required browser and browser version from their respective BrowserStack Integration dropdowns.

{% hint style="info" %}
**Note:** Use Edit icon, to modify required field like OS, OS version, required browser, or browser version

Use **Delete** icon, to delete unrequired row
{% endhint %}

5. Select **Avo Assure Client** to start the execution on that Client
6. Click **Execute** button to start the execution

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FFfoHNqu2EgtHvdZqob7D%2Fimage.png?alt=media&#x26;token=3820871f-c059-48b8-a4a4-67dc2f0086a9" alt=""><figcaption></figcaption></figure>

7. Navigate to the BrowserStack home screen.
8. Click **Automate** button, present in top left pane of the BrowserStack home page screen.

*Live Test Case execution can be viewed in the BrowserStack Test results*

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FaemsB3hEqOG58qfK5rrv%2Fimage.png?alt=media&#x26;token=cb808edb-53d2-49d8-b2aa-ebd016fabf3e" alt=""><figcaption></figcaption></figure>

9. Once the execution is complete, the Test Case execution video will be available for review.

&#x20;10\. Click **Text Logs** button, present in center of the BrowserStack Automate screen window.\
To view the logs on the BrowserStack screen

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FLsqX5eK5jR7jHlxRJHEK%2Fimage.png?alt=media&#x26;token=c1fd9ed2-2d17-450a-99b7-be8ea4c0a132" alt=""><figcaption></figcaption></figure>
