0
私は、Webメニューを確認するテストを書いているが、必要なすべてのアイテムを持っているので、私はこのようないくつかの項目で「メニューを確認してください」と呼ばれるキーワードを作成しました:Robot Framework:メニューの項目をテストするためのより良い方法はありますか?
Verify Menu
Wait Until Element Is Visible ${menu}
Page Should Contain Element ${home menu item}
Element Text Should Be ${home menu item} Home
Page Should Contain Element ${products menu item}
Element Text Should Be ${products menu item} Products
Page Should Contain Element ${brands menu item}
Element Text Should Be ${brands menu item} Brands
Page Should Contain Element ${find us menu item}
Element Text Should Be ${find us menu item} Find us
Page Should Contain Element ${our history menu item}
Element Text Should Be ${our history menu item} Our History
Page Should Contain Element ${contact us menu item}
Element Text Should Be ${contact us menu item} Contact Us
私は、これがキーワードの実装を知っているとテスト自体の一部ではありませんが、私にとってはちょっと面倒です。
これを行うより良い方法はありますか?