tree: c18f89d7567c6796a7c8d988fbddbda0b2f32355 [path history] [tgz]
  1. data/
  2. meta/
  3. one-flutter/
  4. BUILD.gn
  5. README.md
  6. response_listener.test.fidl
  7. touch-input-test.cc
src/ui/tests/e2e_input_tests/touch/README.md

Build the test

$ fx set <product>.<arch> --with //src/ui/tests/e2e_input_tests/touch:tests

Run the test

Remember to kill a running Scenic before starting the test. (If the zircon console is running, you don't need to do this.)

$ fx shell killall scenic.cmx

To run the fully-automated test, use this fx invocation:

$ fx test touch-input-test

Performance tracking

This test suite uses the Fuchsia tracing system to collect metrics.

TODO(fxb/50245): Add description about how trace metrics are tracked in CQ.

Add trace metrics to the test

This test suite uses the category touch-input-test to log trace events. Any new categories added to a test will need to be included in the fx traceutil record command below.

Trace event types can be found in libtrace.

Record a trace of the test

Add the tracing package to your fx set:

$ fx set <product>.<arch> --with //src/ui/tests/e2e_input_tests/touch:tests --with-base=//garnet/packages/prod:tracing

To record a trace of the test, use this fx invocation:

$ fx traceutil record --duration 20s --categories touch-input-test fuchsia-pkg://fuchsia.com/touch-input-test#meta/touch-input-test.cmx

Note: The default duration for traceutil record is 10 seconds. When running locally, package resolving can take more than 10 seconds. If the recording ends before the test completes, increase the amount of time in the --duration flag.

Play with the flutter client

To play around with the flutter client used in the automated test, invoke the client like this:

$ present_view fuchsia-pkg://fuchsia.com/one-flutter#meta/one-flutter.cmx