tast tests: Replace optin method used in tests.

Test fail often checking if playstore is open once optin is
completed and close it. Replacing this with optin method
PerformAndClose in all tests.
Also separating out the method to close playstore and using
it in PerformAndClose.

BUG=b:182828595
TEST=repeat-test.sh -s -r 20 <DUT> arc.VerifySettings.vm

Change-Id: I10b9f904904c6a336c271d4ceb6cb020a6cc2697
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2764940
Tested-by: Renuga Nanjappan <rnanjappan@chromium.org>
Commit-Queue: Renuga Nanjappan <rnanjappan@chromium.org>
Reviewed-by: Muhammad Hasan Khan <mhasank@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
9 files changed
tree: 640bc0aae8bf1c19451f88bc2fc44c2c4ac9ae03
  1. android/
  2. helpers/
  3. src/
  4. tools/
  5. vars/
  6. .gitignore
  7. LICENSE
  8. OWNERS
  9. PRESUBMIT.cfg
  10. PRESUBMIT.py
  11. README.md
  12. unblocked_terms.txt
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc