Skip to content
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

run android #520

Closed
wants to merge 11 commits into from
Closed
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
18 changes: 17 additions & 1 deletion ci-jobs/functional/run_appium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,26 @@ steps:
displayName: Install MJPEG Consumer
- script: npm list --depth 2 -g || echo 'ok'
displayName: Installed node dependencies
- script: appium driver install ${APPIUM_DRIVER}
- script: |
# git clone https://github.com/mykola-mokhnach/appium-espresso-driver.git
git clone https://github.com/appium/appium-android-driver.git
cd appium-android-driver
git checkout dependabot/gradle/app/androidx.test.uiautomator-uiautomator-2.3.0
npm install
npm link
cd ..

git clone https://github.com/appium/appium-uiautomator2-driver.git
cd appium-uiautomator2-driver
npm install
- script: ls
- script: appium driver install --source=local $(pwd)/appium-uiautomator2-driver
displayName: Install appium driver ${APPIUM_DRIVER}
env:
APPIUM_HOME: $(Agent.HomeDirectory)/appium
- script: |
cd appium-uiautomator2-driver
npm link appium-android-driver
- script: appium plugin install images
displayName: Install appium images plugin
env:
Expand Down
288 changes: 144 additions & 144 deletions ci-jobs/functional_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,143 +12,143 @@ parameters:

jobs:
# Run unit tests on different Node versions
- job: func_test_ios_base
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/driver_test.rb,test/functional/ios/patch_test.rb
displayName: Run tests func_test_ios_base
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_base
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/driver_test.rb,test/functional/ios/patch_test.rb
# displayName: Run tests func_test_ios_base
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_webdriver1
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/webdriver/create_session_test.rb,test/functional/ios/webdriver/w3c_actions_test.rb
displayName: Run tests func_test_ios_webdriver1
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_webdriver1
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/webdriver/create_session_test.rb,test/functional/ios/webdriver/w3c_actions_test.rb
# displayName: Run tests func_test_ios_webdriver1
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_webdriver2
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/webdriver/device_test.rb
displayName: Run tests func_test_ios_webdriver2
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_webdriver2
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/webdriver/device_test.rb
# displayName: Run tests func_test_ios_webdriver2
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_ios1
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/device_test.rb
displayName: Run tests func_test_ios_ios1
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_ios1
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/device_test.rb
# displayName: Run tests func_test_ios_ios1
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_ios2
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/device_wda_attachment_test.rb,test/functional/ios/ios/search_context_test.rb
displayName: Run tests func_test_ios_ios2
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_ios2
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/device_wda_attachment_test.rb,test/functional/ios/ios/search_context_test.rb
# displayName: Run tests func_test_ios_ios2
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_ios3
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- script: brew install ffmpeg && brew tap wix/brew && brew install applesimutils
displayName: Install ffmpeg and applesimutils
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/mjpeg_server_test.rb,test/functional/ios/ios/mobile_commands_test.rb
displayName: Run tests func_test_ios_ios3
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_ios3
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - script: brew install ffmpeg && brew tap wix/brew && brew install applesimutils
# displayName: Install ffmpeg and applesimutils
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/mjpeg_server_test.rb,test/functional/ios/ios/mobile_commands_test.rb
# displayName: Run tests func_test_ios_ios3
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_tvos
pool:
vmImage: ${{ parameters.vmImage }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForTVOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/tv_driver_test.rb
displayName: Run tests func_test_ios_tvos
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_tvos
# pool:
# vmImage: ${{ parameters.vmImage }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForTVOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/tv_driver_test.rb
# displayName: Run tests func_test_ios_tvos
# - template: ./functional/publish_test_result.yml

- job: func_test_ios_opencv
pool:
vmImage: ${{ parameters.vmImageForIOS }}
variables:
CI: ${{ parameters.ci }}
IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
APPIUM_VERSION: ${{ parameters.appiumVersion }}
APPIUM_DRIVER: xcuitest
steps:
- template: ./functional/ios_setup.yml
parameters:
xcodeVersion: ${{ parameters.xcodeForIOS }}
- template: ./functional/run_appium.yml
- script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/image_comparison_test.rb
displayName: Run tests
- template: ./functional/publish_test_result.yml
# - job: func_test_ios_opencv
# pool:
# vmImage: ${{ parameters.vmImageForIOS }}
# variables:
# CI: ${{ parameters.ci }}
# IGNORE_VERSION_SKIP: ${{ parameters.ignoreVersionSkip }}
# APPIUM_VERSION: ${{ parameters.appiumVersion }}
# APPIUM_DRIVER: xcuitest
# steps:
# - template: ./functional/ios_setup.yml
# parameters:
# xcodeVersion: ${{ parameters.xcodeForIOS }}
# - template: ./functional/run_appium.yml
# - script: bundle exec rake test:func:ios TESTS=test/functional/ios/ios/image_comparison_test.rb
# displayName: Run tests
# - template: ./functional/publish_test_result.yml

- job: func_test_android_base
pool:
Expand All @@ -162,8 +162,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand All @@ -183,8 +183,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand All @@ -204,8 +204,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand All @@ -225,8 +225,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand All @@ -246,8 +246,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand All @@ -267,8 +267,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand All @@ -288,8 +288,8 @@ jobs:
matrix:
uiautomator2:
APPIUM_DRIVER: uiautomator2
espresso:
APPIUM_DRIVER: espresso
# espresso:
# APPIUM_DRIVER: espresso
steps:
- template: ./functional/android_setup.yml
- template: ./functional/run_appium.yml
Expand Down
Loading