diff --git a/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js b/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js index c55d01d09436c2a7d9f6918025ef16daeecd7fcf..42cf9a60f16d257342b94df6e833dcd038839e66 100644 --- a/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js +++ b/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js @@ -19,6 +19,115 @@ import { describe('securitylabel', function () { + /** + * @tc.number SUB_DF_SECURITYLABEL_SET_SECURITY_LABEL_SYNC_0000 + * @tc.name securitylabel_test_set_security_label_sync_000 + * @tc.desc Test the setSecurityLabelSync() interface,and the getSecurityLabelSync() interface to get the data label. + * @tc.size MEDIUM + * @tc.type Function + * @tc.level Level 0 + * @tc.require + */ + it('securitylabel_test_set_security_label_sync_000', 0, async function () { + try { + let dataLevel = ["s0","s1","s2","s3","s4"]; + for(let i=0;i