Orientação gerada a partir de informações públicas. Apenas para referência.
Testsweets é uma ferramenta de automação de testes sem código projetada para capacitar testadores a criar e executar testes automatizados sem escrever código. Ela transforma usuários não técnicos em engenheiros de automação ao oferecer uma interface intuitiva para gravar, editar e executar testes em múltiplas plataformas. A ferramenta se integra perfeitamente a aplicativos Flutter e suporta Android, iOS, macOS, Windows e Linux. Com o Testsweets, equipes podem acelerar ciclos de teste, melhorar a cobertura de testes e reduzir a dependência de processos manuais de teste.
Casos de uso
Testes de interface do usuário automatizados para aplicativos móveis e desktop
Criação rápida de testes para não desenvolvedores
Execução de testes multiplataforma
Testes de regressão sem codificação
Colaboração da equipe em scripts de teste
Principais recursos
Gravação e reprodução de testes sem código
Suporte para Android, iOS, macOS, Windows e Linux
Feedback e relatórios de teste em tempo real
Integração com aplicativos Flutter
Gerenciamento colaborativo de testes
Indicado para
Testadores de QA sem experiência em programação
Equipes de desenvolvimento procurando ciclos de teste mais rápidos
Startups que precisam de soluções de teste de baixo código
Equipes focadas na qualidade de aplicativos multiplataforma
Considerações
Personalização limitada em comparação com ferramentas baseadas em código
Dependência da infraestrutura em nuvem para funcionalidade completa
Pode exigir curva de aprendizado para recursos avançados
Mais adequado para testes em nível de interface do usuário do que para testes de backend ou unitários
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
TestSweets
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.
...
classMyAppextendsStatelessWidget{
@overrideWidgetbuild(BuildContext context) {
returnMaterialApp(
// 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
Click the arrow to show the bottomsheet
Select one of the three interaction types (default to Touchable)
Drag the "T" icon onto the touchable widget e.g. a button
Enter a widget name
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
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.