WIP: Improvements in AI Scriptless testing#23
Draft
3dgiordano wants to merge 8 commits into
Draft
Conversation
Set version 1.0.1
Enable Docker to always pull the latest images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces substantial enhancements and new functionality for handling AI Scriptless test data, command catalogs, and related API endpoints. The main changes include the addition of new utility functions for API endpoints, a comprehensive set of data models for AI Scriptless entities, and new formatters for transforming and presenting test, variable, snapshot, and command definition data. Additionally, improvements were made to utility functions to handle JSON decoding more robustly.
API Endpoint Utilities:
config/perfecto.pyto generate URLs for AI Scriptless draft management, command repository, and repository management APIs, supporting new backend integrations.AI Scriptless Data Models:
models/ai_scriptless.pycontaining Pydantic models for representing script flow elements, test structures, command catalog entries, variables, snapshots, and command definitions. These models provide a structured and type-safe way to handle AI Scriptless test data.AI Scriptless Formatters:
formatters/ai_scriptless.pythat includes:Utility Improvements:
api_requestfunction intools/utils.pyto more gracefully handle empty or non-JSON responses by returning the raw text if JSON decoding fails, improving robustness when dealing with diverse API responses. [1] [2]