Giter VIP home page Giter VIP logo

elmasekar / behave-add-extension Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 5.0 1 KB

A sample repo to help you add an extension for automation test in Behave for LambdaTest. Run your automation test scripts in Behave on Lambdatest.

Home Page: https://www.lambdatest.com/behave-testing/?utm_source=github&utm_medium=about&utm_campaign=Behave_add_extension

automated-testing automation behave behave-framework chrome-extension chrome-extensions add-browser-extension add-browser-extensions add-extension add-extension-with-behave

behave-add-extension's Introduction

How to add extension for automation test in Behave for LambdaTest

If your webapp requires an extension for automation test in Behave for Lambdatest, you can use the following steps to upload extension and run your test. You can refer to sample test repo here.

Steps:

Step 1: Get the zip file (Skip this if you already have the zip file with you)

Note: You will need the Chrome Extensions's ID for this. I am referring it to as $ID$. You can get the $ID$ from the URL of the Chrome Extension page.

  1. Install your desired chrome extension on chrome.
  2. Go to Chrome's Extensions page (chrome://extensions/), Enable the developer mode (check the developer mode box) and take note of the ID for your desired extension.
  3. Your extension will be located at:

For Unix, ~/.config/google-chrome/Default/Extensions/$ID$

For Windows, C:\Users<Your_User_Name>\AppData\Local\Google\Chrome\User Data\Default\Extensions$ID$

For OSX, ~/Library/Application Support/Google/Chrome/Default/Extensions/$ID$

Step 2: Upload the zip file to LamdbaTest using API

  1. Copy the link to your extension which will look something like - https://automation-prod-user-files.s3.amazonaws.com/extensions/orgId-XXXX/2.1.0_0.zip

Step 3: Pass extension in capabilities

In the config.json file, you need to update the test capabilities and add the extension capability. For example:

[
	{
		"platform": "Windows 10",
		"browserName": "chrome",
		"version": "latest",
		"build": "Behave Selenium Sample",
		"name": "Behave Sample Test",
		"lambda:loadExtension": "https://automation-prod-user-files.s3.amazonaws.com/extensions/orgId-XXXX/2.1.0_0.zip"
	}
]

Step 4: Run your test

Running tests through local (linux/unix)

paver run 

###Running tests through local (windows)

behave features/test.feature 

Running tests through jenkins

paver run jenkins

Links:

LambdaTest Community

behave-add-extension's People

Contributors

elmasekar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.