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

插件详情v1.16.1

testsweets

一个无代码测试自动化工具,将任何测试人员转变为自动化工程师

AndroidiOSmacOSWindowsLinux
近 30 天下载
151
喜欢数
24
Pub 分数
110

安装插件

flutter pub add testsweets

插件介绍

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

Testsweets 是一款无需编写代码的测试自动化工具,旨在赋能测试人员在不编写代码的情况下创建和运行自动化测试。它通过提供一个直观的界面,使非技术人员能够轻松地录制、编辑和执行跨多个平台的测试,从而将非技术用户转变为自动化工程师。该工具可与 Flutter 应用无缝集成,并支持 Android、iOS、macOS、Windows 和 Linux。借助 Testsweets,团队可以加速测试周期,提高测试覆盖率,并减少对手动测试流程的依赖。

适合场景

  • 移动和桌面应用程序的自动化UI测试
  • 非开发人员的快速测试创建
  • 跨平台测试执行
  • 无需编码的回归测试
  • 团队协作测试脚本

主要特点

  • 无代码测试录制和回放
  • 支持 Android、iOS、macOS、Windows 和 Linux
  • 实时测试反馈和报告
  • 与 Flutter 应用程序的集成
  • 协作式测试管理

适合对象

  • 没有编程经验的QA测试人员
  • 寻求更快测试周期的开发团队
  • 需要低代码测试解决方案的初创企业
  • 专注于跨平台应用质量的团队

使用建议

  • 与基于代码的工具相比,自定义选项有限
  • 完全功能依赖于云基础设施
  • 高级功能可能需要学习曲线
  • 最适合用于用户界面级别的测试,而不是后端或单元测试

原始 README

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

TestSweets Pub Version

This package is a utility and helper package to the TestSweets product. It is the package responsible for capturing your widget keys to the database which allows us to provide the auto complete functionality when you script your test cases.

Installation

To start using the package you have to add this package to your pubspec.yaml file.

dependencies:
  ...
  testsweets: [latest_version]

Setup

After the packages have been added we have to setup the code. TestSweets makes use of Flutter Driver to drive the test cases that we write. This means we have to enable Flutter driver for the version of the app that we build that goes through automation. Flutter driver disables certain things like the on screen keyboard. To disable completely TestSweets is as easy as passing enabled: false to setupTestSweets function.

...

void main() {
  // 1. Setup the TestSweets internal dependencies
  await setupTestSweets();
  ...
  runApp(MyApp());
}

in your MaterialApp

...
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      // 2. Inside MaterialApp add TestSweetsOverlayView to the builder
      //    with the projectId you get when you created a new project in Testsweets app
      builder: (context, child) => TestSweetsOverlayView(
        projectId: '3OezzTovG9xxxxxxxxx',
        child: child!,
      ),
      // 3. Finally add TestSweetsNavigatorObserver() 
      // to determine what view you are on right now
      navigatorObservers: [
        TestSweetsNavigatorObserver.instance,
      ],
    );

Capturing Interactions

To run the app in capture mode you just start the application and capture mode will be enabled. You can swap between capture mode and drive mode tapping on the screen with 3 fingers.

How to add an Interaction

Note: The view you are on is automatically captured

  1. Click the arrow to show the bottomsheet
  2. Select one of the three interaction types (default to Touchable)
  3. Drag the "T" icon onto the touchable widget e.g. a button
  4. Enter a widget name
  5. Tap the Save Widget button

Note: you can tap the arrow again to close the bottomsheet and move the widget freely and it will preserve the information

https://user-images.githubusercontent.com/89080323/161919116-9d27c9d1-bf6f-47c4-86a5-18cde8e9a514.mp4

How to inspect a view

Inspecting view is the default state when you open the app.

However, if you’re Creating/Editing a widget and you want to go back to inspect mode you can tap the Clear button.

How to edit an interaction
Normal Edit
  1. To start editing first you have to be in inspecting mode
  2. Long press on the widget you want to edit
  3. Choose Edit from the menu that appeared
  4. That will pop up the bottom sheet with the old content of the interaction
  5. Change name, type, and position
  6. Tap update when done
  7. If you change your mind you can tap Clear to return to inspect mode without saving

https://user-images.githubusercontent.com/89080323/161919018-c0ca2a62-c45c-4def-87ee-3809bbb926d3.mp4

Quick position edit

If you want to adjust the position only, there is a shortcut

  1. Long press and hold on the interaction you want to change size
  2. While holding drag to the preferred position
  3. Lift your finger to save the current position

https://user-images.githubusercontent.com/89080323/161918909-1cd79398-f3ad-4fe2-bfe4-d0a1c713f8bd.mp4

How to remove an interaction
  1. To start editing first you have to be in inspecting mode
  2. Long press on the widget you want to edit
  3. Choose Remove from the menu that appeared and that’s it!

https://user-images.githubusercontent.com/89080323/161917599-17be16bb-b2e7-4563-a528-c20845ba359a.mp4

Putting the app in Drive Mode

To ensure the app is built for TestSweets to be able to drive it you you should pass --dart-define=FORCE_CAPTURE_MODE=false when building or running the app for TestSweets.

Build the apk


flutter build apk --debug --dart-define=FORCE_CAPTURE_MODE=false

所属分类

依赖

依赖清单 16 项

源码仓库

使用此插件的项目

暂无相关数据。