fluttium_interfaces 0.1.0 copy "fluttium_interfaces: ^0.1.0" to clipboard
fluttium_interfaces: ^0.1.0 copied to clipboard

The interfaces and definitions used by the Fluttium user flow testing framework

example/main.dart

import 'dart:io';

import 'package:fluttium_interfaces/fluttium_interfaces.dart';

void main() {
  final fluttium = FluttiumYaml(
    environment: FluttiumEnvironment(
      fluttium: VersionConstraint.parse('>=0.1.0-dev.1 <0.1.0'),
    ),
  );

  stdout
    ..write('Supported fluttium version: ')
    ..writeln(fluttium.environment.fluttium);

  const flow = UserFlowYaml(
    description: 'A simple flow',
    steps: [
      UserFlowStep('pressOn', arguments: 'Increment'),
      UserFlowStep('expectVisible', arguments: {'text': '0'}),
    ],
  );

  stdout
    ..writeln()
    ..write('User flow: ')
    ..writeln(flow.description);

  for (final step in flow.steps) {
    stdout
      ..write('  Step: ')
      ..writeln(step.actionName)
      ..write('  Arguments: ')
      ..writeln(step.arguments);
  }
}
1
likes
160
points
731
downloads

Publisher

verified publisherfluttium.dev

Weekly Downloads

The interfaces and definitions used by the Fluttium user flow testing framework

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

equatable, pub_semver, yaml

More

Packages that depend on fluttium_interfaces