Advanced Browser Automation Report
  • 09 Dec 2024
  • 3 Minutes to read
  • Dark
    Light

Advanced Browser Automation Report

  • Dark
    Light

Article summary

Overview

Advanced Browser Automation reports are a new feature that allows users to view the status of their testing statistics in real-time. This feature will allow users to view the status of the Builds and test sessions in real time to make more informed decisions about testing tasks. This documentation will give you an overview of the Dashboard interpretation of various icons and terminologies in the feature and also provide you with the steps to enable the Advanced Browser Automation Report feature.

Pre-requisites

  • User should be registered on Pcloudy platform
  • In Selenium capabilities, apart from existing capabilities user needs to mention the additional capabilities mentioned below
pcloudyOptions.put("project", "Browser_Project1");
pcloudyOptions.put("build", "DB_build1");
pcloudyOptions.put("name", "DB_Session1");
  • Note: The build and project capabilities help to organise the test sessions.

Steps for execution :-

In your selenium script you will need to add these capabilities and execute the scripts.

View test results

Once the user starts the selenium execution, the user can view the real time status of the test execution.

Login to Pcloudy platform, And on the start page Go to “Reports” click on the "pie chart" icon as shown below.

This will lead you to the dashboard page, where you can view the real time status of all Builds that are in progress and also the Builds that are completed. As per requirement, the User can filter the builds by - Build Status or Project Name. Users can also search by the Build Name or Build ID.

1.png

Interpreting build status

The status of a Build depends on the status of executed sessions in the build.

  • Progress : If the status of one or more test sessions is running.
  • Completed : If the status of all test sessions in the build is completed.

Once a Build is selected, the user can view the overall summary of the Build as well as the results for each test session. Which consists of the Build Detail, No of sessions in the build, the current status and the Overall TestCase result.

The user can then drill down into the details of a specific test session to view its execution details and debugging information such as video recording, and text logs.

Session detail page - It consists of the session meta-information such as

  • Session Status
  • Session ID
  • Duration
  • Last Updated
  • Browser Name
  • OS Version
  • User Name
  • Local Site Status

2.png

Every Selenium test session has a unique session ID associated with it. The user can also use the session ID to access test results and debugging information.

Interpreting test session status

Each test session can have one of the following status:

  1. In Progress : Test session is currently running.

  2. Pass: Number of passed test cases
    One can mark the status using the command “pCloudy_setResult”

    E.g driver.executeScript("pCloudy_setResult", “pass”);

  3. Fail: Number of Failed test cases
    One can mark the status using the command “pCloudy_setResult”

    E.g driver.executeScript("pCloudy_setResult", “fail”);

  4. Completed: If the user doesn't set the status in the script, it will appear as completed

3.png

Use this below mentioned code in your script @AfterMethod to check pass and fail status

public void endTest(ITestResult result) throws  IOException, InterruptedException 

{
String status = result.isSuccess() ? "pass" : "Fail";
System.out.println("status of the test case"+ status);
driver.executeScript("pCloudy_setResult", status);
driver.quit();
}

Advanced Browser Automation Report

There are two types of logs that you get access to, such as Text logs and video.

Text Logs

Text logs are enabled by default and cannot be disabled. Text logs provide detailed information about every request and response that is received.

4.png

Video Streaming

You can even stream the video of the execution on the devices in real time. You can simply hover over the video section and select play to start viewing the real-time video stream of the execution. You can even download the video once the test execution is completed.

5.png


Was this article helpful?