Flood Element is a streamlined, powerful tool that can be used to create test scripts for both functional and non-functional purposes. As a functional test tool, it interacts with browsers just like a real user would, using a language and syntax that is very easy to pick up, especially for those familiar with Selenium. Pairing Element with Flood supercharges it and turns it into a very capable load test tool capable of reusing functional scripts and running them at scale in the cloud. Running a full browser headlessly allows Element to take full advantage of browser-level scripting simplicity while also executing scripts with maximum efficiency.
Running Element scripts on Flood is very simple:
Download our ready-to-run sample Element script here.
When first creating a test scenario (or as Flood calls it, a "stream"), it's a good idea to separate streams and floods by projects. Create a new project called MyElementProject by pressing the following button on the projects page:
Type in the Name field: MyElementProject.
Click CREATE PROJECT.
Click on the MyTestBuilderProject newly created project.
You will see the following screen:
Click Create Flood.
For Test Type, select the Element option, and Click CONTINUE.
For Test Name, enter SimpleFloodElement
This is where you can name your test.
For Test Scripts, click Browse and choose the sample file you downloaded and saved locally in Step 1.
Please wait until it is fully uploaded.
For Configure Load, you'll need to give Flood details about your test scenario.
Browsers per region: Move slider to the amount of users you'd like to run in each region according to the browser density below. For now, select 40 browsers per region.
Browser density: This is the number of browsers (or users) you'd like to run on each node. We'll leave this at "High (40)".
Regions: Select the region(s) you want to execute from on the dropdown menu. You can select more than one. In this example, I've selected US West (California) and EU (Frankfurt).
Test Duration: Since we're just shaking out the script, enter 5 minutes.
Note that this means that our test will run a total of 80 browsers/users: 40 in one node based in California, and 40 in another node in Frankfurt.
Click LAUNCH TEST.
You will be automatically taken to the initial setup loading screen that shows you the status for creating the Grid, setting up the nodes, uploading all the Flood settings and test artefacts and then waiting for the first data points to be returned right after the test starts.
After a few minutes, the following user interface for test execution will be presented to you indicating that the test is running and key metrics are being collated by the Flood platform.
You can find out more about what these metrics mean in this article.
You've just run your first Element load test using the Flood platform. We hope these steps were easy to follow and you are able to go on and do more advanced load testing scenarios.
As always, we are here to help you every step of the way so please don't hesitate to reach out to one of our knowledgeable Customer Success Engineers or visit our Help area for some great guides to running your tests using Flood.
Happy Testing from Team Flood!