Skip to content

Robot pattern #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mibac138 opened this issue Aug 7, 2017 · 6 comments
Open

Robot pattern #606

mibac138 opened this issue Aug 7, 2017 · 6 comments

Comments

@mibac138
Copy link

mibac138 commented Aug 7, 2017

Description:
The Robot design pattern is an advanced testing pattern commonly used in Android development to simplify and streamline UI testing. The core idea is to encapsulate the interactions with the UI components in a separate class, referred to as a "Robot," which then exposes high-level methods for test scripts to use. This promotes clean, readable, and maintainable test code by abstracting away the detailed interactions with the UI.

Main elements of the pattern:

  1. Robot Class: This class handles UI interactions. It encapsulates the operations that can be performed on the UI, such as clicking buttons, entering text, or verifying text visibility.
  2. Test Class: This class uses the Robot class to perform tests. It calls the high-level methods provided by the Robot class, making the test code cleaner and more readable.
  3. Fluent Interface: The Robot methods are often designed to return the Robot itself, enabling method chaining for more concise and expressive tests.

References:

  1. Robot Design Pattern Overview
  2. Java Design Patterns Contribution Guidelines

Acceptance Criteria:

  1. A Robot class is implemented encapsulating UI interactions.
  2. A sample test class is provided demonstrating the use of the Robot class.
  3. Documentation is updated to include a description of the Robot design pattern and usage examples.
@kiratalreja3
Copy link

kiratalreja3 commented Oct 11, 2022

Hi, can I work on this issue? Thanks! @mibac138

@iluwatar
Copy link
Owner

Ok @kiratalreja3

@stale
Copy link

stale bot commented Nov 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link

This issue is stale because it has been open 60 days with no activity.

@github-actions github-actions bot added the Stale label Jan 10, 2025
@iluwatar iluwatar removed the Stale label Jan 12, 2025
@Basmalamoustafa
Copy link

Hello @iluwatar, I would love to work on this issue.
Could you please assign it to me?
Thank you!

Basmalamoustafa added a commit to Basmalamoustafa/java-design-patterns that referenced this issue Jan 14, 2025
iluwatar#606 Robot pattern issue
@iluwatar iluwatar moved this from Todo to In Progress in Java Design Patterns project Jan 14, 2025
Basmalamoustafa added a commit to Basmalamoustafa/java-design-patterns that referenced this issue Jan 14, 2025
Copy link

This issue is stale because it has been open 60 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants