@@ -85,50 +85,42 @@ Once the test step is executed the smart variable will dynamically resolve to it
85
85
86
86
Below is a comprehensive list of supported smart variables, organized by category, along with their syntax and descriptions:
87
87
88
- | Category | Variable Name | Syntax | Description |
89
- | -----------------------| -----------------------| -----------------------------| -----------------------------------------------------------------------------|
90
- | ** Date & Time** | ` current_date ` | ` {{smart.current_date}} ` | Current date in YYYY-MM-DD format |
91
- | | ` current_day ` | ` {{smart.current_day}} ` | Current day of the week (e.g., Monday, Tuesday) |
92
- | | ` current_month ` | ` {{smart.current_month}} ` | Current month name (e.g., January, February) |
93
- | | ` current_month_number ` | ` {{smart.current_month_number}} ` | Current month number (01, 02, ..., 12) |
94
- | | ` current_year ` | ` {{smart.current_year}} ` | Current year (YYYY) |
95
- | | ` current_hour ` | ` {{smart.current_hour}} ` | Current hour in 24-hour format (00 to 23) |
96
- | | ` current_minute ` | ` {{smart.current_minute}} ` | Current minute (00 to 59) |
97
- | | ` current_timestamp ` | ` {{smart.current_timestamp}} ` | Current timestamp in epoch milliseconds |
98
- | | ` current_timezone ` | ` {{smart.current_timezone}} ` | Current timezone name (e.g., GMT, UTC+5:30) |
99
- | | ` next_day ` | ` {{smart.next_day}} ` | Date of the next day in YYYY-MM-DD format |
100
- | | ` previous_day ` | ` {{smart.previous_day}} ` | Date of the previous day in YYYY-MM-DD format |
101
- | | ` start_of_week ` | ` {{smart.start_of_week}} ` | Date of the first day of the current week (YYYY-MM-DD) |
102
- | | ` end_of_week ` | ` {{smart.end_of_week}} ` | Date of the last day of the current week (YYYY-MM-DD) |
103
- | | ` start_of_month ` | ` {{smart.start_of_month}} ` | Date of the first day of the current month (YYYY-MM-DD) |
104
- | | ` end_of_month ` | ` {{smart.end_of_month}} ` | Date of the last day of the current month (YYYY-MM-DD) |
105
- | ** User/System Information** | ` os_type ` | ` {{smart.os_type}} ` | Operating system name (e.g., Windows, macOS, Linux) |
106
- | | ` os_version ` | ` {{smart.os_version}} ` | Operating system version (e.g., 10.0, 14.2) |
107
- | | ` browser_name ` | ` {{smart.browser_name}} ` | Browser name (e.g., Chrome, Firefox, Safari) |
108
- | | ` browser_version ` | ` {{smart.browser_version}} ` | Browser version (e.g., 112.0, 101.0.1) |
109
- | | ` user_name ` | ` {{smart.user_name}} ` | Current user name on LambdaTest who triggered the test |
110
- | ** Geo/Location** | ` country ` | ` {{smart.country}} ` | Current country name (e.g., United States, India) |
111
- | | ` city ` | ` {{smart.city}} ` | Current city name (e.g., New York, Delhi) |
112
- | | ` latitude ` | ` {{smart.latitude}} ` | Current latitude |
113
- | | ` longitude ` | ` {{smart.longitude}} ` | Current longitude |
114
- | ** Connectivity** | ` ip_address ` | ` {{smart.ip_address}} ` | Current IP address (IPv4) |
115
- | ** Randomized** | ` random_int ` | ` {{smart.random_int}} ` | Random 3-digit integer |
116
- | | ` random_float ` | ` {{smart.random_float}} ` | Random 2-digit float |
117
- | | ` random_string_8 ` | ` {{smart.random_string_8}} ` | Random alphanumeric string of length 8 |
118
- | | ` random_string_56 ` | ` {{smart.random_string_56}} ` | Random alphanumeric string of length 56 |
119
- | | ` random_email ` | ` {{smart.random_email}} ` | Random email address |
120
- | | ` random_phone ` | ` {{smart.random_phone}} ` | Random phone number |
121
- | ** HTTP Request/Response** | ` http_status_code ` | ` {{smart.http_status_code}} ` | Status code of the last HTTP request (e.g., 200, 404) |
122
- | | ` http_response_time ` | ` {{smart.http_response_time}} ` | Response time of the last HTTP request (in milliseconds) |
123
- | | ` response_body ` | ` {{smart.response_body}} ` | Body of the last HTTP response |
124
- | | ` request_payload ` | ` {{smart.request_payload}} ` | Payload of the last HTTP request |
125
- | ** Device-Specific** | ` device_name ` | ` {{smart.device_name}} ` | Name of the mobile device under test |
126
- | | ` device_model ` | ` {{smart.device_model}} ` | Model of the mobile device |
127
- | | ` device_os ` | ` {{smart.device_os}} ` | Operating system of the mobile device (e.g., iOS, Android) |
128
- | | ` device_os_version ` | ` {{smart.device_os_version}} ` | Version of the operating system (e.g., 14.4, 11.0) |
129
- | | ` device_orientation ` | ` {{smart.device_orientation}} ` | Orientation of the device (e.g., Portrait, Landscape) |
130
- | | ` app_version ` | ` {{smart.app_version}} ` | Version of the app under test |
131
- | | ` app_package_name ` | ` {{smart.app_package_name}} ` | Package name of the app under test |
88
+ | Category | Variable Name | Syntax | Description |
89
+ | -----------------------| -----------------------| -------------------------------| -----------------------------------------------------------------------------|
90
+ | ** Date & Time** | ` current_date ` | ` {{smart.current_date}} ` | Current date in YYYY-MM-DD format |
91
+ | | ` current_day ` | ` {{smart.current_day}} ` | Current day of the week (Monday, Tuesday, etc.) |
92
+ | | ` current_month ` | ` {{smart.current_month}} ` | Current month name (January, February, etc.) |
93
+ | | ` current_month_number ` | ` {{smart.current_month_number}} ` | Current month number (01, 02, ..., 12) |
94
+ | | ` current_year ` | ` {{smart.current_year}} ` | Current year (YYYY) |
95
+ | | ` current_hour ` | ` {{smart.current_hour}} ` | Current hour in 24-hour format (00 to 23) |
96
+ | | ` current_minute ` | ` {{smart.current_minute}} ` | Current minute (00 to 59) |
97
+ | | ` current_timestamp ` | ` {{smart.current_timestamp}} ` | Current timestamp in epoch milliseconds |
98
+ | | ` current_timezone ` | ` {{smart.current_timezone}} ` | Current timezone name (e.g., GMT, UTC+5:30) |
99
+ | | ` next_day ` | ` {{smart.next_day}} ` | Date of the next day in YYYY-MM-DD format |
100
+ | | ` previous_day ` | ` {{smart.previous_day}} ` | Date of the previous day in YYYY-MM-DD format |
101
+ | | ` start_of_week ` | ` {{smart.start_of_week}} ` | Date of the first day of the current week (YYYY-MM-DD) |
102
+ | | ` end_of_week ` | ` {{smart.end_of_week}} ` | Date of the last day of the current week (YYYY-MM-DD) |
103
+ | | ` start_of_month ` | ` {{smart.start_of_month}} ` | Date of the first day of the current month (YYYY-MM-DD) |
104
+ | | ` end_of_month ` | ` {{smart.end_of_month}} ` | Date of the last day of the current month (YYYY-MM-DD) |
105
+ | ** User/System Information** | ` os_type ` | ` {{smart.os_type}} ` | Operating system name on which test is running (e.g., Windows, macOS, Linux)|
106
+ | | ` os_version ` | ` {{smart.os_version}} ` | Operating system version on which test is running (e.g., 10.0, 14.2) |
107
+ | | ` browser_name ` | ` {{smart.browser_name}} ` | Browser name on which test is running (e.g., Chrome, Firefox, Safari) |
108
+ | | ` browser_version ` | ` {{smart.browser_version}} ` | Browser version on which test is running (e.g., 112.0, 101.0.1) |
109
+ | | ` user_name ` | ` {{smart.user_name}} ` | Current user name on LambdaTest who trigger the test |
110
+ | ** Randomized** | ` random_int ` | ` {{smart.random_int}} ` | Random 3 digit integer |
111
+ | | ` random_float ` | ` {{smart.random_float}} ` | Random 2 digit float |
112
+ | | ` random_string_8 ` | ` {{smart.random_string_8}} ` | Random alphanumeric string of specified length |
113
+ | | ` random_string_56 ` | ` {{smart.random_string_56}} ` | Random alphanumeric string of specified length |
114
+ | | ` random_email ` | ` {{smart.random_email}} ` | Random email address |
115
+ | | ` random_phone ` | ` {{smart.random_phone}} ` | Random phone number |
116
+ | ** Device-Specific** | ` device_name ` | ` {{smart.device_name}} ` | Name of the mobile device under test |
117
+ | | ` device_model ` | ` {{smart.device_model}} ` | Model of the mobile device |
118
+ | | ` device_os ` | ` {{smart.device_os}} ` | Operating system of the mobile device (iOS, Android) |
119
+ | | ` device_os_version ` | ` {{smart.device_os_version}} ` | Version of the operating system (14.4, 11.0) |
120
+ | | ` device_orientation ` | ` {{smart.device_orientation}} ` | Orientation of the device (Portrait, Landscape) |
121
+ | | ` app_version ` | ` {{smart.app_version}} ` | Version of the app under test |
122
+ | | ` app_package_name ` | ` {{smart.app_package_name}} ` | Package name of the app under test |
123
+ |
132
124
133
125
<video class =" right-side " width =" 100% " controls id =" vid " >
134
126
<source src= {require('../assets/images/kane-ai/features/smart-variables/smart-variables-guide.mp4').default} type="video/mp4" />
0 commit comments