Commit Graph

4 Commits

Author SHA1 Message Date
e93eb5fe84 Enhance CommandLine and TestConfiguration for improved option validation and logging
* Added validation for required command line options in the `CommandLine` class to ensure necessary parameters are provided.
* Updated `TestConfiguration` to store and expose the logging level from command line options.
* Refactored `BrowserstackApi` to improve method naming and added content type headers for API requests.
* Changed `SupportedBrowser` type to be exported for better accessibility.
* Updated `Page` and `SubscribingPage` classes to use a consistent browser import and improved constructor parameters.
2025-08-18 22:07:37 -04:00
f3ecb8c35b clean up 2025-08-18 21:51:28 -04:00
3875b3878d Refactor logging level handling and remove example usage
* Updated `CommandLineOptions` and `ConfigurationObject` to use `LoggingLevel` type instead of string for log levels.
* Modified `LoggerFactory` to set logging levels using the new `LoggingLevelMapping` methods.
* Removed the `example-usage.ts` file as it was no longer needed.
* Adjusted `Threshold` class to simplify logging level management.
2025-08-18 18:22:38 -04:00
9e063550c2 Add Browserstack API integration and supported browser type
* Created `BrowserstackApi` class for interacting with the Browserstack API, including a method to fetch supported browsers.
* Introduced `SupportedBrowser` type to define the structure of browser data returned from the API.
* Updated `TestRunner` to instantiate and run the test execution process, enabling command line options logging.
2025-08-18 18:05:29 -04:00