Skip to content

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

Open
wants to merge 10 commits into
base: stage
Choose a base branch
from
Open

Conversation

Manuraj-7
Copy link
Contributor

No description provided.

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
Copy link
Contributor

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


### Step 1: Access the Test Environment

Navigate to the Web/App Agent & enter the authoring mode.
Copy link
Contributor

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
Copy link
Contributor

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


### 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}}`).
Copy link
Contributor

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'

| | `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) |
Copy link
Contributor

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

@Manuraj-7 Manuraj-7 requested a review from Private1647 May 10, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants