-
Notifications
You must be signed in to change notification settings - Fork 32
Stage: KTM-1072 Smart-Variables #1566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stage
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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}}`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get this checked by Sanyam if all have been added in release. I think some are missing
No description provided.