2

I am a software architect

we use selenium tests with nunit and c# i am trying to run jmeter load testing using firefox jmeter recorder (for blazemeter)

i was sure selenium has its own cross platform language that you write to but looking at the tests my teams wrote i see it all 100% c# and typed c#

how can i take some of their tests and put them in the jmeter? does anyone know of a way to do this ?

2

Selenium WebDriver uses JSONWire protocol which is cross-platform. It provides different client libraries i.e. for C#, Java, Python, Ruby, JavaScript.

Once you have tests developed in C# - the easiest option to convert them into JMeter test is record and replay.

You can just record running Selenium tests with JMeter's Proxy Server

  1. Follow instructions from JMeter Proxy Step by Step guide to get recorder up and running. By default it launches proxy on port 8080
  2. Configure Selenium tests to use JMeter proxy. C# and Firefox example:

    FirefoxProfile profile = new FirefoxProfile();
    string jmeterProxy = "localhost:8080";
    OpenQA.Selenium.Proxy proxy = new OpenQA.Selenium.Proxy();
    proxy.HttpProxy=jmeterProxy;
    proxy.SslProxy=jmeterProxy;
    profile.SetProxyPreferences(proxy);
    FirefoxDriver driver = new FirefoxDriver(profile);
    
  3. Add View Results Tree listener to check whether your test is doing what it should be doing
  4. Perform parametrization if required (like different usernames for different virtual users) it is usually being done via CSV Data Set config
  5. Add virtual users
  6. Run the load test
1
1

If you are not locked to Blazemeter and JMeter, you can accomplish similar with Microsoft's own load testing tool (but there is a cost associated)

I found a tutorial on how to integrate the two, hopefully it will help as a starting point.

2
  • maybe we should reconsider this yet again. our main reason for using blazemeter was the selenium tests. not taht we now they are in compatible, maybe we should reconsider – Mickey Perlstein Nov 24 '15 at 10:53
  • 1
    "not taht we now" => "now that we know" – Michael Durrant Nov 24 '15 at 12:01
-1

As far as I am aware the answer is that its not possible. This mainly comes down to JMeter depending on JUnit.

Blazemeter themselves don't offer support for it

1
  • thanks @ECiuleo, this is what i found too. I hope someone will make a better observation or offer another more cross platform solution :( – Mickey Perlstein Nov 23 '15 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.