You could unroll each of the features in that spec with one iteration for
Lufthansa's url and another for Emirates' and set Browser's baseUrl
property as the first step, i.e.
@Unroll
def "first feature for #scenario"() {
given:
browser.baseUrl = testedUrl
...
where:
scenario | testedUrl
"Lufthansa" | "http://example.com"
....
}
On Tue, 21 Feb 2017 at 14:39, Pooja Kurbetti <[email protected]>
wrote:
> We have specific flow which has to run on 2 different urls.
>
> Say book a flight which has same ui components (assuming) Emirates and
> Lufthansa sites
>
> Its the same test flow.
>
> Is there any way we can do that?
>
> TestFlow_Spec on
>
> https://abc
> https://bca
>
> Or is there any way we could call the same spec again in another spec to
> do the same?
>
> Thanks,
> Pooja
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/48cffb0e-380e-4123-a842-cebeba89917f%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/48cffb0e-380e-4123-a842-cebeba89917f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/CA%2B52dQRjrfanHKr_RvSy-kBAwBZfiq38Cp1UA4OsW8P38ca0EQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.