blob: 00eb913b047b791af8399d2c88b402d5280f67e2 [file] [log] [blame] [view]
# 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
```
2. Start the emulator and package server
```
ffx emu start
fx serve
```
3. 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
```