sauce_bindings icon indicating copy to clipboard operation
sauce_bindings copied to clipboard

Capture Performance vs Test Name

Open titusfortner opened this issue 3 years ago • 1 comments

Right now Java errors if capture performance is set without setting test name, but with the test runners this is set automatically after the session is created, requiring users to set it. We should remove the check in the setter and put it in the capability conversion method.

titusfortner avatar Jul 21 '21 18:07 titusfortner

@titusfortner we should fix this bug, our current Performance example is weird as it's really tough to set a good test name per test as it's implemented in.

   @Override
    public SauceOptions createSauceOptions() {
        return SauceOptions.chrome()
                .setExtendedDebugging()
                .setName("PerformanceTest") // bug - https://github.com/saucelabs/sauce_bindings/issues/267
                .setCapturePerformance()
                .build();
    }

I didn't take a long look, not sure if you know of a work around?

nadvolod avatar Jun 21 '22 16:06 nadvolod