When the Selenium script is run with EndUserExperience mode, the below stacktrace is thrown:
System.NullReferenceException occurred
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=nunit.framework
StackTrace:
at NUnit.Framework.TestContext.get_Test()
at NeoLoadSelenium.neoload.config.ConfigurationHelper.getUnitTestName()
at NeoLoadSelenium.neoload.interceptor.EUEEntryHandler.GetScriptName(String scriptName)
at NeoLoadSelenium.neoload.interceptor.EUEEntryHandler.NewPath(EUEConfiguration conf)
Copy the below line in the C# code, just before instanciating the NeoLoad web driver:
Environment.SetEnvironmentVariable("nl.script.name", "myScriptName");