Ui5 Best Practices Opa5

作者 UI5a99b882ce364無授權條款收錄於 2026年10月8日更新於 2026年10月8日

This skill should be used in any OPA5 task - creating, modifying, extending, debugging, fixing or reviewing an integration test. Use when the user asks to "write an OPA5 test", "add an OPA5 journey", "fix the OPA5 test failure" or mentions OPA5 or its components - opaTest, page object, journey, waitFor.

AI 產生的概覽

指導撰寫、修復與審查 SAPUI5 應用程式的 OPA5 整合測試,並提供設定、多檢視與清理的參考文件。

功能
此技能為 SAPUI5 應用程式中的 OPA5 整合測試提供指引與工具。它會引導代理查閱參考文件,內容涵蓋測試的初始設定、跨多個檢視的測試、應用程式清理,以及瀏覽器檢查工具的設定。它僅包含指示,不隨附指令碼。
適用情境
適用於建立、修改、擴充、偵錯、修復或審查 OPA5 整合測試時,包括新增 journey 或診斷測試失敗。當提到 opaTest、頁面物件、journey 或 waitFor 等 OPA5 元件時也適用。
執行需求
不包含指令碼,僅為文件。設定瀏覽器檢查工具需要能在瀏覽器中載入 OPA5 測試並在瀏覽器視窗中執行 JavaScript,例如 MCP Playwright。

OPA5 Guidelines and Tools

Handle Special Cases (follow when planning and writing an OPA5 test)

  • Initial Configuration for OPA5 Test → follow references/configuration.md
  • If the test-case spans multiple views → follow references/handle-multiple-views.md
  • Teardown the App → follow references/handle-teardown.md

Set Up Browser Inspection Tools (follow before running the OPA5 test)

Purpose: Efficient inspection of test failures with minimal steps. Prerequisites: A tool to load the OPA5 test in the browser and evaluate javascript in the browser window (e.g. MCP Playwright) Instructions: → follow references/setup-inspection-tools.md

來源與署名

來源:UI5/plugins-coding-agents位於plugins/ui5/skills/ui5-best-practices-opa5提交a99b882

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架