-
Notifications
You must be signed in to change notification settings - Fork 659
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
[FC] Add livetesting OAuth tests + some Maestro improvements #7514
[FC] Add livetesting OAuth tests + some Maestro improvements #7514
Conversation
…8162/fc-add-livetesting-oauth-tests
bitrise.yml
Outdated
- pull_request_source_branch: 'carlosmuvi/BANKCON-8162/fc-add-livetesting-oauth-tests' | ||
pipeline: pipeline-connections-e2e-release-tests |
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.
temp - revert once tests run.
.semantics { testTagsAsResourceId = true } | ||
.testTag("search_result_$index") |
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.
makes result list clickable by index in tests.
# Check if tags are present in the test file | ||
if awk '/tags:/,/---/' "$TEST_FILE_PATH" | grep -q "$MAESTRO_TAGS"; then | ||
# Execute Maestro test flow and retries if failed. | ||
while [ "$RETRY_COUNT" -lt "$MAX_RETRIES" ]; do | ||
maestro test -e APP_ID=com.stripe.android.financialconnections.example --format junit --output $TEST_FILE_PATH.xml "$TEST_FILE_PATH" && break | ||
let RETRY_COUNT=RETRY_COUNT+1 | ||
echo "Maestro test attempt $RETRY_COUNT failed. Retrying..." | ||
done | ||
if [ "$RETRY_COUNT" -eq "$MAX_RETRIES" ]; then | ||
echo "Maestro tests failed after $MAX_RETRIES attempts." | ||
exit 1 | ||
else | ||
RETRY_COUNT=0 | ||
fi | ||
fi | ||
done |
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.
This script runs Maestro tests on each .yaml file in a specified directory (with a given tag
), retrying a set number of times if a test fails.
Maestro does not (yet) have built in support for retries.
…8162/fc-add-livetesting-oauth-tests
Summary
Adds new parallel instance to run live tests
More info in this doc.
Motivation
📔 [Android] Add finbank / mxbank OAuth tests
🌐 BANKCON-8162
Testing