diff --git a/frameworks/common/test/unittest/accessibility_element_info_test.cpp b/frameworks/common/test/unittest/accessibility_element_info_test.cpp index 936b04a9..fb3ffd69 100644 --- a/frameworks/common/test/unittest/accessibility_element_info_test.cpp +++ b/frameworks/common/test/unittest/accessibility_element_info_test.cpp @@ -908,6 +908,19 @@ HWTEST_F(AccessibilityElementInfoTest, SetInspectorKey_001, TestSize.Level1) GTEST_LOG_(INFO) << "SetInspectorKey_001 end"; } +/** + * @tc.number: SetPagePath_001 + * @tc.name: SetPagePath + * @tc.desc: Test function SetPagePath, GetPagePath + */ +HWTEST_F(AccessibilityElementInfoTest, SetPagePath_001, TestSize.Level1) +{ + GTEST_LOG_(INFO) << "SetPagePath_001 start"; + elementInfo_->SetPagePath("test"); + EXPECT_STREQ(elementInfo_->GetPagePath().c_str(), "test"); + GTEST_LOG_(INFO) << "SetPagePath_001 end"; +} + /** * @tc.number: SetPageId_001 * @tc.name: SetPageId