TestStack / TestStack.Seleno

Seleno helps you write automated UI tests in the right way by implementing Page Objects and Page Components and by reading from and writing to web pages using strongly typed view models.
http://teststack.github.com/TestStack.Seleno/
MIT License
180 stars 60 forks source link

(Help) How to handle the same tests, but for different locales #224

Closed sirj77 closed 8 years ago

sirj77 commented 8 years ago

Hi,

Is there a possibility to run all the automated test cases, but on different locales (countries)? So, for instance, I have 50 tests that are run on one country (on one concrete url, that are specified in Host class):

    public static class Host
    {
        public static readonly SelenoHost Instance = new SelenoHost();

        static Host()
        {
            Instance.Run(configure => configure
                .WithWebServer(new InternetWebServer("http://my_site.com")));

            Instance.Application.Browser.Manage().Window.Maximize();
        }
    }

But there is a need to run these tests, but for the others countries, let's say for: .com.de .co.uk .es .dk ... and so on

Thank you for your help!

robdmoore commented 8 years ago

You could make hte URL a configuration variable (e.g. environment variable or app.config) and then re-run the whole test suite, but with the variable set differently each time?

sirj77 commented 8 years ago

Thanks. I will try.