Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.51 KB

README.md

File metadata and controls

66 lines (45 loc) · 1.51 KB

End to end automated testing using Robot Framework and Selenium via Lambdatest

Deployment with docker-compose

  1. Edit bin/publish.sh if needed
  2. Run ./bin/publish.sh to deploy your image to docker hub
  3. Create docker-compose.yml file with the following content:
# Example of docker-compose.yml
version: '3.9'

services:
  e2e:
    image: antonpegov/zeropool-e2e:latest
    environment:
      - LT_USERNAME=your_username
      - LT_ACCESS_KEY=your_lambdatest_access_key
  1. Run docker-compose up -d to start the container

Debug tests locally

  1. Install Visual Studio Code
  2. Install Robot Framework Language Server plugin

Run tests locally on Lambdatest grid (without docker)

  1. Create an account on LambdaTest
  2. Get the username and access key
  3. In the root directory run the following commands
`pip3 install virtualenv`

`python -m virtualenv venv`

`source .\venv\scripts\activate`

`pip install -r requirements.txt`
  1. Set LambdaTest Username and Access Key in environment variables.
  • For Linux/macOS:
export LT_USERNAME= undefined
export LT_ACCESS_KEY= undefined
  • For Windows:
set LT_USERNAME= undefined
set LT_ACCESS_KEY= undefined
  1. Run tests
`./make <test_name_from_Makefile>`

*** Note: Make and Makefile used to run tests in parallel. Special subscription required for parallel testing.