패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.