搜索插件、代码仓与 APP 分类

插件详情v0.2.0

page_object

一个 Flutter 包,用于帮助在 Flutter 应用中实现页面对象模式。

近 30 天下载
18
喜欢数
9
Pub 分数
60

安装插件

flutter pub add page_object

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

page_object 包是一个专为 Flutter 设计的工具,旨在支持页面对象模式,这是一种促进可重用和可维护测试代码的设计方法。它允许开发人员将 UI 屏幕建模为类,封装特定页面的交互和断言。这提高了测试的可读性,减少了代码重复,并简化了自动化测试中的维护工作。该包与 Flutter 的测试生态系统集成良好,特别适用于端到端测试和 widget 测试场景。

适合场景

  • Flutter 应用中的自动化 UI 测试
  • 为屏幕创建可重用的测试组件
  • 提高测试可维护性
  • 实施结构化测试架构
  • 减少测试脚本中的重复

主要特点

  • 封装每屏的UI交互
  • 支持测试逻辑和UI细节的清晰分离
  • 促进跨测试文件的可重用性
  • 与 Flutter 的测试框架集成
  • 提供了一种结构化的测试开发方法

适合对象

  • 使用 Flutter 的测试工程师
  • 团队在实践测试驱动开发
  • 需要可扩展测试套件的项目
  • 开发人员编写端到端或小部件测试
  • 在测试中采用设计模式的团队

使用建议

  • 需要理解页面对象模式
  • 可能为非常简单的测试增加开销
  • 最适合大型测试套件
  • 基本手动测试不需要
  • 依赖于测试代码中正确的类结构

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Glove Box

This repo is no longer maintained

09/12/2024 Update:

Unfortunately we have made the tough decision to no longer actively maintain this repository. While the package has served us and the community well, we don't have the capacity to give it the attention it deserves.

We realize that this decision means that open pull requests will not be merged. Our hope is that the community will rally and focus their efforts around more actively maintained packages for aiding in golden-based tests.

Once again, we want to thank each and every one of you for your contributions over the years.

Thank you for your understanding.

Best regards,

The eBay Motors App team


Contains various testing tools that eBay Motors App team is using in their development on daily basis.

License Information

Copyright 2019-2023 eBay Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of eBay Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。