🐛 Bug Report
The log4net v2.0.12 is not working in the Visual Studio 2019 V16.11.2.
Environment
- OS: Windows 10
- Selenium version: 4.0.0-rc1
- Language Bindings version: C#
- Visual Studio version: 2019 V16.11.2
- log4net version: 2.0.12
All Things You Should Know About Selenium, REST API, SOAP UI(Groovy), DevOps, UFT/QTP
The log4net v2.0.12 is not working in the Visual Studio 2019 V16.11.2.
Environment
Error Details:
Severity Code Description Project File Line Suppression State
Error The "GenerateFeatureFileCodeBehindTask" task failed unexpectedly.
System.Exception: Error when reading project file. ---> System.Configuration.ConfigurationErrorsException: Unrecognized element 'unitTestProvider'.
at System.Configuration.ConfigurationElement.DeserializeElement(XmlReader reader, Boolean serializeCollectionKey)
at System.Configuration.ConfigurationSection.DeserializeSection(XmlReader reader)
at TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler.CreateFromXml(String xmlContent)
at TechTalk.SpecFlow.Configuration.ConfigurationLoader.Load(SpecFlowConfiguration specFlowConfiguration, ISpecFlowConfigurationHolder specFlowConfigurationHolder)
at TechTalk.SpecFlow.Generator.Configuration.GeneratorConfigurationProvider.LoadConfiguration(SpecFlowConfiguration specFlowConfiguration, SpecFlowConfigurationHolder specFlowConfigurationHolder)
at TechTalk.SpecFlow.Generator.Configuration.GeneratorConfigurationProviderExtensions.LoadConfiguration(IGeneratorConfigurationProvider configurationProvider, SpecFlowConfigurationHolder configurationHolder)
at TechTalk.SpecFlow.Generator.Project.ProjectReader.ReadSpecFlowProject(String projectFilePath, String rootNamespace)
--- End of inner exception stack trace ---
at TechTalk.SpecFlow.Generator.Project.ProjectReader.ReadSpecFlowProject(String projectFilePath, String rootNamespace)
at TechTalk.SpecFlow.Generator.Project.MSBuildProjectReader.LoadSpecFlowProjectFromMsBuild(String projectFilePath, String rootNamespace)
at SpecFlow.Tools.MsBuild.Generation.SpecFlowProjectProvider.GetSpecFlowProject()
at SpecFlow.Tools.MsBuild.Generation.GenerateFeatureFileCodeBehindTaskExecutor.Execute()
at SpecFlow.Tools.MsBuild.Generation.GenerateFeatureFileCodeBehindTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SeleniumWebdriver
Expected behavior :
Environment
I have created a new project and if SpecFlow is installed dependencies mentioned were not installed (such as BoDi and Cucumber.Message) but in old project these were installed individually and the error persist.
Selenium-C#- V 4.0.0-rc1
ExcelDataReader - V 3.7.0-develop00310
ExcelDataReader.DataSet - V 3.7.0-develop00310
Visual Studio - Version 16.11.2
=========================================================================
ExcelDataReader:
Public calss ExcelDataRead
{
public void TestReadExcel()
{
FileStream stream = new FileStream(@"TestCreateBugXlsx.xlsx", FileMode.Open, FileAccess.Read);
ftype = Path.GetExtension(filename);
if (ftype == ".xls")
{
IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
}
else
{
IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream);
}
//To UseHeaderRow or filter the rows
var result = excelReader.AsDataSet(new ExcelDataSetConfiguration()
{
ConfigureDataTable = (_) => new ExcelDataTableConfiguration()
{
UseHeaderRow = true,
FilterRow = rowReader => rowReader.Depth > 1
}
});
DataTable result1 = result.Tables["TestCreateBug"];
}
}
====================================================================
Issues in ExcelDataReader:
1. "excelReader.IsFirstRowAsColumnNames = true;" is not working
2. When the ".xlsb" file is read with the "FilterRow = rowReader => rowReader.Depth > 0" in configuration section, it is not working as expected, even when Filter row is commented out, the same output is generated.
3. When the ".xlsb" file is read, the character "d" is randomly generated
Screenshot:
=================================================================
Excel Data Driven using the Data Source in MSTest:
public class DataDriven
{
private TestContext _testContext;
public TestContext TestContext
{
get { return _testContext; }
set { _testContext = value; }
}
[TestMethod]
[DataSource("System.Data.Odbc", @"Dsn=Excel Files;dbq=CreateBugXlxs.xlsx", "CreateBug$", DataAccessMethod.Sequential)]
public void TestDataDriven()
{
Console.WriteLine(TestContext.DataRow[0].ToString());
Console.WriteLine(TestContext.DataRow[1].ToString());
Console.WriteLine(TestContext.DataRow[2].ToString());
Console.WriteLine(TestContext.DataRow[3].ToString());
Console.WriteLine(TestContext.DataRow[4].ToString());
}
Issues:
1. When the '.xlsb' file is being data driven/read, an additional empty row is being executed or stored
Screenshot:
The below mentioned are the issues in
the Selenium-C#-V"4.0.0-beta4" or in "4.0.0-rc1"
Issues
Selenium - C# -Issues in all latest browsers
Selenium-C#- V 4.0.0-rc1-DesiredCapabilities has been deprecated and henceforth the WinAppDriver is not working
Expected behavior:
DesiredCapabilities should not be deprecated, as it required for automating the WinAppDriver
Environment:
OS: Windows 10
WinAppDriver version: WinAppDriver v1.3 Release Candidate 1 (1.2.99)
Language Bindings version: C#
Selenium version : Selenium-C#- V 4.0.0-rc1
Screenshot: