Directory

← Back

LoadTestDriver add-on

Probably the simplest way to generate load tests for Vaadin applications.

Author

Rating

Popularity

<100

Probably the simplest way to make scalability tests for Vaadin applications. Use this in your TestBench test instead of e.g. ChromeDriver, and it will record a Gatling scalability test with given parameters. See project's GitHub page for more information.

  • Version 0.1.x for Vaadin 7 (TestBench 4)
  • Version 0.2.x for Vaadin 8 (TestBench 5)
  • Version 0.3.x for Vaadin 10+ (TestBench 6)
  • Version 0.5.x for Vaadin 23 (TestBench 8)
  • Version 0.6.x for Vaadin 24 (TestBench 9)

This is still experimental, please report bugs and improvement ideas. I'm not backporting bug fixes and new features by default to older releases. Let me know if there is a need for that.

Sample code

public class MainViewIT extends BrowserTestBase {
    
    @BeforeEach
    public void setUp() throws Exception {
        WebDriver driver = new LoadTestDriverBuilder().
                withIpAddress("your-ip-address").
                withNumberOfConcurrentUsers(1).
                withRampUpTimeInSeconds(1).
                withTestName("MyUI_ScalabilityTest").
                // create that folder before running the test
                withPath("/Users/your-username/Desktop/gatling").
                withResourcesPath("/Users/your-username/Desktop/gatling").
                withStaticResourcesIngnoring().
                withTestRefactoring().
                build();
        setDriver(driver);
        getDriver().get("http://your-ip-address:8080/");
    }

    @BrowserTest
    public void clickingButtonShowsNotification() {
        Assertions.assertFalse($(ParagraphElement.class).exists());
        $(ButtonElement.class).waitForFirst().click();
        Assertions.assertTrue($(ParagraphElement.class).exists());
        try {
            getDriver().wait(2000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        getDriver().close();
    }
}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Updated dependencies, possibility to set browser's language code

Released
2021-03-11
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 14
Vaadin 7.7+ in 0.1.8
Vaadin 12 in 0.3.3
Vaadin 11 in 0.3.3
Vaadin 10 in 0.3.3
Vaadin 8.5+ in 0.2.8
Vaadin 24+ in 0.6.0
Vaadin 23 in 0.5.2
Browser
N/A

LoadTestDriver add-on - Vaadin Add-on Directory

Probably the simplest way to generate load tests for Vaadin applications. LoadTestDriver add-on - Vaadin Add-on Directory
Probably the simplest way to make scalability tests for Vaadin applications. Use this in your TestBench test instead of e.g. ChromeDriver, and it will record a Gatling scalability test with given parameters. See project's GitHub page for more information. - Version 0.1.x for Vaadin 7 (TestBench 4) - Version 0.2.x for Vaadin 8 (TestBench 5) - Version 0.3.x for Vaadin 10+ (TestBench 6) - Version 0.5.x for Vaadin 23 (TestBench 8) - Version 0.6.x for Vaadin 24 (TestBench 9) This is still experimental, please report bugs and improvement ideas. I'm not backporting bug fixes and new features by default to older releases. Let me know if there is a need for that.
Issue Tracker
Source Code

LoadTestDriver add-on version 0.1.8
Added an experimental support for tryMax polling

LoadTestDriver add-on version 0.2.8
Poll request counter, API for poll request name

LoadTestDriver add-on version 0.2.9
Sub window (dialog) support Initial Push websocket support

LoadTestDriver add-on version 0.3.3
Support for external use of the configurator

LoadTestDriver add-on version 0.2.10
Added support for browser lang codes

LoadTestDriver add-on version 0.2.11
Bug fixes

LoadTestDriver add-on version 0.3.4
Updated dependencies, possibility to set browser's language code

LoadTestDriver add-on version 0.6.0
Vaadin 24 support Gatling 3.10.3 A lot of fixes

LoadTestDriver add-on version 0.5.2
Gatling 3.10 support, backported fixes from 0.6

Online