tools to automate the script webdriver in jmeter - selenium

is there any tools which can make the automation script for webdriver in Jmeter?

You cannot just copy and paste the existing code as JMeter's WebDriver Sampler plugin:
Doesn't allow you to use DesiredCapabilities
You need to rename your WebDriver instances to WDS.browser
I don't think JUnit annotations will be processed properly.
The easiest way to run existing Selenium tests written in Java using JUnit framework is JUnit Request sampler. All you need is to package your tests as .jar file and drop them under "lib/junit" folder of your JMeter installation.
After JMeter restart you will be able to see your test class and method(s) names(s) in the JUnit Request sampler and hence it will be possible to run your test with increased number of threads.
More information: How to Use JUnit With JMeter

If u want to perform load testing, then I would prefer Jmeter. and to automate application in web browser, selenium web driver is perfect way. but as u want to automate script webdriver using Jmeter u need to integrate it using plugins of Jmeter.
U can directly pass URL in Jmeter and directly redirect to URL as well.

Related

Is it possible to package Selenium test cases into a runnable appliction

I am creating selenium test to test a web app. I also want to be able to use these test cases as a way for non technical users to automate the first few steps of the process. ~Is this possible?
If you are using testng, generate command to run XML from the command line and then copy the same command to .bat or .cmd file. By a click any user can run those tests/suite.
Of course you can, Selenium automates browsers, it is not a 'test library' you can use it in any program. Just write java program where you use selenium.
You can also write tests (in JUnit or TestNG or any other test runner) and run tests programmatically.

Starting Jmeter recording proxy from command-line

In our CI pipeline we are running automated acceptance tests through selenium. We are now looking to run these through a recording proxy and then use the recording as a basis for a load test.
This strategy will help us automatically add new acceptance tests to the load test. We are currently running load tests with JMeter, hence it would be nice to be able to achieve this using the same tools. However we can't figure out a way to start recording from the JMeter command-line interface. Is this at all possible? If not isn't here other tools that has this feature set?
It doesn't seem to be possible as per JMeter 3.1 so you will have to use GUI or go for another tool.
Taurus can be considered as an option, the main features you might be interested in are:
it's free
it's open source
it is command-line application
it supports JMeter and Selenium tests (you can use Taurus to execute them in parallel)
and finally, it comes with Proxy2JMX Converter module which can be used for recording Selenium tests in command-line mode and converting them into a JMeter test plan. Moreover, you will even get automatic correlation of dynamic parameters. See How to Convert Selenium Scripts into the JMX Converter article for details.

Fitnesse: integration with Selenium WebDriver

I am working on a Selenium WebDriver project, written using the page object pattern.
I wanted to know whether is there any way in which I can integrate FitNesse and Selenium WebDriver project?
I know FitNesse can be used with Selenium IDE, however, I have no idea whether is it possible to use Fitnesse with WebDriver.
You sure can, it's just Java after all. One example of such a project is (my own set of FitNesse fixtures): https://github.com/fhoeben/hsac-fitnesse-fixtures.
You could use my fixture (BrowserTest) to execute the test. Or only use the web driver setup fixture (selenium driver setup), which also also the setup to be overridden in a CI environment, and do your own thing with web driver in a custom fixture.

What is the use of jenkins with Selenium WebDriver?

What is the use of selenium webdriver with jenkins?
Is it ok to integrate jenkins in webdriver even if we are not using jenkins in project integration.
I directly get URL of website to automate, Is jenkins help anything me in webdriver?
Jenkins is a job scheduler. You can use jenkins to configure your tests to run on a schedule (eg: every hour, every day at noon, etc), or every time you check in code. Jenkins also has features to allow you to run jobs on multiple machines, set dependencies between jobs, and many other features.
WebDriver is a library for writing tests that exercise websites using a browser.
You can use jenkins to run your WebDriver-based tests if you want your tests to run automatically. If you run your tests by hand, jenkins doesn't help you at all.
Jenkins won't help you anything in automating Applications. Its continues integration tools which helps in running bunch of automated test case by scheduling different jobs.
WebDriver is an web automation API that helps to mimic user navigation.
Lets say you want to test search in google. You can use WebDriver to write a code which performs the below
Launch a google page
Identify search box on it and enter text into it
Click on search button
WebDriver driver = new FireFoxDriver();
driver.get("www.google.com");
driver.findElement(By.id("gbqfq").sendKeys("Selenium");
driver.findElement(By.id("gbqfb").click();
Once you have written above code, you may want to run it everyday, or every 5 hours. Instead of you going and manually running it. You can use Jenkins to schedule execution of your scripts as a maven build(pom.xml).
Also you can configure to run your functional test cases through Jenkins automatically after code is deployed and build successfully.

Is it possible to use Selenium IDE html test and capture screenshots on failure

I have created a few HTML test suites with Selenium IDE. They are automatically tested and by Jenkins daily. Now, I'm wondering if it is possible to create a screenshot whenever a test fails.
Is it possbile to catch the exeption when the IDE test fails and capture the screen? Or is it only possible with TestNG? If it's only possible with TestNG, how does selenium HTML tests work combined with TestNG?
Kind regards,
Selenium IDE doesn't directly support saving screen shots like this. Check out this other (duplicate) question: Screenshots using Selenium IDE Firefox plugin
selenium ide does not have built in screenshot capabilities, but you can inject raw javascript: "javascript{alert();}" will display an alert. If you can find a way to do it in javascript, you could add the js to selenium ide.