tree: 1ada287ff2dfe783190ee09fdfd48700a7a8f046 [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
    web_system_validation (runs `ui_app_instrumentor.rs`)
         /  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.qemu-x64 --release --with-base //sdk/bundles:tools  --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