19 // |
19 // |
20 |
20 |
21 PRINT Run Software Component Registry (SCR) API Tests |
21 PRINT Run Software Component Registry (SCR) API Tests |
22 |
22 |
23 // Load Suite |
23 // Load Suite |
|
24 LOAD_SUITE tSisRegistryTest |
24 LOAD_SUITE tscr -SharedData // SharedData is used for sharing the componentid between test steps |
25 LOAD_SUITE tscr -SharedData // SharedData is used for sharing the componentid between test steps |
25 SHARED_DATA z:\tusif\tscr\tscr.ini shared_data |
26 SHARED_DATA z:\tusif\tscr\tscr.ini shared_data |
26 |
27 |
27 // Delete the SCR Database file |
28 // Delete the SCR Database file |
28 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file |
29 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file |
29 |
30 |
30 //! @SYMTestCaseID API-SEC-SCR-API-0001 |
31 //! @SYMTestCaseID API-SEC-SCR-API-0001 |
31 //! @SYMTestCaseDesc Add a single software component with component name and vendor |
32 //! @SYMTestCaseDesc Change current locale to english as some test cases assume it & Add a single software component with component name and vendor |
32 |
33 |
33 START_TESTCASE API-SEC-SCR-API-0001 |
34 START_TESTCASE API-SEC-SCR-API-0001 |
34 |
35 |
|
36 RUN_TEST_STEP 100 tSisRegistryTest ChangeLocale z:\tswi\tuiscriptadaptors\scripts\testdevicelanguages.ini langauge_to_english |
35 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
37 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini common_component_names |
36 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini common_component_attributes |
38 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini common_component_attributes |
37 |
39 |
38 END_TESTCASE API-SEC-SCR-API-0001 |
40 END_TESTCASE API-SEC-SCR-API-0001 |
39 |
41 |
1452 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini test76_component_without_drives |
1454 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini test76_component_without_drives |
1453 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini test76_component_with_drives |
1455 RUN_TEST_STEP 100 tscr SCRAddComponent z:\tusif\tscr\tscr.ini test76_component_with_drives |
1454 // Register same files to both components, while setting the flag to false for the first component |
1456 // Register same files to both components, while setting the flag to false for the first component |
1455 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_files_consider_drives_false_test76 |
1457 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_files_consider_drives_false_test76 |
1456 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_files_consider_drives_true_test76 |
1458 RUN_TEST_STEP 100 tscr SCRRegisterFile z:\tusif\tscr\tscr.ini register_files_consider_drives_true_test76 |
1457 // Check that filter on components which have files on drive C does not return component 1, but returns component 2 |
1459 // Check that filter on components which have files on drive P does not return component 1, but returns component 2 |
1458 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveC_test76 |
1460 RUN_TEST_STEP 100 tscr ScrComponentRegistrySubsession z:\tusif\tscr\tscr.ini components_on_driveP_test76 |
1459 // Verify that files were registered to the first component |
1461 // Verify that files were registered to the first component |
1460 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini component_files_test76 |
1462 RUN_TEST_STEP 100 tscr ScrFileListSubsession z:\tusif\tscr\tscr.ini component_files_test76 |
1461 // Verify that the first component does not list any registered drives |
1463 // Verify that the first component does not list any registered drives |
1462 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_no_drives_component_test76 |
1464 RUN_TEST_STEP 100 tscr SCRGetComponent z:\tusif\tscr\tscr.ini get_no_drives_component_test76 |
1463 END_TESTCASE API-SEC-SCR-API-0076 |
1465 END_TESTCASE API-SEC-SCR-API-0076 |