Giter Club home page Giter Club logo

pyunit-selenium-sample-1's Introduction

Welcome to LambdaTest Logo - Python-UnitTest-Selenium Sample


Gitpod Ready-to-Code

Step 1 : Environment Setup

Lambdatest Credentials

Set LambdaTest username and access key in environment variables in the file lamdatest.env

Replace the values with your credentials, you can find them at (https://www.lambdatest.com/capabilities-generator/)

ln 1: export LT_USERNAME="Your Username"
ln 2: export LT_ACCESS_KEY="Your Access key"

Lamdatest Credentials

After your save your credentials at lambdatest.env please run the command:

$ source lambdatest.env

Step 2: Setting up your test capabilites

You can genegate the test capabilites at (https://www.lambdatest.com/capabilities-generator/) and choose Python as the language.

Now, can setup the capabilites of the test in the single_test.py file at:

ln 13: desired_caps = {
ln 14:           "build": 'PyunitTest sample build',
ln 15:            "name": 'Py-unittest',
ln 16:           "platform": 'OS X El Capitan',
ln 17:            "browserName": 'chrome',
ln 18:           "version": '81.0',
ln 19:           "console": 'true',
ln 20:           "network":'true'
ln 21:        }

You can setup the capabilites of your test in the parallel_test.py file at:

browsers = [
    {"build": 'PyunitTest sample build',"name": "Test 1", "platform": "Windows 10","browserName": "Chrome", "version": "86.0"},
    {"build": 'PyunitTest sample build',"name": "Test 2", "platform": "Windows 10","browserName": "Firefox", "version": "82.0"}
]

Step 3: Running Tests

To start a single test Run following command:

$ python single_test.py 

To start a parallel test Run the following command:

$ python parallel_test.py

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.

For further References

pyunit-selenium-sample-1's People

Contributors

srivishnu-ayyagari-zz avatar sushobhit-lt avatar 4dvanceboy avatar ayyagari-dalalstreet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.