Giter VIP home page Giter VIP logo

jitsi-load-and-unit-testing's Introduction

Introduction

Selenium on Kubernetes

Selenium Grid allows the execution of WebDriver scripts on remote machines (virtual or real) by routing commands sent by the client to remote browser instances. It aims to provide an easy way to run tests in parallel on multiple machines. This example shows you how to deploy Selenium to Kubernetes in a scalable fashion.

Architecture:

                                          |-----------> Selenium Node 1----->|
                                          |                                  |
                                          |-----------> Selenium Node 2----->| 
                                          |                                  |
Torture---------->Selenium Hub----------->|-----------> Selenium Node3------>|--------->Sariska Meet 
                                          |                                  |  
                                          |-----------> Selenium Node 5----->|   
                                          |                                  | 
                                          |-----------> Selenium Node N----->|

Jitsi meet torture

meet meet torture contains all unit tests written in java selenium as well resources to replicate fake audio/video.

Selenium Hub

Hub is a server that accepts the access requests from the WebDriver client, routing the JSON test commands to the remote drives on nodes. It takes instructions from the client and executes them remotely on the various nodes in parallel

Selenium Node

Node is a remote device that consists of a native OS and a remote WebDriver. It receives requests from the hub in the form of JSON test commands and executes them using WebDriver

How To Start:

1. SSH to torture pod:


kubectl exec -it torture -n automation -- /bin/sh

2. Run test with desired config

 mvn -f pom.xml \
-Dthreadcount=1 \
-Dorg.jitsi.malleus.conferences=1 \
-Dorg.jitsi.malleus.participants=5 \
-Dorg.jitsi.malleus.senders=3 \
-Dorg.jitsi.malleus.audio_senders=3 \
-Dorg.jitsi.malleus.duration=300 \
-Dorg.jitsi.malleus.max_disrupted_bridges_pct=0 \
-Dorg.jitsi.malleus.join_delay=200 \
-Dorg.jitsi.malleus.room_name_prefix=loadtest \
-Dorg.jitsi.malleus.input_video_file="resources/fakeVideoStream.y4m" \
-Dorg.jitsi.malleus.regions="" \
-Dremote.address="http://selenium-srv.automation.svc.cluster.local:30001/wd/hub" \
-Djitsi-meet.tests.toRun=MalleusJitsificus \
-Dwdm.gitHubTokenName=jitsi-jenkins \
-Dremote.resource.path='/usr/share/jitsi-meet-torture' \
-Djitsi-meet.instance.url="https://meet.dev.sariska.io" \
-Djitsi-meet.isRemote=true \
-Dchrome.disable.nosanbox=true \
test

3.Access selenium hub


 http:http://13.126.68.169/:30001/hub/console

jitsi-load-and-unit-testing's People

Contributors

brajendrak00068 avatar brajendrak0068 avatar digvijay2021 avatar tinkesh-kumar 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.