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

[Testing] Added specific actions by platform #21330

Merged
merged 7 commits into from
Aug 14, 2024

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Added specific actions by platform. For example: Lock or unlock the device or get performance data on Android.

/// <param name="performanceDataType">The available performance data types(cpuinfo | batteryinfo | networkinfo | memoryinfo).</param>
/// <exception cref="InvalidOperationException">ToggleWifi is only supported on <see cref="AppiumAndroidApp"/>.</exception>
/// <returns>The information of the system related to the performance.</returns>
public static IList<object> GetPerformanceData(this IApp app, string performanceDataType)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can add the possibility of obtaining memory or CPU consumption data when passing some UItests. I see it certainly useful with cases like CollectionView or navigation. If we launch the tests on the same devices and also reset after pass the test, the memory value should be controlled within a certain range. If the value is suddenly higher, probably some change is triggering memory or CPU consumption and we must take a look to it.

@jfversluis
Copy link
Member

jfversluis commented Aug 13, 2024

/rebase

@github-actions github-actions bot force-pushed the android-specific-uitest-actions branch from a6c0c31 to ced0398 Compare August 13, 2024 13:42
@jfversluis jfversluis force-pushed the android-specific-uitest-actions branch from bcde38f to e52014c Compare August 13, 2024 19:22
@PureWeen PureWeen merged commit 2a79607 into main Aug 14, 2024
97 checks passed
@PureWeen PureWeen deleted the android-specific-uitest-actions branch August 14, 2024 20:45
@samhouts samhouts added fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing Unit tests, device tests fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release! t/housekeeping ♻︎
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants