Home | History | Annotate | only in /external/autotest/server/cros/cfm/configurable_test
Up to higher level directory
NameDateSize
__init__.py21-Aug-20180
action_context.py21-Aug-20181.4K
actions.py21-Aug-201813.7K
actions_unittest.py21-Aug-20189.2K
cfm_test.py21-Aug-2018688
configurable_cfm_test.py21-Aug-20183K
configurable_cfm_test_unittest.py21-Aug-20181.9K
configuration.py21-Aug-2018712
dsl.py21-Aug-2018548
README.md21-Aug-20182.2K
scenario.py21-Aug-2018519

README.md

      1 # Configurable CfM Tests
      2 
      3 The Configurable CfM Tests modules allow creating test scenarios using an API
      4 that clearly describes the steps executed. A sample of a configurable CfM test
      5 is:
      6 
      7     CfmTest(
      8         scenario=Scenario(
      9             CreateMeeting(),
     10             RepeatTimes(5, Scenario(
     11                 MuteMicrophone(),
     12                 UnmuteMicrophone()
     13             )),
     14             LeaveMeeting(),
     15             AssertUsbDevices(ATRUS),
     16             AssertFileDoesNotContain('/var/log/messages', ['FATAL ERROR'])
     17         ),
     18         configuration=Configuration(
     19             run_test_only = False
     20         )
     21     )
     22 
     23 This test creates a meeting, mutes and unmutes the microphone five times and
     24 leaves the meeting. It then verifies that an ATRUS device is visible and that
     25 the log file `/var/log/messages` does not contains `FATAL ERROR`.
     26 
     27 A configurable test can be setup in a `control` file so that third parties
     28 that have no easy way to modify other source code can create and modify
     29 such tests.
     30 
     31 For the test to be executed properly it has to subclass [`autotest_lib.server.cros.cfm.configurable_test.configurable_cfm_tests.ConfigurableCfmTest`](https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/server/cros/cfm/configurable_test/configurable_cfm_test.py).
     32 
     33 ## Actions
     34 
     35 Each step in a scenario is an Action. The available actions are listed in
     36 [`autotest_lib.server.cros.cfm.configurable_test.actions`](https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/server/cros/cfm/configurable_test/actions.py).
     37 
     38 ## Configuration
     39 
     40 Besides Actions, a test can be configured with configuration params that affect
     41 behavior outside of the actions. The available configuration flags are
     42 documented in
     43 [`autotest_lib.server.cros.cfm.configurable_test.configuration`](https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/server/cros/cfm/configurable_test/configuration.py).
     44 
     45 ## Samples
     46 
     47 For complete samples see the Autotest
     48 [`enterprise_CFM_ConfigurableCfmTestSanity`](https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/server/site_tests/enterprise_CFM_ConfigurableCfmTestSanity/)
     49 that we use to test the framework itself.
     50 
     51 
     52