add pagePath test

Signed-off-by: yichengzhao <yichengzhao1@huawei.com>
Change-Id: If6b6d477739d0f9a2140f2c6baa1b7d949728c49
This commit is contained in:
yichengzhao 2022-11-10 19:47:17 +08:00
parent 097983d32a
commit 0bedcd00ee

View File

@ -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