File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
dotnet/test/common/Environment Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2525using System . IO ;
2626using System . Linq ;
2727using System . Runtime . InteropServices ;
28+ using OpenQA . Selenium . Internal . Logging ;
2829
2930namespace OpenQA . Selenium . Environment
3031{
@@ -60,8 +61,13 @@ private EnvironmentManager()
6061
6162 string activeDriverConfig = System . Environment . GetEnvironmentVariable ( "ACTIVE_DRIVER_CONFIG" ) ?? TestContext . Parameters . Get ( "ActiveDriverConfig" , env . ActiveDriverConfig ) ;
6263 string driverServiceLocation = System . Environment . GetEnvironmentVariable ( "DRIVER_SERVICE_LOCATION" ) ?? TestContext . Parameters . Get ( "DriverServiceLocation" , env . DriverServiceLocation ) ;
63-
6464 string browserLocation = System . Environment . GetEnvironmentVariable ( "BROWSER_LOCATION" ) ?? TestContext . Parameters . Get ( "BrowserLocation" , string . Empty ) ;
65+ string enableDebugging = System . Environment . GetEnvironmentVariable ( "DEBUG" ) ?? TestContext . Parameters . Get ( "Debug" , env . Debug ) ;
66+
67+ if ( ! string . IsNullOrEmpty ( enableDebugging ) )
68+ {
69+ Log . SetLevel ( LogEventLevel . Debug ) ;
70+ }
6571
6672 string activeWebsiteConfig = TestContext . Parameters . Get ( "ActiveWebsiteConfig" , env . ActiveWebsiteConfig ) ;
6773 DriverConfig driverConfig = env . DriverConfigs [ activeDriverConfig ] ;
Original file line number Diff line number Diff line change @@ -48,5 +48,8 @@ class TestEnvironment
4848
4949 [ JsonProperty ]
5050 public TestWebServerConfig TestWebServerConfig { get ; set ; }
51+
52+ [ JsonProperty ]
53+ public string Debug { get ; set ; }
5154 }
5255}
You can’t perform that action at this time.
0 commit comments