• zhaoyangli's avatar
    Modify bot scripts to run Autofill Automation(WPR) eg2tests. · 73383ad5
    zhaoyangli authored
    Major changes at WprProxySimulatorTestRunner:
    - Added a new class variable |host_app_path| for eg2test.
    - Changed command running test from iossim binary file to Xcodebuild.
      Created command with |Eg2testsApp| and |LaunchCommand| classes from
      xcodebuilder_runner.py.
    - Moved it to a new file wpr_runner.py for clearer structure.
    - Changed runner tests correspondingly and moved them to new file
      wpr_runner_test.py.
    
    Other changes:
    - In run.py, added |host_app_path| parameter when initializing
      |WprProxySimulatorTestRunner|.
    - In test_runner.py, deleted trusted certificate if exist as it can't
      be overwritten per permission settings. Moved trusted cert related
      logic to wpr_runner.py.
    
    TEST=src/ios/build/bots/scripts/run.py     --app
    src/out/Debug-iphonesimulator/
      ios_chrome_autofill_automation_eg2tests_module-Runner.app
    --host-app     src/out/Debug-iphonesimulator/ios_chrome_eg2tests.app
    --args-json     "{\"test_args\": [],         \"xctest\": true,
      \"test_cases\": [],         \"restart\": false,
      \"xcode_parallelization\": false,
      \"xcodebuild_device_runner\": false}"
    --out-dir     ${ISOLATED_OUTDIR}     --retries     3
    --shards     1     --xcode-build-version     11a420a
    --mac-toolchain-cmd     mac_toolchain     --xcode-path
    /Applications/Xcode.app     --wpr-tools-path     ${WPRPATH}
    --replay-path
    /Users/zhaoyangli/Desktop/projects/auto-auto/recipeReplayDataSubset
    --iossim     src/out/Debug-iphonesimulator/iossim
    --platform     "iPhone X"     --version     13.0
    
    
    
    Bug: 1003605
    Change-Id: Id336fa2e0a73cd0331dc2b97333e7e8a562180da
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876757
    Commit-Queue: Zhaoyang Li <zhaoyangli@chromium.org>
    Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
    Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#715538}
    73383ad5
wpr_runner.py 17.2 KB