![]() |
VOOZH | about |
dotnet add package DMETestUtility --version 1.2.2
NuGet\Install-Package DMETestUtility -Version 1.2.2
<PackageReference Include="DMETestUtility" Version="1.2.2" />
<PackageVersion Include="DMETestUtility" Version="1.2.2" />Directory.Packages.props
<PackageReference Include="DMETestUtility" />Project file
paket add DMETestUtility --version 1.2.2
#r "nuget: DMETestUtility, 1.2.2"
#:package DMETestUtility@1.2.2
#addin nuget:?package=DMETestUtility&version=1.2.2Install as a Cake Addin
#tool nuget:?package=DMETestUtility&version=1.2.2Install as a Cake Tool
Library with utility methods for autotest development speedup and QOL
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
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 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.