Skip to main content

Codegen To No Code

Codegen To No Code is a feature that allows you to convert codegen scripts into no code elements, actions, and test cases. This feature simplifies the process of creating automation tests by generating reusable components from code snippets. You can use this feature to quickly build test cases without writing code, saving time and effort in test automation.

Recording Codegen Script

Before converting codegen scripts to no code elements, actions, and test cases, you need to record a codegen script. The codegen script captures the interactions and actions performed on a web application, generating a script that can be converted into reusable components.

To record a codegen script:

  1. Open playwright codegen with the following command:
    npx playwright codegen
  2. This will open a new browser window and the codegen window.
  3. Interact with the web application to perform the desired actions.
  4. Click copy icon in the codegen window to copy the generated script.

Convert Codegen Script to No Code

Once you have recorded a codegen script, you can convert it into no code elements, actions, and test cases in tacl.io. This process involves creating reusable components from the script, allowing you to build test cases without writing code.

To convert a codegen script to no code:

  1. Navigate to the AI Hub in tacl workspace.
  2. Click on Codegen To No Code.
  3. Paste the copied codegen script in the provided code editor.
  4. Click Extract Element to create elements and actions.
  5. Review the generated elements and click Save Elements to add them to your project.
  6. Once all the elements are added to your project, click Create Testcase to create a testcase using the generated elements and actions.