Stage: KTM-1072 Smart-Variables#1566
Merged
surishubham merged 12 commits intoLambdaTest:stagefrom May 12, 2025
Merged
Conversation
Private1647
requested changes
May 8, 2025
docs/kane-ai-smart-variables.md
Outdated
| When typing `{{` in the Web/App Agent, an overlay displays all available variables, including regular, secret, and smart variables, with smart variables labeled as "Smart" and accompanied by descriptions. | ||
| ::: | ||
|
|
||
| Smart Variables listing is available near User Variables |
Collaborator
There was a problem hiding this comment.
Listed under the variables section within an authoring session
docs/kane-ai-smart-variables.md
Outdated
|
|
||
| ### Step 1: Access the Test Environment | ||
|
|
||
| Navigate to the Web/App Agent & enter the authoring mode. |
Collaborator
There was a problem hiding this comment.
Authoring or Editing mode for a KaneAI test case
| For example, to use the current date in a test step: | ||
|
|
||
| ``` | ||
| Enter the value of {{smart.current_date}} in the date field |
Collaborator
There was a problem hiding this comment.
Use {{ syntax to get the list of smart variables listed and type to search and filter them out to select the desired one
docs/kane-ai-smart-variables.md
Outdated
|
|
||
| ### Step 4: Run Your Test | ||
|
|
||
| Execute the test case. The smart variable will dynamically resolve to its corresponding value based on the current environment or condition (e.g., `2025-04-29` for `{{smart.current_date}}`). |
Collaborator
There was a problem hiding this comment.
Not execute the test case, but just 'once the test step is executed'
docs/kane-ai-smart-variables.md
Outdated
| | | `random_string_56` | `{{smart.random_string_56}}`| Random alphanumeric string of length 56 | | ||
| | | `random_email` | `{{smart.random_email}}` | Random email address | | ||
| | | `random_phone` | `{{smart.random_phone}}` | Random phone number | | ||
| | **HTTP Request/Response** | `http_status_code` | `{{smart.http_status_code}}`| Status code of the last HTTP request (e.g., 200, 404) | |
Collaborator
There was a problem hiding this comment.
Get this checked by Sanyam if all have been added in release. I think some are missing
Ishavyas9
approved these changes
May 12, 2025
surishubham
approved these changes
May 12, 2025
surishubham
added a commit
to surishubham/documentation
that referenced
this pull request
May 14, 2025
Stage: KTM-1072 Smart-Variables
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.
No description provided.