In advanced C# test automation, the __________ pattern helps in managing shared resources across tests.

  • Decorator
  • Factory
  • Observer
  • Singleton
In advanced C# test automation, the Singleton pattern helps in managing shared resources across tests. The Singleton pattern ensures that a class has only one instance and provides a global point of access to that instance. This is useful in test automation scenarios where certain resources, such as a web browser or database connection, need to be shared across multiple test cases without creating unnecessary instances.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *