Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
This repository was archived by the owner on May 29, 2025. It is now read-only.

Please share example how to use for flutter integration test  #12

@amitkumar-qa

Description

@amitkumar-qa

Hi Team ,
Below is an example of integration test using latest integration test package:
I have a test in testrail for "User login with invalid user name" with testrailid=C3456 and projectid=9
I want to mark this test pass/fail based on the execution result of below test mentioned in testWidgets.

Please share how i can do that. I already checked the package provided by you , but facing difficulty how to use it. Please assist.

`void main() {
HomeRobot homeRobot;
LoginRobot loginRobot;
final commonHelper = CommonHelper();

group('e2e test', () {

testWidgets('**User login with invalid user name**',
    (WidgetTester tester) async {
  homeRobot = HomeRobot(tester);
  loginRobot = LoginRobot(tester);
  await commonHelper.runApp(tester);
  await loginRobot.enterEmail("username");
  await loginRobot.enterPassword("password");
  await loginRobot.clickSignIn();
  expect(find.text("Please enter a valid email address."), findsOneWidget);
});

});
}`

Cheers
Am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions