ClassSettings
Class representing the settings to be used when initializing the framework.
Definition
Namespace:ArtOfTest.WebAii.Core
Assembly:ArtOfTest.WebAii.dll
Syntax:
[DataContract]
public class Settings
Inheritance: objectSettings
Constructors
Settings(Settings)
Create a clone of the passed in settings
Declaration
public Settings(Settings settingsToClone)
Parameters
settingsToClone
Settings(SettingsConfigSectionHandler)
Create a new Settings object from a config section.
Declaration
public Settings(SettingsConfigSectionHandler sectionHandler)
Parameters
sectionHandler
The config section handler that contains the settings.
Settings(WebSettings, WpfSettings)
Create a new instance of Settings class.
Declaration
public Settings(Settings.WebSettings webSettings, Settings.WpfSettings wpfSettings)
Parameters
webSettings
Web settings
wpfSettings
WPF settings
Settings(WebSettings, WpfSettings, ResponsiveWebSettings)
Create a new instance of Settings class.
Declaration
public Settings(Settings.WebSettings webSettings, Settings.WpfSettings wpfSettings, Settings.ResponsiveWebSettings responsiveWebSettings)
Parameters
webSettings
Web settings
wpfSettings
WPF settings
responsiveWebSettings
Settings.ResponsiveWebSettings
Responsive web settings
Settings(WebSettings, WpfSettings, ResponsiveWebSettings, DesktopSettings)
Create a new instance of Settings class.
Declaration
public Settings(Settings.WebSettings webSettings, Settings.WpfSettings wpfSettings, Settings.ResponsiveWebSettings responsiveWebSettings, Settings.DesktopSettings desktopSettings)
Parameters
webSettings
Web settings
wpfSettings
WPF settings
responsiveWebSettings
Settings.ResponsiveWebSettings
Responsive web settings
desktopSettings
Desktop settings
Fields
ObsoleteProperties
XmlSerializer won't deserialize properties marked as Obsolete So we'll keep a list here of all our obsolete properties, for use when encountering an UnknownElement during Deserialization
Declaration
public static readonly Dictionary<string, Type> ObsoleteProperties
Field Value
Properties
AnnotateExecution
Gets/Sets whether to highlight/annotate the target elements that action is being executed against. Default is false.
Declaration
[DataMember]
public bool AnnotateExecution { get; set; }
Property Value
AnnotationMode
Gets/Sets the annotation mode when annotation is enabled. Default is All.
Declaration
[DataMember]
public AnnotationMode AnnotationMode { get; set; }
Property Value
ClientReadyTimeout
Gets/Sets timeout used to wait for a client to be ready after initial launch and after executing a command. (msec.). Default is 60000 msec.
Declaration
[DataMember]
public int ClientReadyTimeout { get; set; }
Property Value
CreateLogFile
Gets or sets whether or not to create a log file on disk. This value is read once at initialization time. Changing this value during test execution has no effect. Default is true
Declaration
[DataMember]
public bool CreateLogFile { get; set; }
Property Value
Current
The current settings object.
Desktop
Container for all desktop specific settings
Declaration
[Browsable(false)]
[DataMember]
public Settings.DesktopSettings Desktop { get; set; }
Property Value
DisableDialogMonitoring
Disable handling of dialog windows. Default value is false.
Declaration
[DataMember]
public bool DisableDialogMonitoring { get; set; }
Property Value
ElementImageSearchDelay
Gets/sets delay before searching element image.
Declaration
[DataMember]
public int ElementImageSearchDelay { get; set; }
Property Value
ElementImageSearchTimeout
Gets/sets timeout for finding elements by image.
Declaration
[DataMember]
public int ElementImageSearchTimeout { get; set; }
Property Value
ElementWaitTimeout
Gets/Sets the global wait on elements timeout that will be used during execution.
Declaration
[DataMember]
public int ElementWaitTimeout { get; set; }
Property Value
EnableImageSearch
Gets/sets whether image search is enabled or not.
Declaration
[DataMember]
public bool EnableImageSearch { get; set; }
Property Value
ExecuteCommandTimeout
Gets/Sets The timeout to wait for a command request to execute. (msec.). Default is 30000 msec.
Declaration
[DataMember]
public int ExecuteCommandTimeout { get; set; }
Property Value
ExecuteInDevelopmentTests
Gets/Sets the execute In Development tests. By default skip execution of In Development tests.
Declaration
[DataMember]
public bool ExecuteInDevelopmentTests { get; set; }
Property Value
ExecutionDelay
Gets/Sets an execution delay in between commands. This can help in observing test execution. Default is zero.
Declaration
[DataMember]
public int ExecutionDelay { get; set; }
Property Value
Is64BitOS
Whether or not we're a 32-bit app running on a 64 bit OS
IsUserInteractiveMode
Gets whether the test is running in a user interactive mode or as non-user interactive.
Declaration
[Browsable(false)]
public bool IsUserInteractiveMode { get; }
Property Value
LogAnnotations
Gets/Sets whether or not to log annotations to the log file. Default is false.
Declaration
[DataMember]
public bool LogAnnotations { get; set; }
Property Value
LogLocation
Gets/Sets the location where to perform all the logging. Default is C:\WebAiiLog.
Declaration
[DataMember]
public string LogLocation { get; set; }
Property Value
QueryEventLogErrorsOnExit
Gets/Sets whether to query the event log on manager exit for any error logged from automation clients. Any errors will be logged to the test log. Default is false.
Declaration
[Browsable(false)]
[DataMember]
public bool QueryEventLogErrorsOnExit { get; set; }
Property Value
RecordingCodec
Gets/Sets the screen recording codec. Default is MJPEG.
Declaration
[DataMember]
public RecordingCodec RecordingCodec { get; set; }
Property Value
RecordingFPS
Gets/Sets the screen recording scale. Default is 100%.
RecordingMode
Gets/Sets the screen recording mode. Default is Off.
Declaration
[DataMember]
public RecordingMode RecordingMode { get; set; }
Property Value
RecordingOutputLocation
Gets/Sets the screen recording scale. Default is 100%.
Declaration
[DataMember]
public string RecordingOutputLocation { get; set; }
Property Value
RecordingScale
Gets/Sets the screen recording scale. Default is 100%.
Declaration
[DataMember]
public int RecordingScale { get; set; }
Property Value
RecordingSizeLimit
Gets/Sets the screen recording size limit. Default is 0 (unlimited).
Declaration
[DataMember]
public int RecordingSizeLimit { get; set; }
Property Value
RerunFailedTests
Gets/Sets an auto rerun failed test. This enables auto rerun tests when the test list is finished and some of the tests are failed. Default is false.
Declaration
[DataMember]
public bool RerunFailedTests { get; set; }
Property Value
ResponsiveWeb
Responsive web settings.
Declaration
[Browsable(false)]
[DataMember]
public Settings.ResponsiveWebSettings ResponsiveWeb { get; set; }
Property Value
RunnerResponseTimeout
Gets/sets the timeout (how long to wait in msec.) for a response from ArtOfTest.Runner
Declaration
[DataMember]
public double RunnerResponseTimeout { get; set; }
Property Value
ScrollOnImageSearch
Use scrolling when searching by image.
Declaration
[DataMember]
public bool ScrollOnImageSearch { get; set; }
Property Value
SearchByImageFirst
Gets/Sets the global search by image first.
Declaration
[DataMember]
public bool SearchByImageFirst { get; set; }
Property Value
SimulatedMouseMoveSpeed
Gets/Sets the simulated mouse move speed for Desktop.Mouse.Move()/DragDrop() operations in pixels/msec. [Typically between 0.1f - .5f] Default is 0.3f
Declaration
[DataMember]
public float SimulatedMouseMoveSpeed { get; set; }
Property Value
TelerikComponentsVersion
The Telerik Components version to use
Declaration
[DataMember]
public TelerikComponentsVersion TelerikComponentsVersion { get; set; }
Property Value
UnexpectedDialogAction
Gets/Sets the action of the DialogMonitor when unexpected dialog is encountered.
Declaration
[DataMember]
public UnexpectedDialogAction UnexpectedDialogAction { get; set; }
Property Value
WaitCheckInterval
Gets/Sets the interval in msec. to use between checks for all the WaitForxx methods. Default is 500 msec.
Declaration
[DataMember]
public int WaitCheckInterval { get; set; }
Property Value
Web
Container for all web specific settings
Declaration
[Browsable(false)]
[DataMember]
public Settings.WebSettings Web { get; set; }
Property Value
Wpf
Container for all wpf specific settings
Declaration
[Browsable(false)]
[DataMember]
public Settings.WpfSettings Wpf { get; set; }
Property Value
Methods
Clone()
Clone the existing settings
PersistToConfigSection(SettingsConfigSectionHandler)
Persist current Settings to a section handler.
Declaration
public void PersistToConfigSection(SettingsConfigSectionHandler sectionHandler)
Parameters
sectionHandler
Reset()
Resets all settings to the default system settings of the infrastructure.
DefaultBrowser=InternetExplorer ClientReadyTimeout=30000 ExecutionCommandTimeout=20000 LogLocation='C:\WebAiiLog' WebAppPhysicalPath="" EnableScriptLogging=false QueryEventLogErrorsOnExit=false LocalWebServer=LocalWebServerType.None EnableUILessRequestViewing=false BaseUrl="" ExecutionDelay=0 AnnotateExecution=false SimulatedMouseMoveSpeed=0.3f waitCheckInterval=500 aspNetDevServer=-1 annotationMode=All logAnnotations=false createLogFile=true killBrowserProcessOnClose=false killBrowsersBeforeStart=false recycleBrowser=false enableSilverlight=false useHttpProxy=false verboseHttpProxy=false SilverlightConnectTimeout=60000msec RecordingMode=Off RecordingCodec=MJPEG RecordingScale=100
Declaration
public void Reset()