I have a set of defs (methods) for test automating in web. Each def represents a single page's actions. I need to pass parameters in some pages in the middle of the process. Using where block in a single def resulting iteration in the same def and does not proceed in the next def.
How I can pass parameter in the middle of a test?
Example:
def "A"
{
}
def "B"
{
}
def "C"
{
where:
param1 << value1
param2 << value2
param3 << value3
param4 << value4
}
def "D"
{
}
and now loop again from def "A" for the next set of parameter?
Aucun commentaire:
Enregistrer un commentaire