Utils Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Class to provide simple functions for the rest of the framework.
Inheritance Hierarchy

SystemObject
  ArtOfTest.CommonUtils

Namespace:  ArtOfTest.Common
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public static class Utils

The Utils type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCompress
Compresses a file
Public methodStatic memberCropBitmap(Bitmap, Rectangle)
Cuts a bitmap at the specified cut rectangle.
Public methodStatic memberCropBitmap(Bitmap, RectangleF)
Cuts a bitmap at the specified cut rectangle.
Public methodStatic memberDateTimeToEpoch
A method to convert DateTime to Epoch (number of seconds from 01.01.1970) used in JavaScript
Public methodStatic memberDecompress
Decompresses a previously compressed file
Public methodStatic memberDeleteDirectoryWithFilesAndSubdirectories
Deletes a directory and all its files and subdirectories.
Public methodStatic memberEscapeSingleQuotes
Public methodStatic memberFullDomainName
Public methodStatic memberGenerateHash
Computes the hash of the given string. The default is to use the SHA1 algorithm.
Public methodStatic memberGetDateTimeIntersection
Given two sets of DateTimes return the TimeSpan for which they overlap
Public methodStatic memberGetFirstVisibleControl
Public methodStatic memberGetPrimaryMonitorScale
Public methodStatic memberGetScaleFactorForMonitor
Public methodStatic memberGetSubstitutedFrameInfo
Public methodStatic memberIsVistaOrLater
Public methodStatic memberIsWin7OrLater
Public methodStatic memberJSGetContentWindowHeight
Public methodStatic memberJSGetContentWindowWidth
Public methodStatic memberQueryAssemblyInfo
Public methodStatic memberSwapT
Public methodStatic memberTryEnterRunOnceNamedLock
Top
See Also

Reference