If you want Codex to put local QA results into a web test case, you can have Codex read logs, screenshots, and version information, then connect to an authorized test portal through Tabbit CLI. Codex organizes the evidence and describes what it intends to submit, while Tabbit performs the attachment selection and form actions in the browser. Afterward, return to the test case and verify the exact attachment filenames, version identifiers, and saved status. This workflow is a handoff from local files to an authorized website, not a verified ZenTao auto-upload case.
Here is an example using a fictional regression test record. Suppose the local files are checkout-regression-v42.log, checkout-error-03.png, and a brief reproduction note, and the target in the portal is the test case Build 42 regression in the Checkout QA project. Do not upload the entire directory or let the Agent choose a screenshot that “looks like the latest.” Clearly listing the files to attach, the associated version, and the project makes it possible to verify each item on the website.
Set the file handoff checklist first
Before uploading, ask Codex to read only the specified directory and produce an attachment checklist. For each item, include its relative path, filename, corresponding test step, version or build number, and whether it is ready to upload. Avoid vague instructions such as “upload the latest log,” because a directory may contain older builds, failed retries, and temporary screenshots at the same time.
An example task could read:
只检查 ./qa-evidence/build-42/ 下列文件:
- checkout-regression-v42.log
- checkout-error-03.png
- reproduction.md
不要读取同目录其他文件。先报告每个文件的大小、修改时间、对应的测试步骤,
并检查文本和截图中是否出现 token、邮箱或生产用户信息。
不要上传,先等我确认清单、项目和目标测试单。This separates local processing from writing to the website. Codex first explains which files it plans to use; you check the filenames, version, and target record before authorizing the next step. If a screenshot contains a user's email, a secret parameter in the browser address bar, an internal token, or real customer data, redact it first or replace it with test data. Do not rely on “we'll delete it after uploading” as a privacy review.
OpenAI's file input documentation explains that file handling methods and supported types vary across APIs; it is not a complete explanation of Codex's local permissions or CLI browser capabilities. Which local files can actually be read depends on the Codex client, working directory, and authorization settings you use. The division of work in this article uses a local Codex environment and Tabbit CLI as an example. Check the current client's official documentation before using it.
Verify the project and test case before opening the attachment picker
Sign in to the authorized test portal in Tabbit, start the connected Codex, and follow the official quick start to confirm that the /tabbit skill is loaded. Connection steps may change between clients, so do not copy configuration from another Agent's tutorial. Once connected, first ask the Agent to open the project and test case and read only the page title, project name, and version or build number. If it encounters a production environment, the wrong tenant, or a project it is not authorized to access, stop and ask; do not guess at a similar target.
In the portal, you usually need to decide where the attachment belongs first: a version test case, a particular test case, or a new bug. These are different kinds of records. This article uses an existing Build 42 regression test case as an example. If your portal does not support attaching files in that location, stop and confirm the team's record-keeping method. Do not create an item of the wrong type just to finish the upload.
Once the attachment area is open, match each file in the checklist individually. Your prompt might say: “Select checkout-regression-v42.log first and confirm that the page shows that exact name, then select checkout-error-03.png; do not submit reproduction.md unless I approve.” The checklist should use exact filenames and version identifiers. If the file picker truncates names, inspect the file details or list first, then confirm the full name.
At this stage, select the attachments and preview the form, but do not submit yet. Check the target test case title, version, attachment names, and description field. Some pages start uploading as soon as a file is selected; others require clicking Save. Observe how the portal actually behaves. If you see a duplicate attachment warning, a network error, or a spinning upload indicator, stop and note what is displayed instead of clicking repeatedly.
Confirm the upload from the page receipt, not by guessing
After selecting files, check two results: whether the upload control shows a completed status, and whether the test case details list the attachments after saving. At a minimum, the filenames should exactly match the local checklist, and the version should correspond to the target build. If the portal provides a file size or preview, check that too to catch an empty file or the wrong image. Seeing the filename in the picker only means that a candidate file was selected; it does not mean the server saved it successfully.
The ZenTao manual manages bugs separately from test cases and test reports, and describes how to add attachments or record actual results in bugs and test cases. Page entry points, fields, and permissions may differ by version and deployment, so this is an official reference for understanding test portal record types, not evidence that this workflow was run on a ZenTao instance. The ZenTao guide to submitting a bug also notes that other required fields must still be completed during batch entry, showing that “batch” does not replace checking the fields.
You can give the Agent a clear read-back requirement:
保存之前先停下,报告当前项目、测试单标题、版本号和附件完整文件名。
得到我确认后再保存。保存完成后重新打开测试单详情,读取附件列表,
逐个对比目标文件名和版本。找不到附件或状态不明时停止,不要重复上传。
最后列出已核对、未核对和需要人工处理的文件。After submitting, do not rely on a green toast. Reopen the test case details or refresh the attachment list to confirm that the files appear under the intended record. If the page receipt times out, first check whether the test case and attachment names already exist. If they do and the versions match, record them as submitted; if not, check the upload queue and record location. If the status is still unclear, hand it to a person to avoid duplicate attachments such as -copy or -final-final.
Write a receipt so someone else can take over
The final receipt should let the next tester judge whether the materials are complete. Record the target project, test case, build number, full attachment filenames, saved status shown on the page, read-back location, and any unfinished items. Do not just write “uploaded.” If one file failed and another succeeded, report each separately instead of marking the group as a success.
For example, if the log appears on the details page but the screenshot still shows an upload in progress, the correct result is “log verified, screenshot pending confirmation,” not “all evidence submitted.” If the page reports a successful save but the attachment is missing when you open the details, record the status as unclear. Uploading, linking to a record, and notifying the team may be separate steps; do not claim a later result that the current page does not show.
Keep only the task information that is necessary when saving evidence. If the portal has review or release statuses, specify whether the item is still a draft or has been submitted to the test lead. Handle sensitive screenshots and logs according to the team's storage rules, then delete temporary copies or return them to a controlled directory.
Which steps are suitable for an Agent
Codex can first organize file inventories, filename comparisons, and checklists that include version numbers and test steps. Tabbit CLI can work with the browser to open an already signed-in portal, select specified attachments, and fill in confirmed fields. A person with the right permissions should confirm which project to upload to, whether to link a bug, whether evidence can be shared externally, and whether submission will trigger notifications.
This boundary also helps diagnose failures. If a filename is wrong, return to the local checklist. If the target project is wrong, stop browser actions and confirm the environment again. If the upload receipt is incomplete, return to the test case details and check. Do not attribute every problem to the Agent “not understanding,” and do not let it change paths, switch accounts, or create a new record to get around a permissions prompt.
Tabbit's official Youzan demo is a related example: Codex reads local spreadsheets and images, while Tabbit enters product information in a signed-in merchant console and checks the list afterward. It illustrates the division of work where an Agent handles local materials and Tabbit performs web tasks, but it does not cover test report attachments or prove that every test portal supports this operation. View the Codex product listing demo.
The portal read-back should also confirm that the attachment is linked to the right object. Files with the same name may appear in different test cases, or an older version from a previous build may already be there. Open the attachment details or preview, check the filename and build number, then check the title of the test case it belongs to. If the file picker shows only an upload queue without the target record, return to the record details after saving and confirm the link. Do not infer that the attachment is linked correctly from the words “upload complete” on the page.
Before using this in production, complete the full flow once in a test project with a small file that contains no sensitive information. Confirm that the client connection, file permissions, portal project, attachment entry point, and save read-back all work with the current deployment. If the portal is redesigned, file size limits change, or permissions change later, run another small-scale verification. Do not treat one demo as a permanent compatibility guarantee.
FAQ
Can Codex read local files and operate a webpage?
Codex can handle files in its authorized working environment. Once connected through Tabbit CLI, an external Agent can ask the Tabbit browser to carry out webpage steps. The specific file permissions and client connection method depend on the current environment and version.
How can I confirm that an attachment is the right file after uploading?
Return to the test case or bug details and check the attachment name, version identifier, size, or page preview, then confirm that the record was actually saved. Seeing a name in the file picker alone is not proof that the upload completed.
Can test evidence be submitted automatically to a production project?
Only work with projects and environments that are explicitly authorized. Rehearse in a test project first; if submitting will send notifications or trigger a workflow, have a person confirm before uploading.
What if local logs contain sensitive information?
Review logs and screenshots before uploading, and remove unnecessary tokens, personal information, and production data. Do not let the Agent copy sensitive content into tickets or run records.