A couple of weeks ago I started a new series of articles dedicated to the execution of UI tests in the cloud. The first publication was Execute UI Tests in the Cloud- Cross Browser Testing. Here I am going to present to you another cloud platform- BrowserStac﻿k. You can find even more useful information about the UI automated testing in my WebDriver Series.

Execute Tests in the Cloud- BrowserStack How to Setup Your Tests? 1. Create a free registration

2. Open the BrowserStack Documentation 3. Select a preferred programming language and unit testing framework

4. Navigate to the configure capabilities section 5. Select your preferred operating system

6. Select your preferred browser

7. Select your preferred resolution

8. Copy the generated capabilities keys and values

9. Copy your authentication key and user name

10. Create a new .NET library project 11. Install all required NuGet packages

12. Copy the sample code from the documentation

While ago when we were working on the first version of the BELLATRIX test automation framework, I did this research while I was working on a similar feature for our solution.

C# Setup Code Example

In the previous points, we have copied the user name and the authentication key we use them as values with the browserstack.user and browserstack.key keys. Also, you have copied the other key value pairs we set them as well. If you want your tests to be video recorded you need to set the browserstack.video key to true. For advanced filtering of your runs, you can set different values for the build and project keys. To enable debugging from Visual Studio set the browserstack.debug key to true. Tests Examples

These tests are absolutely the same as the one that we created for the ﻿CrossBrowserTesting﻿ platform. BrowserStack- Cloud Execution- Features On the first page of your account, you can view all past/executing test runs.

If you open one of the test runs you can see its details such as OS, browser, resolution. Also, you can watch the video recording of your test.

Another unique feature of the platform is the so-called visual logs, where you can see all executed commands followed by screenshots capturing the moments after the commands' completion.

As in the other platforms, you can see the raw requests. However, here they are displayed as a plain text.