chore: Fix find_by_images_tests.py by ki4070ma · Pull Request #495 · appium/python-client · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci-jobs/functional/run_android_test.yml
3 changes: 3 additions & 0 deletions ci-jobs/functional/run_appium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ steps:
displayName: Install Node 11.x
- script: npm install -g appium@beta --chromedriver_version='2.44'
displayName: Install appium
- script: npm install -g opencv4nodejs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how much longer the tests take now?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This installation step takes 8m46s.
In total, it's 20min.
https://dev.azure.com/ki4070ma/python-client/_build/results?buildId=1046&view=logs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what was the previous value (before enabling opencv)?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's 10m30s previously.
Almost just added installation time.
https://dev.azure.com/ki4070ma/python-client/_build/results?buildId=1047

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm ok with the change if such increase in tests execution duration works for you

condition: and(succeeded(), eq('${{ parameters.opencv }}', true))
displayName: Install opencv4nodejs
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
Expand Down
1 change: 1 addition & 0 deletions ci-jobs/functional_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
testFiles: 'device_time_tests.py search_context/find_by_*.py'
sdkVer: ${{ parameters.androidSdkVer }}
CI: ${{ parameters.ci }}
OPENCV: true
- template: ./functional/run_android_test.yml
parameters:
name: 'func_test_android2'
Expand Down
Binary file modified test/functional/android/file/find_by_image_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 9 additions & 14 deletions test/functional/android/search_context/find_by_image_tests.py