tree: 453df7f3a6b26286dfcba8f8a5221f4d567f3d5e [path history] [tgz]
  1. apps/
  2. file_server/
  3. tests/
  4. BUILD.gn
  5. README.md
src/testing/system-validation/web/README.md

Web System Validation Test

This directory contains sample apps that exercises fuchsia.web API's, and system validation tests that executes the demo apps.

System validation sets up the test with following capability routing relationships:

        test_manager <-- root
                |  parent to
                V
        system_validation_test_realm (facet: system-validation) <-- system validation test root
                |  parent to
                V
        test component (ex: `web_view_system_validation`)
         /  parent to  |           \
        /              |            \
        V              V             V
    sample-app  <-->  web_engine    file_server (startup: eager)
(ex: `web_view.cm`)

Run existing tests

  1. Build workstation_eng_paused product with system validation test targets.
fx set workstation_eng_paused.x64 --release --with //src/testing/system-validation:tests
fx build
  1. Start the emulator and package server
ffx emu start
fx serve
  1. Run test
$ fx test fuchsia-pkg://fuchsia.com/dynamic_elements_web_system_validation#meta/web_view_system_validation.cm --ffx-output-directory /path/to/output/dir
$ fx test fuchsia-pkg://fuchsia.com/simple_png_web_system_validation#meta/web_view_system_validation.cm --ffx-output-directory /path/to/output/dir
$ fx test fuchsia-pkg://fuchsia.com/simple_video_web_system_validation#meta/web_view_system_validation.cm --ffx-output-directory /path/to/output/dir
$ fx test fuchsia-pkg://fuchsia.com/simple_audio_web_system_validation#meta/web_view_system_validation.cm --ffx-output-directory /path/to/output/dir