Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Run the Testsuite on multiple urls #231

Open
contactkrsna1 opened this issue May 22, 2020 · 1 comment
Open

Run the Testsuite on multiple urls #231

contactkrsna1 opened this issue May 22, 2020 · 1 comment
Labels

Comments

@contactkrsna1
Copy link

Hi,
i have to run1 test suite on mulitple urls

  1. www.xyz.com/in/mypage.html
  2. www.xyz.com/sg/mypage.html
  3. www.xyz.com/au/mypage.html
    Basically the content of the page is same and also the environment is same but url paths are different.I am using serenity with cucumber.
    I ran the test suite on 1 page and it is woriking fine. Now, how to run the same test suite one after another on urls 1, 2, and 3.

In test ng or junit there is something like below.
@dataProvider
public static Object[][] urlDataProvider() {
return new Object[][] {
"google.com",
"facebook.com",
/* ... */
};
}
@test
@UseDataProvider("urlDataProvider")
public void multipleURLs(String url) {
driver.get(url)
}

Thanks in advance.

@wakaleo
Copy link
Member

wakaleo commented May 22, 2020

If it is just one scenario that you want to run you would typically use a scenario outline for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants