Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2023.2

...

  1. Right-click the project in the Test Case Explorer and choose Add New > Test (.tst)... 
  2. Specify a name for the file and click Next
  3. Choose the REST > OpenAPI/Swagger option and click Next. For details on accessing the wizards, see Adding a New .tst File to an Existing Project and Adding a New Test Suite.
  4. Enter the absolute URI for the OpenAPI/Swagger definition file or click Browse to find it on the local machine. 
  5. Choose a Test Suite Type:
    • Individual clients: Generates individual test clients grouped by API resource. A test suite is generated for each resource containing test clients for every method available for that resource.
    • Test scenarios: Generates test scenarios containing different sequences of API resources. A test suite is generated for each scenario. Uses the OpenAI API with the account information configured in your OpenAI preferences.
      • If you choose this option, click Next to advance to the Test Scenario Generation page. Enter brief instructions for the AI regarding the test scenarios you would like to create (see Writing AI Prompts below; you can also view examples and recent prompts using the menus above the field) and click Generate (this can take a few seconds). If you want the AI to create more scenarios, click Generate More. If you want the AI to discard all the scenarios and start over, click Regenerate. You can change the prompt for the AI before you do either. Enable the scenarios you want to use and disable the ones you don't.
      • Note: This feature depends on OpenAI, which may produce inaccurate information.
  6. Click Next. The Create Environment page opens.
  7. (Optional) Specify whether you want to reference an existing environment or create a new one.
    • To create a new environment:
      1. Enable Create a new environment for your project.
      2. Enter an Environment Name and Variable Prefix.
    • To reference an existing environment, enable Reference an existing environment then specify the appropriate environment file.
    • For more information on environments, see Configuring Testing in Different Environments.
  8. Click Finish.

...