BDD testing using Cucumber
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
dependencies:
flutter_gherkin: ^1.0.5
dev_dependencies:
flutter_driver:
sdk: flutter
your_project_directory 📁
...
...
test_driver 📁
feature 📁
Login_test.feature 📄
steps 📁
test_steps.dart 📄
app.dart 📄
test_config.dart 📄
This file contain the actual test cases that will be written in very simple understandable language.
Feature: Main Screen Validates and then Logins and Checks if each product clicks are ok
Scenario: Validates the email when text is entered
When I fill the "clientCodeEditText" field with "TB15219"
Then I tap the "loginBtn" button
Then I have "PasswordPage" on screen
When I fill the "passwordEditText" field with "Akshat@78902"
Then I tap the "passwordButton" button
All the test cases written above will be handle by test_steps.dart file.
This file is very important to run the actual test case