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
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/uploads/reqnroll-mobile-step1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/uploads/reqnroll-mobile-step4.webp
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/uploads/reqnroll-mobile-step5.webp
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/uploads/reqnroll-mobile-step6.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/uploads/reqnroll-mobile-step7.webp
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/uploads/reqnroll-mobile-step8.webp
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/uploads/reqnroll-step4.webp
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/uploads/reqnroll-step5.webp
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/uploads/reqnroll-step6.0.webp
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/uploads/reqnroll-step6.webp
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/uploads/reqnroll-step7.1.webp
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/uploads/reqnroll-step7.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/playwright-ios-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Playwright test automation on real iOS devices is now supported on LambdaTest. T

This guide will cover the basics of getting started with Playwright testing on iOS devices on the LambdaTest platform.

> Playwright testing on real iOS and Android devices is supported on Playwright **v1.53.2**
> Testing with Playwright on real iOS and Android devices is currently supported with Playwright **v1.53.2**

## Prerequisites
**Step 1:** Clone the LambdaTest-Playwright repository on your system using the following command.
Expand Down
321 changes: 321 additions & 0 deletions docs/reqnroll-with-selenium.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,321 @@
---
id: reqnroll-with-selenium-appium
title: Reqnroll With Selenium Grid
hide_title: true
sidebar_label: Reqnroll
description: Now you can run your automation scripts using Selenium with Reqnroll on LambdaTest online grid of 10000+ real desktop browsers and real operating systems.
keywords:
- reqnroll
- reqnroll selenium
- reqnroll appium
- reqnroll tutorial
- c# selenium
- c# automation testing
- selenium webdriver c#
- selenium c# testing tutorial
- c# selenium framework
url: https://www.lambdatest.com/support/docs/reqnroll-automation-with-selenium-appium-on-lambdatest/
site_name: LambdaTest
slug: reqnroll-automation-with-selenium-appium-on-lambdatest/
---

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": "LambdaTest",
"item": "https://www.lambdatest.com/"
},{
"@type": "ListItem",
"position": 2,
"name": "Support",
"item": "https://www.lambdatest.com/support/"
},{
"@type": "ListItem",
"position": 3,
"name": "Reqnroll Selenium: Run Automation Scripts on Online Grid Using Reqnroll Testing Framework",
"item": "https://www.lambdatest.com/support/docs/reqnroll-automation-with-selenium-appium-on-lambdatest/"
}]
})
}}
></script>

# Reqnroll with Selenium and Appium: Tutorial to Run Your First Test on LambdaTest
***

In this topic, you will learn how to configure and run your web and mobile automation testing scripts on [LambdaTest Selenium cloud grid](https://www.lambdatest.com/selenium-automation) and [LambdaTest Appium cloud grid](https://www.lambdatest.com/appium-mobile-testing) using **Reqnroll**.

## Objective
***

By the end of this topic, you will be able to:

1. Set up an environment for testing your hosted web pages using **Reqnroll** framework with **Selenium**.
2. Understand and configure the core capabilities required for your Selenium test suite.
3. Run test cases in parallel using **Reqnroll** with **Selenium** to reduce build times.
4. Test your locally hosted pages on LambdaTest platform.
5. Explore advanced features of LambdaTest.

>**Note:** All the code samples in this documentation can be found in the [LambdaTest's Repository on GitHub](https://github.com/LambdaTest/reqnroll-automation-sample/). You can either download or clone the repository to quickly run your tests.

## Prerequisites For Running Reqnroll Selenium
***
>**Note:** This tutorial is specifically for Windows users using **Microsoft Visual Studio**.

Before you can start performing **Reqnroll** automation testing with **Selenium**, you would need to:

* Download and Install **Selenium WebDriver** from the [official website](https://www.selenium.dev/downloads/).
* Make sure you work with latest version of **Reqnroll**.
* **.Net** framework to deliver guidelines while developing a range of application using C#.
* Download [Selenium WebDriver Language Binding](https://www.selenium.dev/downloads/) for C# and extract them to appropriate folder. A [.NET Core SDK](https://dotnet.microsoft.com/en-us/download) of 2.1 or greater version.
* You would also need LambdaTest tunnel binary file for testing your locally hosted or privately hosted projects.


## Web Automation Testing with Reqnroll



**Step 1:** Create a virtual environment by triggering the virtualenv venv command on the terminal.

```bash
virtualenv venv
```

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-virtual-environment.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>



**Step 2:** Navigate the newly created virtual environment by triggering the source venv/bin/activate command on the terminal.

```bash
source venv/bin/activate
```


**Step 3:** You can fetch the LambdaTest Credentials from the [LambdaTest Profile Section](https://accounts.lambdatest.com/security/username-accesskey).

Update the LambdaTest Credentials - [LT_USERNAME](https://github.com/hjsblogger/reqnroll-web-mobile-automation/blob/main/selenium_4/Makefile#L17) and [LT_ACCESS_KEY](https://github.com/hjsblogger/reqnroll-web-mobile-automation/blob/main/selenium_4/Makefile#L18) in Makefile.

Alternatively, you can also export the environment variables LT_USERNAME and LT_ACCESS_KEY by triggering the following commands on the terminal:

**For macOS:**
```bash
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
```

**For Linux:**
```bash
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
```
**For Windows:**

```bash
set LT_USERNAME=LT_USERNAME
set LT_ACCESS_KEY=LT_ACCESS_KEY
```
**Step 4:** Run the make clean command on the terminal to clean the temporary files.

```bash
make clean
```
<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-step4.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

**Step 5:** Trigger the command `make build` on the terminal to build the automation project


```bash
make build
```
<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-step5.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

**Step 6:** **Execution**

Trigger the command `make reqnroll-automation-test` to run the Reqnroll tests on the LambdaTest platform


<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-step6.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-step6.0.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

**Step 7:** **Execution**

Navigate to the [LambdaTest Automation Dashboard](https://automation.lambdatest.com/) to check the status of the test execution:

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-cloud-execution.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

As seen below, all the scenarios that are a part of respective *.feature(s)* files successfully executed on LambdaTest.

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-step7.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-step7.1.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

## Mobile App Automation Testing with Reqnroll



**Step 1:** Create a virtual environment by triggering the *virtualenv venv* command on the terminal


```bash
virtualenv venv
```
<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step1.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

**Step 2**

Navigate the newly created virtual environment by triggering the source *venv/bin/activate* command on the terminal

```bash
source venv/bin/activate
```

**Step 3**

You can fetch the LambdaTest Credentials from the [LambdaTest Profile Section](https://accounts.lambdatest.com/security/username-accesskey) section.

Update the LambdaTest Credentials - [LT_USERNAME](https://github.com/hjsblogger/reqnroll-web-mobile-automation/blob/main/appium/Makefile#L17) and [LT_ACCESS_KEY](https://github.com/hjsblogger/reqnroll-web-mobile-automation/blob/main/appium/Makefile#L18) in Makefile.

Alternatively, you can also export the environment variables *LT_USERNAME* and *LT_ACCESS_KEY* by triggering the following commands on the terminal:

**For macOS:**
```bash
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
```
**For Linux:**

```bash
export LT_USERNAME=LT_USERNAME
export LT_ACCESS_KEY=LT_ACCESS_KEY
```

**For Windows:**

```bash
set LT_USERNAME=LT_USERNAME
set LT_ACCESS_KEY=LT_ACCESS_KEY
```

**Step 4**

For the testing, we are using the [Proverbial App (apk)](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk) from LambdaTest. The app needs to be uploaded to the LambdaTest cloud storage. Run the below command for uploading the app to the cloud:

Note: Please replace the LT_USERNAME and LT_ACCESS_KEY with the actual LambdaTest credentials that are available in the [LambdaTest Profile Section](https://accounts.lambdatest.com/security/username-accesskey) section.

```bash
curl -u "LT_USERNAME:LT_ACCESS_KEY" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "url=https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk" -F "name=proverbial-android" -F "custom_id=sampleName" -F "storage=url" -F "visibility=individual"
```

If the command execution is successful, you would see a APP ID in the command output:

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step4.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>


You would also see the app named 'proverbial-android' in the [App Live App Dashboard](https://applive.lambdatest.com/app).

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step4.1.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

Now that the app is available for testing, let's execute the other make commands

**Step 5**

Run the *make clean* command on the terminal to clean the temporary files

```bash
make clean
```
<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step5.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

**Step 6**

Trigger the command *make build* on the terminal to build the automation project

```bash
make build
```
<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step6.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>


**Step 7**

Trigger the command make `reqnroll-automation-test` to run the Reqnroll tests on the LambdaTest platform

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step7.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step7.1.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step7.2.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>

**Step 8**

Navigate to the [LambdaTest Automation Dashboard](https://automation.lambdatest.com/) to check the status of the test execution. As seen below, all the scenarios that are a part of respective .feature(s) files successfully executed on LambdaTest.

<p align="center">
<img loading="lazy" src={require('../assets/images/uploads/reqnroll-mobile-step8.webp').default} alt="cmd" width="768" height="373" className="doc_img"/>
</p>


## Additional Links
***
* [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/selenium-automation-capabilities/)
* [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/)
* [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/)


<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"> Reqnroll Automation Testing </span>
</li>
</ul>
</nav>
Loading