Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AtataContext global configuration #74

Closed
YevgeniyShunevych opened this issue Sep 15, 2017 · 0 comments
Closed

AtataContext global configuration #74

YevgeniyShunevych opened this issue Sep 15, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Add a property to AtataContext:

public static AtataContextBuilder GlobalConfiguration { get; }

Global configuration should be static and applied as a base configuration settings to all other test-specific configurations. When AtataContext.Configure() method is invoked, BuildingContext of GlobalConfiguration should be copied to new AtataContextBuilder instance. It is good to set up common AtataContext settings as a global configuration once in one-time set-up method.

Usage

[OneTimeSetUp]
public void GlobalSetUp()
{
    AtataContext.GlobalConfiguration.
        AddNUnitTestContextLogging().
        UseNUnitTestName();
}

[SetUp]
public void SetUp()
{
    AtataContext.Configure().
        UseChrome().
        Build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant