Hello everyone,
I am wondering if it is possible to parameterize the name of a spec with a value from a data table to know which scenario failed.
For example, I have:
def "checks access to dashboard as a(n) #role"(){
setup:
to LoginPage
login(role)
when:
at HomePage
searchModule.submitSearch testAccount.email
then:
at landingPage
cleanup:
topMenu.logout()
where:
role | landingPage
"ADMIN" | DashboardPage
"OPERATOR" | DashboardPage
"FINANCE" | DashboardPage
"VOUCHER" | SearchIndexPage
}
So depending on a role, I am supposed to land on a different page.
I wish there is a way to say: "checks access to dashboard as a(n) ADMIN" failed.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spockframework/-/lIROyjZieS8J.
To post to this group, send email to spockfr...@googlegroups.com.
To unsubscribe from this group, send email to spockframewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spockframework?hl=en.
where:
role | landingPage
"ADMIN" | DashboardPage
"OPERATOR" | DashboardPage
"FINANCE" | DashboardPage
"VOUCHER" | SearchIndexPage
Ah. Gotcha. Thanks.
You received this message because you are subscribed to a topic in the Google Groups "Spock Framework - User" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spockframework/oqx8FpgSlkQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spockframewor...@googlegroups.com.