This project verifies that upgrading from an older version of the app to a newer one does not cause crashes or break functionality.
The tests in this repository are designed to run within a CI workflow that builds both the older and newer versions for every pull request.
In the local.properties
file
- Name of the file containing older and newer version. By default:
owncloudSigned1.apk
andowncloudSigned2.apk
. - Passcode to set in the app (4 digits)
- Package name
- Appium URL
The gradlew process launchs the tests with the following parameters:
- Server URL: ownCloud server to test. Basic auth as 1st auth method.
- Username: available in the server.
- Password: for the username to access.
- Commit: hash to compare against
latest
tag in CI.
Command:
./gradlew clean test -Dserver="https://myserver:9200" -Dusername=john -Dpassword=mypass -Dcommit=87a6f33
- Add some example files to the given account
- Install the older version
owncloudSigned1.apk
- Log in by using the given credentials
- Check list of files
- Add a passcode to the app
- Install the newest version over the older (without reinstalling)
- Verifies the passcode, the list of files, and the commit hash
(open to add more checks)