Skip to content
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

feat: add skipping app state check in terminateApp when the given timeout is zero #554

Merged
merged 6 commits into from
Oct 19, 2022

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Oct 14, 2022

Will do the same thing in the espresso driver after this merge.

@KazuCocoa KazuCocoa changed the title feat: add skipping app state check in terminateApp when the given tim… feat: add skipping app state check in terminateApp when the given timeout is zero Oct 14, 2022
@KazuCocoa KazuCocoa marked this pull request as draft October 14, 2022 05:58
@KazuCocoa KazuCocoa marked this pull request as ready for review October 14, 2022 06:00
@KazuCocoa
Copy link
Member Author

KazuCocoa commented Oct 14, 2022

mm, it seems like driver.opts reference returns nil maybe by the latest base driver. driver.initialOpts returned expected value in some failure tests

@mykola-mokhnach
Copy link
Contributor

was something broken in the base driver recently @boneskull ? ^

@KazuCocoa

This comment was marked as resolved.

@mykola-mokhnach

This comment was marked as resolved.

@KazuCocoa KazuCocoa marked this pull request as draft October 14, 2022 06:58
@KazuCocoa

This comment was marked as resolved.

@KazuCocoa

This comment was marked as resolved.

This reverts commit 6c3c4fc.
@KazuCocoa

This comment was marked as resolved.

@KazuCocoa KazuCocoa marked this pull request as ready for review October 14, 2022 07:16
@boneskull

This comment was marked as resolved.

@KazuCocoa
Copy link
Member Author

thanks, the latest tests passed

@KazuCocoa
Copy link
Member Author

@mykola-mokhnach can you take a look when you have a chance?

README.md Outdated
by checking the app state to ensure if the app process is actually stopped.

The app state check can be skipped if the given timeout is lower or equal to zero since UIAutomator driver 2.9.0.
The skip helps when you want to terminate the app process but does not want to check the process
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...but do not want to check the process existence because the app under test may, for example, restart it automatically.

@KazuCocoa KazuCocoa merged commit 913dc39 into master Oct 19, 2022
@KazuCocoa KazuCocoa deleted the bump-version-doc branch October 19, 2022 01:22
github-actions bot pushed a commit that referenced this pull request Oct 19, 2022
# [2.9.0](v2.8.0...v2.9.0) (2022-10-19)

### Features

* add skipping app state check in terminateApp when the given timeout is zero ([#554](#554)) ([913dc39](913dc39))
@github-actions
Copy link

🎉 This PR is included in version 2.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants