salmanlt / MSTest-Selenium-Sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSTest Selenium Sample

MSTest

Prerequisites

  1. Setup Visual Studio with .NET core. 1.Download Visual studio from Visual Studio website 2.Install the framework 'Microsoft.NETCore.App' here. 3.For more refference, refer MSTest Blog.

Steps to Run your First Test

Step 1. Clone the WD Selenium Repository.

git clone https://github.com/LambdaTest/MSTest-Selenium-Sample.git

Step 2. Inside mstest-selenium-sample, export the Lambda-test Credentials. You can get these from your automation dashboard.

For Linux/macOS:

export LT_USERNAME="YOUR_USERNAME"
export LT_ACCESS_KEY="YOUR ACCESS KEY"

For Windows: ``` set LT_USERNAME="YOUR_USERNAME" set LT_ACCESS_KEY="YOUR ACCESS KEY" ```

Step 3. To run your First Test.

dotnet test MS-Test-Cross-Browser.csproj

See the Results

You can check your test results on the Automation Dashboard. Automation Testing Logs

About LambdaTest

LambdaTest is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your selenium automation testing to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.

About


Languages

Language:C# 100.0%