[plugin-mobile-app] Add steps to terminate and reinstall application#2092
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2092 +/- ##
============================================
+ Coverage 96.20% 96.21% +0.01%
- Complexity 5347 5368 +21
============================================
Files 756 757 +1
Lines 15271 15338 +67
Branches 1028 1032 +4
============================================
+ Hits 14692 14758 +66
Misses 450 450
- Partials 129 130 +1
Continue to review full report at Codecov.
|
vividus-tests/src/main/resources/story/system/mobile_app/MobileAppStepsTests.story
Outdated
Show resolved
Hide resolved
vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/ApplicationSteps.java
Outdated
Show resolved
Hide resolved
vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/ApplicationSteps.java
Outdated
Show resolved
Hide resolved
vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/ApplicationSteps.java
Outdated
Show resolved
Hide resolved
vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/ApplicationSteps.java
Outdated
Show resolved
Hide resolved
vividus-plugin-mobile-app/src/main/java/org/vividus/mobileapp/action/ApplicationActions.java
Outdated
Show resolved
Hide resolved
…action/ApplicationActions.java Co-authored-by: Valery Yatsynovich <valfirst@yandex.ru>
b772291 to
15da352
Compare
|
|
||
| [source,gherkin] | ||
| ---- | ||
| When I reinstall mobile application using bundle identifier `$bundleId` |
There was a problem hiding this comment.
| When I reinstall mobile application using bundle identifier `$bundleId` | |
| When I reinstall mobile application with bundle identifier `$bundleId` |
| |fullReset|true | | ||
|
|
||
| ---- | ||
| steps pair is ability to avoid device re-allocation on SauceLabs or BrowserStack in case of application re-installation within story run (e.g. in case usage ExamplesTable) |
There was a problem hiding this comment.
| steps pair is ability to avoid device re-allocation on SauceLabs or BrowserStack in case of application re-installation within story run (e.g. in case usage ExamplesTable) | |
| steps pair is ability to avoid device re-allocation on SauceLabs or BrowserStack in case of application re-installation within story run. |
|
|
||
| [source,gherkin] | ||
| ---- | ||
| When I reinstall mobile application using bundle identifier `$bundleId` |
There was a problem hiding this comment.
Please add a description for $bundleId parameter
|
|
||
|
|
||
| Scenario: Verify step: 'When I restart mobile application' | ||
| When I restart mobile application |
There was a problem hiding this comment.
This test needs to be updated
| HasCapabilities hasCapabilities = webDriverProvider.getUnwrapped(HasCapabilities.class); | ||
| String appPath = hasCapabilities.getCapabilities().getCapability("app").toString(); | ||
| Validate.isTrue(interactor.removeApp(bundleId), | ||
| "Application with the bundle identifier '%s' hasn't been successfully removed", bundleId); |
There was a problem hiding this comment.
Maybe something simpler like "Unable to remove mobille application with the bundle identifier '%s'"
| |app |${app-url}| | ||
|
|
||
|
|
||
| Scenario: Verify step: 'When I restart mobile application' |
There was a problem hiding this comment.
please add requirement id for added scenarios
|
|
||
| Remove a mobile application from device and install it again | ||
|
|
||
| ==== *_Parameters_* |
There was a problem hiding this comment.
this section should go after Wording
| "Application with the bundle identifier '%s' is not installed or not running on the device", | ||
| bundleId); | ||
| Validate.isTrue(interactor.terminateApp(bundleId), | ||
| "Application with the bundle identifier '%s' hasn't been successfully terminated", bundleId); |
There was a problem hiding this comment.
"Unable to terminated mobile application with the bundle identifier '%s'" to follow common pattern?
| } | ||
|
|
||
| /** | ||
| * Restart mobile application |
There was a problem hiding this comment.
Steps wording mentions reinstall, javadoc says about restart, looks confusing for the end user
| Scenario: Verify step: 'When I reinstall mobile application with bundle identifier `$bundleId`' | ||
| Meta: | ||
| @requirementId 2073 | ||
| When I reinstall mobile application with bundle identifier `${main-app}` |
There was a problem hiding this comment.
For example, you could open some view, validate it opened, and then reinstall. In the current implementation of the test, if step does nothing at all we won't get any error
Co-authored-by: Ivan Kalinin <ivan_kalinin1@epam.com>
Closes #2073