Skip to content

Commit b3d99a5

Browse files
Aman1905Ishavyas9
authored andcommitted
kane ai updates
1 parent e325049 commit b3d99a5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/kane-ai-using-variables.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The new variable definition feature in KaneAI allows users to define reusable va
4747
## Why Use Variables?
4848
Using variables enables you to:
4949
- Avoid repetitive entries in test cases.
50-
- Update values in one place without needing to modify multiple test cases.
50+
- Get values from within the application under test & store it in variable to validate the accuracy of data.
5151
- Increase the reusability and adaptability of test scripts, especially useful for parameters that might change frequently, such as URLs, credentials, or environmental settings.
5252

5353
## Variable Syntax
@@ -61,11 +61,11 @@ To work with variables in KaneAI, you need to follow these syntax rules:
6161
To create a variable:
6262

6363
- Navigate to the "Write a Step" text field
64-
- Type your instruction using the following format: *create a variable `$variableName`*
64+
- Type your instruction in natural language such as: *Set username as John* and a variable `$username` will be created with value John.
6565

6666
Example:
6767
```bash
68-
create a variable $phoneNumber
68+
Set username as John
6969
```
7070

7171
## Using Variables
@@ -84,6 +84,5 @@ use the value of $phoneNumber in the given text field
8484
- Use camelCase for multi-word variable names
8585

8686
### Variable Management
87-
- Create variables at the beginning of your test case when possible
8887
- Document the purpose of each variable in comments
8988
- Verify that variables are defined before using them

0 commit comments

Comments
 (0)