Generate test cases from User Sessions
User Sessions lets you find captured real-user sessions, review the recorded steps, and generate automated test cases from selected sessions. Use this workflow when you want to convert specific captured behavior into test cases before reviewing a full user journey map.
User Sessions search is available for eligible projects. Test case generation from User Sessions is controlled separately and may not be available for your account. If the generation controls do not appear, you can still search for and review captured sessions.
- TrueTest Agent is configured and collecting sessions for the application under test (AUT). See Configure TrueTest Agent.
- The project is linked to an active AUT configuration with at least one data tracking environment.
- AI features are enabled for your organization, you have permission to generate test cases in the project, and a script repository or test project is configured for generated TrueTest artifacts.
Search for user sessions​
- In your project, navigate to Monitoring > User Sessions.
- Select the required filters:
- Tracking Environment
- Tracking Period with start date and end date
- Optionally refine the search with:
- User session attributes: Enter an attribute query to find sessions with matching metadata. See Set user session attributes for syntax and examples.
- URL keywords: Enter comma-separated keywords, such as
checkout, payment. Keywords are matched as text, not as regular expressions. - Steps: Select Greater than, Less than, or Equal to, then enter a step count to find sessions by their number of captured steps.
- Click Apply filters.
The results table shows session details such as session ID, tracking environment, start time, last data received, generated test case status, number of steps, and available actions. You can show up to 100 sessions per page.
To clear the selected filters, click Reset.
Review a session before generation​
Before generating a test case, open the session details to confirm that the captured behavior matches the scenario you want to automate.
- In the User Sessions table, click a user session ID or the View details button for a session. Both options open the same session detail view.
- Review the opened session detail panel.
- Review the session source, start and end time, session attributes, test steps, and replay panel when replay data is available.
Reviewing the session helps you avoid generating test cases from incomplete, irrelevant, or duplicate user behavior.