Generate Test cases

This task generates test cases by a user story or code.

Input

This task generates test cases by a user story or code.

[1.0.0]:
First version
VersionAI ModelCreatedLink
1.0.007.06.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • user_story (User story / code): The user story you want to test
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-ba835df8268fc301-generate-test-cases/1.0.0?user_story=Our%20product%20has%20AI%20tasks%20with%20input%20fields%20that%20create%20an%20output.%20The%20input%20fields%20may%20be%20mandatory%20or%20not%20and%20can%20be%20run%20by%20a%20button.
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-ba835df8268fc301-generate-test-cases','1.0.0', {'user_story': 'Our product has AI tasks with input fields that create an output. The input fields may be mandatory or not and can be run by a button.'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-ba835df8268fc301-generate-test-cases','1.0.0', user_story='Our product has AI tasks with input fields that create an output. The input fields may be mandatory or not and can be run by a button.')