Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can use the AI Assistant to help you create tests in SOAtest. Just ask it for help creating a test and provide it with a the URL(s) or absolute file path to a OpenAPI/Swagger service definition that you want to create a test for. It will analyze the service definition and path(s) to one or more OpenAPI/Swagger service definitions it should use, and it will suggest possible scenarios. You can choose one of its suggestions or describe the scenario you want to test yourself. For example, you might ask the AI Assistant:

...

The AI Assistant will show you the test it created based on your request, including a scenario with related steps and populated payload data when applicable, and ask you if you want to save it. You can choose to accept the test it proposes or ask for changes. For example, after seeing the scenario it created from the previous request, you might decide you want to add a step to withdraw funds to your test scenario. When it asks you if you want to proceed, you could say:

...

Info

Smart test templates (.stt) will be automatically applied, when applicable, during test creation by the AI Assistant. These templates can help optimize test scenarios by automatically applying configurations, such as authentication settings or assertions.  SeeSee About Smart Test Templates for more information.

The AI Assistant can also create other elements of a test for you as well, including:

  • Data sources: It can create a data source

...

  • as part of test creation and even parameterize it. Mention either of those tasks in your conversation to be sure it knows what you want. See Creating Data Sources with the AI Assistant and Applying Parameterization with the AI Assistant for more information and examples.
  • AI Assertors: It can chain AI Assertors to messaging tools to determine whether the message satisfies one or more assertions or requirements. You can also ask to add, modify, or remove assertions as part of your conversation. For example, after the AI Assistant has prepared prompts or instructions for test creation, you could make a request like, "Add an assertion for the 2nd call to validate the transaction." See AI Assertor for more information about this tool.

Creating Data Sources with the AI Assistant
Anchor
creatingDataSources
creatingDataSources

...

Panel
1. Generate a data source of historical climbing expeditions to the Seven Summits,
based on publicly available records from reputable sources. 2. Select well-known climbers and their expeditions from historical records. 3. Refer to historical facts from credible books, articles, and websites. 4. Create columns: climber, year, summit, outcome, challenges faced, environmental factors,
demographics (nationality, age), expedition type, logistics, highlights / notes. 5. Provide a column with links for more information. 6. Create 20 rows.

...

Panel
1. Create a test scenario from definition:
	- http://localhost:8080/pda/api-docs/v1
2. Use the following test scenario steps:
	- Create a new category, add items to it, verify the item, delete the item,
delete the category, verify categories 3. Parameterize the test scenario with a data source with the following criteria: a. Create columns: categoryName, categoryDescription, categoryImagePath, itemsName,
itemsDescription, itemsInStock, itemsImagePath b. Generate a random integer for itemsInStock between 1-100 c. Be creative d. Generate 5 rows

...