Skip to main content

Generate automated tests from manual executions

Requirements
  • You have an active TrueTeam or TrueEnterprise subscription (including trials).
  • TrueTest has been configured in the relevant Application Under Test (AUT). If not, refer to this guide: Configure TrueTest Agent.

With TestPak and TrueTest, you can convert passed manual test cases into automated ones with a single click. Each generated script is automatically linked to its original manual test case for full traceability, and you can build maintainable scripts using TrueTest’s shared object repository and reusable functions.

You can also filter manual execution sessions when creating user journey maps to visualize real user flows.

This guide is specifically for the TestPak + TrueTest add-on use case. If you are using TestPak only (without the TrueTest add-on), follow this guide instead: Generate automated tests from manual executions.


Create a manual test run​

Follow this guide to create a manual test run: Create a manual test run. After creating a manual test case, proceed with the next section.

Install TestPak extension​

The TestPak extension is a Chrome add-on that lets you record manual test runs in TestOps and quickly generate automated test scripts from those recordings.

It captures user interactions while QA testers execute manual test cases in the application under test (AUT). These recorded actions are then converted into automated test cases.

TestPak extension on Chrome Store

Make sure all required fields for the manual test run are completed and Chrome is selected in Configurations as TestPak currently supports Chrome only.

  1. In Create Manual Test Run, click Run Manually to start the test run.
  2. With Chrome selected in Configurations, the Enable Test Session Recording dialog appears. Click Install Extension to open the Chrome Web Store.
  3. Add the TestPak extension to Chrome. After installation is complete, you are redirected back to TestOps and a confirmation dialog appears.
    • You only need to install once. After the extension is added to Chrome, it will remain installed for future test runs.

Execute test cases​

  1. Click Start Testing in the dialog. The browser will launch, and the TestPak panel will display the details of the current test case.

  2. Select the test environment with TrueTest enabled, then click Start.

    Select TrueTest environment
  3. Follow the test steps as written.

  4. Compare actual behavior with the Expected Results, then mark the Test Case Result as Passed or Failed accordingly.

  5. (Optional) You can click Retest to reset the recording of the test cases. This will clear all existing test step results, reset the previous testing duration, and restart the timer for a new execution.

    Click retest
  6. When done, click Next Test Case to continue.

    • Any test case that is not assigned a test result will be considered as Skipped.
  7. Once all test cases are marked with a result, click End in the the End Test Run dialog to finish the test run.

Generate automated tests​

After the test run finishes, you’ll be prompted to generate automated test cases from test cases with Passed result and no linked automated tests.

  1. When prompted, click Generate Now to proceed. Alternatively, you can manually trigger the process by clicking Generate Automated Test Cases.

    Ready to automate dialog
  2. In the Generate Automated Test Cases dialog:

    1. Select an Assignee: This assignee will receive a notification when the automated tests are ready.
    2. Select the manual test cases you want to convert to automated, then click Generate.
    Generate automated test cases dialog

Result​

A notification box will confirm that automation generation has started.

  • If the generation succeeds, both the Assignee and the user who triggered the generation will be notified.
  • If the generation fails, only the user who triggered the generation will receive a notification.

Once it completes, navigate to Tests > Test Cases to view the generated test cases. The generated test cases are stored in the registered script repository.

By default, they have the Draft status. You can download them to review and optionally edit them in Katalon Studio, then publish them as official automated test cases.

View generated test cases in script repo

Known limitations​

The followings are known limitations of TestPak extension.

  • Browser configuration: TestPak currently supports Chrome. Make sure Chrome is selected when configuring manual test runs.
  • You might need to pause or uninstall the TrueTest extension tracking feature before using the TestPak extension.
  • You might need to uninstall the Katalon Recorder extension if it is installed, as it can interfere with TestPak.
  • During execution:
    • Pop-up windows are not captured during recording.
    • Opening multiple browser windows during recording causes session capture to fail.
    • Tests that navigate between different domains (for example, from example.com to checkout.example-payments.com) cannot be captured. Instead, record each domain a in separate run.
  • Automated test cases stored in Git repositories cannot have their status updated in TestOps.
  • Manual test cases that are already linked to automated tests cannot be converted again.
    • Workaround: Delete the existing automated test → Execute the manual test with the TestPak extension → Re-generate the automated test.

Next steps​

  • After you’ve used the TestPak extension to generate automated test cases, you can review flows created from the manual execution sessions. You can filter flows by their source, for example, by User Sessions or by Manual Execution.
    • You’ll also have the ability to retain flows (including manual flows) that you still need, or archive (or mark obsolete) those you no longer want. This helps you keep your flow data relevant and clean. For more details, see Review user journey map.
Was this page helpful?