Selenium test structure -


i have written selenium test clicks through every option on "admin panel" page , takes screen shots of each new page.

i have task test on every language there (currently 11).

how proceed? create new test class each language. or make loop on existing test loops through each url (different url each language).

the test code have works each language.

so best practice make happen? appreciate help

edit using java, testng , pom

if you've written test in junit, use parameterized runner parametrize test. define languages parameter , automatically runs test languages provided.

if you're using testng can parameterize tests , provide data using @dataprovider annotated method, more details here.


Comments