This section describes various use cases and best practices for recording UI tests with LoadNinja.
Video tutorial
Wait until the page fully loads
To avoid issues during the playback, make sure the test recorder has fully loaded the page before interacting with elements on this page. Keep this in mind when starting recording and navigating between pages during testing.
Recording interactions with specific elements
LoadNinja supports recording of various interactions with websites. However, some elements require that you perform additional actions for correct recording.
Drop-down lists
To record user interactions with the drop-down list that appears when the mouse pointer is hovering over an element, we recommend that you always click that element even if you don’t need to do that when working with the website.
In order for LoadNinja to record the drop-down list in the expanded state properly, wait for 3 seconds before clicking.
Buttons
Form fields
When recording interactions with form fields — especially with long ones — place the mouse pointer closer to the starting zone of the needed form field. Usually, it is in the left part of the form field.
Tip: To find the boundaries of a form field’s starting zone, move the mouse pointer over the field and wait for the pointer to change its shape.
Performing data-driven tests
LoadNinja supports parameterized data-driven testing, with .csv and .txt files used as a data source. Record UI tests that require varying input, parameterize URLs, or get wider coverage on your website performance.
To learn how to use data sources in your tests, see Using Databanks in LoadNinja Tests.