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" />
<PackageReference Include="DMETestUtility" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=DMETestUtility&version=1.2.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net8.0
- DotNetSeleniumExtras.PageObjects (>= 3.11.0)
- DotNetSeleniumExtras.PageObjects.Core (>= 4.14.1)
- DotNetSeleniumExtras.WaitHelpers (>= 3.11.0)
- IronQR.Slim (>= 2024.12.2)
- Microsoft.Data.SqlClient (>= 6.0.2)
- MSTest.TestAdapter (>= 3.11.0)
- MSTest.TestFramework (>= 3.11.0)
- Newtonsoft.Json (>= 13.0.3)
- NUnit (>= 4.4.0)
- NUnit3TestAdapter (>= 5.1.0)
- PDFsharp (>= 6.2.0)
- PDFsharp-MigraDoc (>= 6.2.0)
- RestSharp (>= 112.1.0)
- Selenium.Support (>= 4.36.0)
- Selenium.WebDriver.ChromeDriver (>= 141.0.7390.5400)
- Selenium.WebDriver.GeckoDriver (>= 0.36.0)
- Selenium.WebDriver.MSEdgeDriver (>= 140.0.3485.94)
- System.Drawing.Common (>= 9.0.3)
- ZXing.Net.Bindings.SkiaSharp (>= 0.16.20)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.