-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
[plugin-mobile-app] Add full view shooting strategy #2568
base: master
Are you sure you want to change the base?
Conversation
97cbbc6
to
a85e847
Compare
189ff8c
to
4f46cc8
Compare
f8194f4
to
7e64daa
Compare
Codecov Report
@@ Coverage Diff @@
## master #2568 +/- ##
============================================
+ Coverage 96.69% 96.72% +0.02%
- Complexity 5739 5768 +29
============================================
Files 811 813 +2
Lines 16361 16475 +114
Branches 1059 1064 +5
============================================
+ Hits 15821 15935 +114
Misses 427 427
Partials 113 113
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
vividus-extension-selenium/src/main/java/org/vividus/selenium/screenshot/ScreenshotUtils.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/ui/util/ImageUtils.java
Outdated
Show resolved
Hide resolved
...dus-extension-visual-testing/src/main/java/org/vividus/visual/steps/AbstractVisualSteps.java
Outdated
Show resolved
Hide resolved
vividus-plugin-mobile-app/src/main/java/org/vividus/mobileapp/action/TouchActions.java
Outdated
Show resolved
Hide resolved
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/selenium/screenshot/ScreenshotTaker.java
Show resolved
Hide resolved
...s-extension-selenium/src/test/java/org/vividus/selenium/screenshot/ScreenshotUtilsTests.java
Outdated
Show resolved
Hide resolved
vividus-extension-selenium/src/main/java/org/vividus/selenium/screenshot/ScreenshotUtils.java
Show resolved
Hide resolved
yes, this is handled in FixedCutStrategy decorator that is provided with header in footer to cut (AbstractAshotFactory) |
vividus-extension-selenium/src/main/java/org/vividus/ui/util/ImageUtils.java
Outdated
Show resolved
Hide resolved
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Show resolved
Hide resolved
@@ -9,6 +9,7 @@ project.description = 'Vividus plugin for testing mobile applications' | |||
|
|||
implementation(group: 'org.slf4j', name: 'slf4j-api', version: versions.slf4j) | |||
implementation(group: 'javax.inject', name: 'javax.inject', version: versions.javaxInject) | |||
implementation(group: 'org.boofcv', name: 'boofcv-core', version: '0.40.1') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we have it as an extension to the visual testing plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If we want to make the strategy standalone then we will also have to move things out from plugin mobile like touch actions etc into separate plugin, so we will have two more modules for what?
- 254.7 with boofcv vs 241 without boofcv doesn't seem like a big win
==== Strategies | ||
|
||
[cols="1,3", options="header"] | ||
|=== | ||
|
||
|Name | ||
|Description | ||
|
||
|`SIMPLE` | ||
|Used to take a screenshot of current viewport. This strategy is used by default. | ||
|
||
|`FULL` | ||
|Used to take a screenshot of whole application view. The strategy starts shooting at the top position | ||
of the application view and ends at the bottom position, once the shooting is done the initial top position | ||
gets restored. | ||
|
||
For iOS platform make sure to set the `screenshotQuality` property to `0` to ensure screenshot pixels | ||
consistensy, please see https://github.com/appium/appium-xcuitest-driver[XCUI capabililties] for more details. | ||
|
||
|=== | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
==== Strategies | |
[cols="1,3", options="header"] | |
|=== | |
|Name | |
|Description | |
|`SIMPLE` | |
|Used to take a screenshot of current viewport. This strategy is used by default. | |
|`FULL` | |
|Used to take a screenshot of whole application view. The strategy starts shooting at the top position | |
of the application view and ends at the bottom position, once the shooting is done the initial top position | |
gets restored. | |
For iOS platform make sure to set the `screenshotQuality` property to `0` to ensure screenshot pixels | |
consistensy, please see https://github.com/appium/appium-xcuitest-driver[XCUI capabililties] for more details. | |
|=== | |
==== Strategies | |
[cols="1,3", options="header"] | |
|=== | |
|Name | |
|Description | |
|`SIMPLE` | |
|Used to take a screenshot of the current viewport. This strategy is used by default. | |
|`FULL` | |
|Used to take a screenshot of the whole application view. The strategy starts shooting at the top position | |
of the application view and ends at the bottom position, once the shooting is done the initial top position | |
gets restored. | |
For iOS platform, make sure to set the `screenshotQuality` property to `0` to ensure screenshot pixels | |
consistency, please see https://github.com/appium/appium-xcuitest-driver[XCUI capabilities] for more details. | |
|=== | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will ignore area/element work for this strategy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WIP
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Show resolved
Hide resolved
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Outdated
Show resolved
Hide resolved
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Outdated
Show resolved
Hide resolved
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Outdated
Show resolved
Hide resolved
...java/org/vividus/selenium/mobileapp/screenshot/strategies/MobileAppFullShootingStrategy.java
Show resolved
Hide resolved
d2fa51e
to
8fb0ee2
Compare
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! |
Closes #2005