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 ?

Helping Hands
2,5443 gold badges30 silver badges54 bronze badges
asked Nov 23, 2015 at 10:52

3 Answers 3

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
answered Nov 24, 2015 at 18:13
1
  • I will definitely check this out. Commented Nov 25, 2015 at 15:21
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.

answered Nov 24, 2015 at 10:49
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 Commented Nov 24, 2015 at 10:53
  • 1
    "not taht we now" => "now that we know" Commented Nov 24, 2015 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

answered Nov 23, 2015 at 11:31
1
  • thanks @ECiuleo, this is what i found too. I hope someone will make a better observation or offer another more cross platform solution :( Commented Nov 23, 2015 at 17:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.