Testlum IDE Test Creation - TestlumFramework/Testlum GitHub Wiki
โ๏ธ Creating, Maintaining and Running Test Scenarios
A test scenario is a visual, step-by-step representation of a user journey or an automated flow.
In Testlum IDE, scenarios are built using a no-code interface, making test creation accessible to both QA engineers and non-technical users.
๐งฉ What Is a Test Scenario?
A test scenario (also called a test case) simulates how a user or system interacts with your application. Each scenario is made up of steps that perform actions, validations, or setup/cleanup tasks.
๐งฑ Creating a New Scenario
- Open your project in Testlum IDE
- Create a new subfolder inside
scenarios
folder with representative name of Your test scenario. Please avoid using spaces in folder names - Right click on created folder or press (
Cmd (Alt) + N
) - Choose
Scenario
option
โ Your new scenario will open in the main editor, ready for step-by-step test building.
โ๏ธ Switching between test scenario views
Teslum IDE provides a flexible way of working with test scenarios. You can construct them using XML format or using UI Builder. For switching between these two views, You can choose needed in the bottom of scenario structure
๐งช Commands List
In UI Builder tab You can construct tests by drag and dropping process from left panels with all commands to middle area with all tests commands
In the left panel, You can see all commands in Testlum. You can star them and later filter commands only by starred
โ๏ธ Adding, Editing and Maintaining Scenarios
- Drag and drop steps from the left panel to need places to add a new step in your test
- Drag and drop steps inside the test structure to reorder
- Click on the delete icon to remove a necessary step
- Click on any step to open panel with commands details and change it if needed
โ All changes are auto-saved and fully synchronized with xml representation. You can work simultaneously in both tabs.
๐ค Smart Step Editor & Context-Aware Autocompletion
Testlum IDE isn't just a visual no-code editor โ it's also a smart assistant that helps you write high-quality tests faster and more accurately.
๐ง Context-Aware Autocompletion
As you add steps to your test scenario, Testlum IDE provides real-time suggestions based on:
- โ Project structure (existing variations, variables, tags, etc.)
- โ Unique UI identifiers of available elements on the current page (via the recorder)
This ensures consistency across your tests and eliminates guesswork or typos.
๐ Automatic File Generation
Some commands โ such as complex integrations or page object abstractions โ may require supporting files. When you use such a command, the IDE can automatically generate the necessary files or folders for you.
Examples:
- Using a command that requires comparing results from responses? IDE will automatically create and name needed
expected
file - Want to send a request from file? IDE will automatically create and name needed
body
file - After deletion or restructuring we take care about such files deletion and renaming, You need to focus only on test's logic
โ๏ธ The goal is to reduce boilerplate and keep your project structure consistent and ready-to-run.
โถ๏ธ Running Tests in Testlum IDE
Once your test scenarios are ready, running them is as simple as a single click. Just click on
Run
button in the right upper corner
During a test run, You will see live results of each step
Additionally, to logs about test execution You will see a result for each step right in your testing scenario