1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
__init__.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
action_context.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
actions.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
actions_unittest.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
cfm_test.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
configurable_cfm_test.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
configurable_cfm_test_unittest.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
configuration.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
dsl.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
scenario.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

Configurable CfM Tests

The Configurable CfM Tests modules allow creating test scenarios using an API that clearly describes the steps executed. A sample of a configurable CfM test is:

CfmTest(
    scenario=Scenario(
        CreateMeeting(),
        RepeatTimes(5, Scenario(
            MuteMicrophone(),
            UnmuteMicrophone()
        )),
        LeaveMeeting(),
        AssertUsbDevices(ATRUS),
        AssertFileDoesNotContain('/var/log/messages', ['FATAL ERROR'])
    ),
    configuration=Configuration(
        run_test_only = False
    )
)

This test creates a meeting, mutes and unmutes the microphone five times and leaves the meeting. It then verifies that an ATRUS device is visible and that the log file /var/log/messages does not contains FATAL ERROR.

A configurable test can be setup in a control file so that third parties that have no easy way to modify other source code can create and modify such tests.

For the test to be executed properly it has to subclass autotest_lib.server.cros.cfm.configurable_test.configurable_cfm_tests.ConfigurableCfmTest.

Actions

Each step in a scenario is an Action. The available actions are listed in autotest_lib.server.cros.cfm.configurable_test.actions.

Configuration

Besides Actions, a test can be configured with configuration params that affect behavior outside of the actions. The available configuration flags are documented in autotest_lib.server.cros.cfm.configurable_test.configuration.

Samples

For complete samples see the Autotest enterprise_CFM_ConfigurableCfmTestSanity that we use to test the framework itself.