HOV QA Engineers
  • ๐Ÿ”HOV QA Engineers
  • AGILE TESTING
    • ๐Ÿ’ปCSS elements for QA
    • ๐Ÿ›ซOn-boarding QA
    • ๐ŸคTesters Communications, Task and Responsibilities
    • โ™ป๏ธSoftware Testing Life cycle
    • ๐Ÿ““Test Plan
    • ๐ŸŽŸ๏ธKanban board and ticket flows
    • ๐Ÿ““User Stories and Acceptance Criteria
    • ๐Ÿ‘ฃGherkin syntax
    • ๐Ÿค–Test Design
    • ๐Ÿ“…Test Strategy
    • ๐Ÿ‘ฌTypes of Testing strategy
    • ๐ŸงชTesting types
    • ๐Ÿ›Bug and Bug life Cycle
    • โœ๏ธManual Testing
    • Automation testing
    • ๐Ÿ‘ทโ€โ™‚๏ธE2E Testing
    • E2E testing best practices
    • Accessibility testing
    • Performance testing
    • Mobile Testing
  • Tools and Guidelines
    • Software QA Engineer Roadmap
    • ๐Ÿ’ปSetup Cypress v10 E2E testing
    • ๐ŸงชSetup End to end test with Cypress test suite
    • Setup Performance test with k6
    • API testing with postman
    • Building GitHub Action part 1
    • โœ๏ธPlaywright + Cucumber
  • Training Videos
    • SQA Trainings
  • Research
    • ๐Ÿ“ฑMobile Automation with Appium
      • Setup Project and Configuration (Android)
    • ๐ŸŽญPlaywright - Web Apps E2E Testing Tool
      • Setup Project and Configuration (Android)
    • Testing Library
  • PROJECTS
    • Page 2
    • Opexa
    • ๐Ÿ“ฃIdentifi
      • โš–๏ธSQA Metrics and Testing progress
      • ๐ŸงชManual testing
        • WEB
          • Sanity Testing
          • Regression Test cases
          • Credentials and URLs
        • Android
          • Sanity Testing
          • Regression Testing
          • End to end Testing
          • Credentials
        • IOS
          • Sanity Testing
          • Regression Testing
      • ๐Ÿ“”API Testing
      • ๐Ÿค–Web Automation
        • E2E Automation Test Plan
        • Web Automation Setup
          • ๐ŸšงSetup WSL2 Environment for Windows
          • ๐Ÿ—๏ธSetup local Environment (Linux/Ubuntu)
        • Regression Testing Coverage
        • Sanity Testing Coverage
      • ๐ŸŽญPerformance Testing
        • K6 Test Runs
      • ๐Ÿ“ดMobile Automation
        • Mobile Automation Test Plan
        • Identifi Mobile Automation Setup
      • Page 1
    • ๐Ÿ–ผ๏ธsubsit
      • Test plan
      • Smoke Test cases
      • ๐ŸงชTest Scenarios
      • ๐Ÿ•ธ๏ธWeb Automation
    • ๐ŸงตThreadSync
      • Test Plan
    • ๐Ÿ‘๏ธUpWatch
      • Product Requirement
      • Test plan
      • Monitoring & Bug Reporting
      • E2E Test
        • E2E UpWatch Test
      • E2E QA Automation
    • ๐ŸŽฒWallet
      • ๐ŸงฌTest Plan
      • ๐Ÿ’ปE2E Wallet Automation Test Plan
      • ๐Ÿ“–E2E Test Automation Docs
      • ๐Ÿ“‘Credentials| Urls
      • ๐Ÿ“šWallet Feature List
    • ๐Ÿ‘จโ€๐Ÿ’ปDevLuvs
      • ๐ŸงชTest Cases
      • ๐Ÿ”‘Credentials For Automation
        • ๐Ÿค–Automation Test Cases
      • ๐Ÿ“ŠAutomation Board
    • โš™๏ธMehira
      • ๐Ÿ•ธ๏ธWeb Automation
      • Sanity Testing Document
      • How to start running Mehira application from your local using Docker engine via Ubuntu platform
Powered by GitBook
On this page
  1. PROJECTS
  2. Identifi
  3. Web Automation
  4. Web Automation Setup

Setup WSL2 Environment for Windows

PreviousWeb Automation SetupNextSetup local Environment (Linux/Ubuntu)

Last updated 2 years ago

Pre-requisite

  • OS: Windows 11

  • graphics cards installer compatible on your device

Steps

  1. wsl --install

  2. Install Ubuntu 20.04 LTS from Microsoft store

    Note: This will be the default terminal that we will be using so make sure all the commands are run under Ubuntu terminal

  3. Set

    ssh-keygen -t ed25519 -C "your_email@example.com" 1. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location. 2. At the prompt, type a secure passphrase. go to the file directory where the ssh key is saved /c/Users/you/.ssh/id_algorithm Go to your Github settings > SSH Key & GPG Keys then Paste the generated key under .ssh folder

  4. Install Remote-wsl on your VSCode extension

  5. run this command sudo apt update && sudo apt dist-upgrade

  6. Clone Project repository using SSH

  7. On your root folder run this command

    sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose^^
  8. Install inside wsl

  9. Install

  10. Configure aws aws configure --profile identifi_qa access key: AKIAR73M5IQAJDI7TGPN secret key: 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 region: ap-southeast-1 output: json

  11. Run aws login

    aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 137130492928.dkr.ecr.ap-southeast-1.amazonaws.com
  12. run the following on your terminal Note: If you may encounter some unknown commands all you have to to is install it

    sudo usermod -aG docker ${USER}
    sudo apt-get update -y
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo apt-key fingerprint 0EBFCD88
    sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
    sudo apt-get update -y
    sudo apt-get install -y docker-ce
    sudo e2fsck /dev/sdb -y
    sudo e2fsck /dev/sdb -p
    wsl --shutdown
    wsl.exe -l -v
    wsl --set-default ubuntu
    ls -lad /tmp
    sudo usermod -aG docker $USER
    aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 137130492928.dkr.ecr.ap-southeast-1.amazonaws.com
    sudo groupadd docker
    sudo usermod -aG docker ${USER}
    su -s ${USER}
    docker run hello-world
    aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 137130492928.dkr.ecr.ap-southeast-1.amazonaws.com
    sudo docker-compose up -d

    Open the test folder directory of the project and install the following packages

    npm install
    sudo apt install libgtk-3-0
    sudo apt-get install libatk1.0-0
    sudo apt-get install -y libgbm-dev
    sudo apt install xvfb
  13. sudo apt-get install curl
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
    command -v nvm
  14. Install required node version use in the project then check node and npm version

    node -v 
    npm --version
  15. Run Docker command docker-compose down : to stop running the containers docker-compose pull : to pull the latest docker image of the project docker-compose up -d : to start and run the application docker container ls : to verify if the docker container is running

  16. Check if you run able to run the test by running npx cypress open

  17. Visit on your browser the project application: localhost:9000/login

๐Ÿ“ฃ
๐Ÿค–
๐Ÿšง
Install WSL
SSH key
Docker
AWS CLI