Skip to content

Commit a442836

Browse files
AbhishekLambdaclaude
authored andcommitted
Document file upload behavior in App tests
Clarifies that App tests inject files directly into the device and create no FILE_ variable, unlike the Web test upload flow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 556d8cc commit a442836

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/kaneai-upload-and-download-files.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ import BrandName, { BRAND_URL } from '@site/src/component/BrandName';
8080
- These files are treated as variables and their paths are dynamically assigned.
8181
- These variables are named with prefix `FILE_`
8282

83+
:::note
84+
The `FILE_` variable behavior described above applies to **Web tests**. In **App tests** no file variable is created. See [File Upload in App Tests](#file-upload-in-app-tests) below for more information.
85+
:::
86+
8387
### Step 5: Accessing Uploaded Files
8488
- In the test environment, type upload in the command field.
8589
- Select the required file from the available list using **double-curly braces syntax** (e.g.,`upload {{FILE_IMAGE_1_PNG}} in upload section`).
@@ -88,6 +92,18 @@ import BrandName, { BRAND_URL } from '@site/src/component/BrandName';
8892

8993
<img loading="lazy" src={require('../assets/images/kane-ai/knowledge-base/upload-download-files/image4.png').default} alt="Image" className="doc_img"/>
9094

95+
## File Upload in App Tests
96+
97+
File upload behaves differently in App tests than in Web tests. In a Web test, <BrandName /> creates a file variable for each upload. App tests skip this step entirely — no file variable is created, so you never reference uploaded files with double-curly-brace syntax.
98+
99+
### How it works
100+
101+
When you upload files to an App test session, <BrandName /> injects them directly into the device's storage. The files become part of the device itself, which is why there is no variable to assign, track, or reference in your instructions.
102+
103+
### Working with injected files
104+
105+
Most native apps include their own file controls, such as an upload or attach button. Selecting one of these opens the device's system gallery or file picker, where your injected files are already available. You then choose the file you need and continue through the app's normal flow, exactly as a real user would.
106+
91107
## Downloading Files from Kane AI
92108
### Step 1: Managing Downloaded Files
93109
- Files added during the session will be visible in the downloads section.

0 commit comments

Comments
 (0)