abstracta / jmeter-dotnet-dsl

Simple JMeter performance tests .Net API
https://abstracta.github.io/jmeter-dotnet-dsl/
Apache License 2.0
41 stars 1 forks source link

ERROR org.apache.jmeter.util.JMeterUtils - Could not find resources for 'ru_RU' #19

Open Lavshyak opened 1 week ago

Lavshyak commented 1 week ago

Windows 10 with Russian language, Rider with English language, Java 8 Update 411, Java SE Development Kit 8 Update 60 (64-bit), Java(TM) SE Development Kit 21 (64-bit), .NET SDK 8.

using NUnit.Framework;
using static Abstracta.JmeterDsl.JmeterDsl;

namespace StressTest;

public class SomeTest
{
    [Test]
    public void LoadTest()
    {
        var stats = TestPlan(
            ThreadGroup(1, 1,
                HttpSampler("https://google.com/")
                    .Method(HttpMethod.Post.Method)
            )
        ).Run();
        Assert.That(stats.Overall.SampleTimePercentile99, Is.LessThan(TimeSpan.FromSeconds(5)));
    }
}

When i run LoadTest:

01:22:47.277 [main] ERROR org.apache.jmeter.util.JMeterUtils - Could not find resources for 'ru_RU' = 1 in 00:00:01 = 1,6/s Avg: 523 Min: 523 Max: 523 Err: 1 (100,00%)

Where i can specify 'en_EN'?

rabelenda commented 1 week ago

Hello, thank you for bringing this.

We could try adding support for JMeter properties in .net DSL and try using language property set to en_US. We will consider this for a future release, since the need for system properties in .net has been identified in other reported issues.

Another posibility might be adding a rusian messages resources, but that would require more effort and I would need some contribution from someone in the community that speaks russian (I don't :)).

Lavshyak commented 1 week ago

Another posibility might be adding a rusian messages resources, but that would require more effort and I would need some contribution from someone in the community that speaks russian (I don't :)).

if you want to go this route, just put English in the Russian resource files)

If anything, it’s not urgent for me. I already use k6 and am writing my own analogue on .net