)是否可以將參數傳遞給「at()」,以便我可以在模塊中使用參數?這裏是我的場景:在Spock規範中將參數傳遞給Geb的靜態(
模塊爲具有關於產品(ProductModule,這有一個內容標題,我想參數化)的一些共同的細節的頁面。我有一個使用該模塊的頁面,但我希望「at()」在測試期間將產品標題傳遞給它。這可能嗎?
我的使用會(在psudo代碼)
...
...
when:
go ProductPage
then:
at ProductPage(title:」Product title goes here」) // this is the parameter I want to pass down to the 「at」 since the check is a content segment in the Module
and:
…
…