Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/cypress/report-portal-cypress/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cypress/report-portal-cypress/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cypress/report-portal-cypress/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cypress/report-portal-cypress/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cypress/report-portal-cypress/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/report-portal-cypress/report1.webp
Binary file not shown.
Binary file removed assets/images/report-portal-cypress/report2.webp
Binary file not shown.
Binary file removed assets/images/report-portal-cypress/report3.webp
Binary file not shown.
Binary file removed assets/images/report-portal-cypress/report4.webp
Binary file not shown.
Binary file removed assets/images/report-portal-cypress/report5.webp
Binary file not shown.
Binary file removed assets/images/report-portal-cypress/report7.webp
Binary file not shown.
91 changes: 37 additions & 54 deletions docs/report-portal-cypress.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: report-portal-cypress
title: ReportPortal.io Integration With LambdaTest For Cypress
title: Integrate ReportPortal.io with LambdaTest for Cypress
sidebar_label: Report Portal IO Integration For Cypress
description: This article will guide you on how to integrate the LambdatTest platform with Report Portal platform for running your Cypress automation tests.
keywords:
Expand All @@ -20,72 +20,55 @@ slug: report-portal-cypress/
import CodeBlock from '@theme/CodeBlock';
import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys";

---
<script type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify({
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://www.lambdatest.com"
},{
"@type": "ListItem",
"position": 2,
"name": "Support",
"item": "https://www.lambdatest.com/support/docs/"
},{
"@type": "ListItem",
"position": 3,
"name": "Report Portal Cypress",
"item": "https://www.lambdatest.com/support/docs/report-portal-cypress/"
}]
})
}}
></script>

This article will guide you on how to integrate the **LambdaTest** platform with **ReportPortal.io** platform for running your **Cypress** automation tests. Before you can get started, make sure you have an account on [ReportPortal.io](http://reportportal.io/).

> By default, the LambdaTest **Cypress-Multi-Reporter** mechanism generates **mochaawesome**. To override it with some other reporting options (report portal in this case), you have to create a different file to define the reporting configuration.

## Steps To Integrate

---

- Navigate to [ReportPortal.io](http://reportportal.io/) and login into your account. Then open your **Report Portal IO Profile**.

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report1.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>

***

- Copy the Report Portal Credentials

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report2.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>

***

- Open your Cypress project and create a new file for defining report portal configuration/credentials

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report3.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>

***

- Define the file name in the "`reporter_config_file`" capability of `lambdatest-config.json` file as mentioned in the below screenshot
## Steps to Integrate ReportPortal.io
**Step 1:** Navigate to [ReportPortal.io](http://reportportal.io/) and login into your account. Then open your **Report Portal IO Profile**.

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report4.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>
<img loading="lazy" src={require('../assets/images/cypress/report-portal-cypress/1.png').default} alt="Image" className="doc_img"/>

***
**Step 2:** Click on the **API Keys** tab and generate a new API key. Now switch to **Configuration examples** tab and copy the configuration code snippet as per your desired programming language

- Define the **reportportal.io** dependency (`@reportportal/agent-js-cypress`) in your **lambdatest-config.json** or **package.json** file
<img loading="lazy" src={require('../assets/images/cypress/report-portal-cypress/2.png').default} alt="Image" className="doc_img"/>

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report5.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>
**Step 3:** Go to your Cypress project and create a new file for defining report portal configuration/credentials

***
<img loading="lazy" src={require('../assets/images/cypress/report-portal-cypress/3.png').default} alt="Image" className="doc_img"/>

- Integration is now done, open the Dashboard to see the results.
**Step 4:** Define the file name in the `reporter_config_file` capability of `lambdatest-config.json` file as mentioned in the below screenshot

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report6.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>
<img loading="lazy" src={require('../assets/images/cypress/report-portal-cypress/4.png').default} alt="Image" className="doc_img"/>

***
**Step 5:** Install the **reportportal.io** dependency (`@reportportal/agent-js-cypress`) in your Cypress project. You can check this in your `lambdatest-config.json` or `package.json` file.

<img loading="lazy" src={require('../assets/images/report-portal-cypress/report7.webp').default} alt="Image" width="1353" height="622" className="doc_img"/>
<img loading="lazy" src={require('../assets/images/cypress/report-portal-cypress/5.png').default} alt="Image" className="doc_img"/>

> That’s all! you have successfully integrated **ReportPortal.io** and **LambdaTest** for running your **Cypress** tests. In case you have any questions or need any additional information, you could reach out at our <span className="doc\_\_lt" onClick={() => window.openLTChatWidget()}>**24X7 Chat Support**</span> or mail us directly at support@lambdatest.com.
Now run your tests and go to the dashboard to check your results.

<nav aria-label="breadcrumbs">
<ul className="breadcrumbs">
<li className="breadcrumbs__item">
<a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com">
Home
</a>
</li>
<li className="breadcrumbs__item">
<a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com/support/docs/">
Support
</a>
</li>
<li className="breadcrumbs__item breadcrumbs__item--active">
<span className="breadcrumbs__link">
Report Portal IO Integration For Cypress
</span>
</li>
</ul>
</nav>
<img loading="lazy" src={require('../assets/images/cypress/report-portal-cypress/6.png').default} alt="Image" className="doc_img"/>
Loading