how to run my selenium script on multiple servers at the same time so that i would saved one by one execution time?

waqar rauf

how to run my selenium script on multiple servers at the same time so that i would save one by one execution time ? Scenario: I have 1 hour of total testing time and 20 servers to test and 1 test script takes about 30mins to execute so i want to run my test script simultaneously on all 20 servers in order to save time.

Ayaz Attar

The answer to your question is parallel execution There are multiple ways to achieve this like 1> Creating a Jenkins Job, Registering all the server machines as slave and executing jobon servers Or 2> A comparitively simpler and more widely used concept, using Selenium Grid To Implement Selenium Grid ( for instance with java as a programming language and TestNG framework) we need to take care that A. we have implemented Threading for our webdriver, so that each execution works on its own driver instance. B. We have our Testng.xml with attribute set as parallel=tests

You can easily get step by step guide to establish selenium grid to summarize it, We have one machine as hub(master), we have multiple machines or nodes(slave) registered to the hub, your automation code is supplied to the hub, Hub routes test on multiple nodes keeps track of individual execution and gets you the result on the Hub machine itself

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How would one run two controllers at the same time AngularJS

Is there a way to run multiple bash scripts with one script at the same time?

How to call another script in one script, and run them at the same time?

Run my script more than one time

If I have multiple datagridviews on one form, how would I allow a row selection to be active on only one at a time?

can I run multiple def in one time

one of my methods has completely different execution time for same input

Run multiple servers in python at same time (Threading)

How can i spawn n child processes to run concurrently, measure their execution time and prevent each one of them of exceeding a max execution time?

Python run one function multiple times at the same time

How to run python script for multiple input on multiple cores at the same time?

How do I run a test on multiple browsers at the same time? Selenium Grid, C#, Specflow, NUnit

How to run multiple command in one line and some commands in background at the same time?

How can I change my script so it minimizes the cost, and at the same time calculates the volume and weight chosen is viable?

How do I prevent ONE "while" process to run twice at the same time?

How can I run two scripts at same time in one linux terminal?

How to handle multiple https request to run a php script at same time?

How can I schedule a function to run, after one of my function is completed, after a specific time period in laravel?

I would like to know how to run a vba script to find and replace multiple words in only one sheet not the whole workgroup?

How can I make it so that only one of the draggable objects in my game can be moved at a time?

ssh on multiple servers at the same time

Run more than one application in the same time

How I automate my python script or get multiple entries in one run?

My code receives the message from the queue multiple time, I want to receive it only one time. How can I do it?

Run a shell script multiple times at the same time

Can only one PHP script run at a time?

How to run multiple background thread tasks one at a time?

How to run a one-time command on multiple mac clients?

How can I pass multiple cell values of datagridview from one form to another at same time in C#?