DMETestUtility 1.2.1.3

dotnet add package DMETestUtility --version 1.2.1.3
                    
NuGet\Install-Package DMETestUtility -Version 1.2.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DMETestUtility" Version="1.2.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DMETestUtility" Version="1.2.1.3" />
                    
Directory.Packages.props
<PackageReference Include="DMETestUtility" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DMETestUtility --version 1.2.1.3
                    
#r "nuget: DMETestUtility, 1.2.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DMETestUtility@1.2.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DMETestUtility&version=1.2.1.3
                    
Install as a Cake Addin
#tool nuget:?package=DMETestUtility&version=1.2.1.3
                    
Install as a Cake Tool

DMETestUtility

Library with utility methods for autotest development speedup and QOL

Classes

  • DriverManager
  • Logger
  • SQLHandler
  • Utility

Installation

Installation from Nuget

  dotnet add package DMETestUtility 
  using DMETestUtility
  using DMETestUtility.Logger
  using DMETestUtility.Drivers

To begin work with library you need to install a Selenium libraries for related drivers

  dotnet add package Selenium.WebDriver.ChromeDriver 
  dotnet add package Selenium.WebDriver.GeckoDriver 
  dotnet add package Selenium.WebDriver.MSEdgeDriver 

Usage

Webdriver initialisation

using DMETestUtility.Drivers
using DMETestUtility

public TestLogger Logs = new TestLogger();

DriverManager _driver = new DriverManager()
    {
        browser = chrome/firefox/edge,
        Logs = this.Logs,
        _url = "https://url.com"
        windowSize = "1900, 1600",
    };
///
LoadTimeSpanMin - Wait time for page load in minutes 
WaitTimeSec - Implicit wait for web elements locators
///
_webDriver = _driver.DriverInitialise(int LoadTimeSpanMin, int WaitTimeSec);

Logs method

using DMETestUtility.Logger
using DMETestUtility

public TestLogger Logs = new TestLogger();

///
This metods puts a message in a queue
///
Logs.AddLog(string message)
Logs.AddWarningLog(string message)
Logs.AddErrorLog(Exception exception)

///
This method creates a folder Logs in MyDocs directory and writs down a messages from the queue in file passed in the params of this method or Logs.txt by default
///
Logs.WriteLogToFile(string logfilename)

Database connection method

using DMETestUtility
///
Params: 
1) string dataSource - Database server
2) string userId - Username for connection
3) string password - Password for user
4) string catalog - Database where expression is executed 
5) bool trustCertificate - SSL certificate trust
///
SqlHandler sqlHandler = new(dataSource, userId, password, catalog, trustCertificate);
string expression = $"expression";
sqlHandler._catalog = "Database catalog";
sqlHandler._expression = expression;
string _connectionString = sqlHandler.BuildConnectionString();
SqlDataReader _dataReader = sqlHandler.SqlConnect(_connectionString);
/// 
Second parameter is index from which column data is taken
///
List<object> _keys = sqlHandler.RetrieveInfo(_dataReader, 1);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1.3 61 10/7/2025
1.2.1.1 62 10/7/2025
1.2.1 64 10/7/2025
1.2.0 60 10/7/2025
1.1.1 180 8/13/2025