How to run selenium webdriver in parallel in internet explorer - selenium

I m using a single test method which I feed from a data provider which can access different sheets of an excel file I m using keyword driven framework

You need a selenium grid. Selenium Grid allows you to have multiple slave and one host machine. So multiple instance can be kicked off at the same time. See this to start with the configuration.

Related

Executing on multiple windows or instances with Selenium web driver

I am trying to build an instagram bot with selenium. So far I have managed to get it work with 1 chrome window and 1 account, it auto follows, likes etc. with the given http requests on my express server. However when I try it with 2 different accounts on 2 different selenium instances or windows, the first one stops executing the function(or maybe it starts executing on the second chrome window, I dont know whats happening). So can anyone explain me if and how its possible to continue execution on multiple windows? Note: I don't want to switch between instances.
You can use the Selenium Grid to implement the scenario.
Generally, Hub & Node Structure is generally used to run parallel Tests.
https://www.guru99.com/introduction-to-selenium-grid.html
Above link will help you to get the concept of Grid.

Is it possible to run multiple tests in parallel on same browser (IE) using Selenium Grid?

I have a selenium java code which executes tests on IE. I want to try executing these tests in parallel using the same browser. How can I achieve this? And will I need to use multiple nodes to do so?
You need to setup a selenium grid which has atleast 2 nodes attached to it.
When it comes to IE support, you can run ONLY 1 test at any given point in time on one selenium node.
So if you need to run two parallel IE tests, then you would need to have atleast 2 nodes attached to your grid.
This blog post of mine gives you a complete overview of the selenium grid.
https://rationaleemotions.github.io/gridopadesham/

TestNG: Parallel Execution: Handling Multiple browser and switching to new Window

I do have a Test Suite with actually 20 Test Cases defined in 20 separate classes which needs to be Executed in parallel in browser Firefox on Linux OS
Some TC's have Java code which handles/opens new windows which passes control to these windows based on title of new window opened
When executed serially all TC's passes.
When trying to execute parallely through Xml file with thread count=3, and timeOut=10 sec(10000 mili sec) maximum for each TC's
My Question:
How will the webDriver Handles this situation(If Multiple windows are opened)???? and wont there be a conflict and how will the webDriver transfer the control to Exact windows before the window closes and pass the TC's???? Needs to execute/pass all the 20 Tc's within the maximum time frame.
P.S: Needs some valuable Suggestions to address this issue.
Webdriver has nothing to do with parallelization, It is TestNG feature.
Basically we execute testng tests in parallel which spawns their own browsers or driver instances, these instances are totally independent of each other and are uniquely identified by sessionid. Now even if some of these browser open in new tab or window they are tightly coupled because sessionid remains the same.
I can confirm this because i have maintained such a setup and with no problem.

Creation of test scripts using multiple data in Selenium IDE

am new to Selenium Testing Automation Tool. I have installed the selenium IDE on my Firefox browser. I jus want to test a login page with different User.id and the Password in Selenium IDE
So where and how do i mention the set of values for the user.id and the password fields.The formation of test scripts using the multiple test data must be performed..Can anyone kindly help on this?
I figured out 2 ways:
Either create n different test scripts for Login with different usname/pwd combination.
Store the data in a file.Read the file and identify the row count and apply the loop for same...for login and logout...to test various uname pwd combination.
Not sure about using Selenium IDE for this. You might have some luck implementing something that can read in your test data from a properties file or something.
My experience is limited to C# and Java Selenium bindings, but that is how we handled test execution with multiple data sets in those languages.

Running the same junit test case using selenium webdriver in multiple instances of the same browser (load testing)

I'm trying to simulate a firefox load testing situation. I want my to test how 10 simultaneous logins would play out on my system. I already have a connected selenium grid hub and 10 open nodes.
So far, I know I can write the test case and run it 10 times which isn't what I need because it isn't automated. I also know that I can use invocation count on the test to make it run as many times as i want but this only works on the same browser node.
Does anyone have any ideas on how to automatically distribute the same test case to multiple instances of the same driver profile?
i.e. Run a login case test times on the same firefox profile open in 10 different nodes in parallel.
Gracias!
P.S. I built my tests using testNG if that matters.
Basically selenium and testNG is not for such requiurement. You should use some dedicated tool for that like jmeter.
However you can run n methods parrallel let say if you want to login with 10 dif user in 10 thread/browser you can create test data driven and configure to run method in parrallel. Make sure you are providing proper value of parrallel thread count.
How about combining threadpoolsize with invocationcount. - http://testng.org/doc/documentation-main.html#parallel-running
Grid would take care to distribute on the 10 nodes.
use headless browser like GHOST and then invoke multiple threads as ghost has no UI so it would work in your case