Settings Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Class representing the settings to be used when initializing the framework.
Inheritance Hierarchy

SystemObject
  ArtOfTest.WebAii.CoreSettings

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

[SerializableAttribute]
public class Settings

The Settings type exposes the following members.

Constructors

  NameDescription
Public methodSettings
Create a new Settings object.
Public methodSettings(Settings)
Create a clone of the passed in settings
Public methodSettings(SettingsConfigSectionHandler)
Create a new Settings object from a config section.
Public methodSettings(SettingsWebSettings, SettingsWpfSettings)
Create a new Settings object.
Top
Properties

  NameDescription
Public propertyAnnotateExecution
Gets/Sets whether to highlight/annotate the target elements that action is being executed against. Default is false.
Public propertyAnnotationMode
Gets/Sets the annotation mode when annotation is enabled. Default is All.
Public propertyClientReadyTimeout
Gets/Sets timeout used to wait for a client to be ready after initial launch and after executing a command. (msec.). Default is 20000 msec.
Public propertyCreateLogFile
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
Public propertyStatic memberCurrent
The current settings object.
Public propertyCurrentVersion
Used for serialization purposes
Public propertyDisableDialogMonitoring
Disable handling of dialog windows. Default value is false.
Public propertyElementWaitTimeout
Gets/Sets the global wait on elements timeout that will be used during execution.
Public propertyExecuteCommandTimeout
Gets/Sets The timeout to wait for a command request to execute. (msec.). Default is 30000 msec.
Public propertyExecuteInDevelopmentTests
Gets/Sets the execute In Development tests. By default skip execution of In Development tests.
Public propertyExecutionDelay
Gets/Sets an execution delay in between commands. This can help in observing test execution. Default is zero.
Public propertyStatic memberIs64BitOS
Whether or not we're a 32-bit app running on a 64 bit OS
Public propertyIsUserInteractiveMode
Gets whether the test is running in a user interactive mode or as non-user interactive.
Public propertyLogAnnotations
Gets/Sets whether or not to log annotations to the log file. Default is false.
Public propertyLogLocation
Gets/Sets the location where to perform all the logging. Default is C:\WebAiiLog\.
Public propertyQueryEventLogErrorsOnExit
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.
Public propertyRootName
Used for serialization purposes
Public propertyRunnerResponseTimeout
Gets/sets the timeout (how long to wait in msec.) for a response from ArtOfTest.Runner
Public propertySimulatedMouseMoveSpeed
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
Public propertyUnexpectedDialogAction
Gets/Sets the action of the DialogMonitor when unexpected dialog is encountered.
Public propertyWaitCheckInterval
Gets/Sets the interval in msec. to use between checks for all the WaitForxx methods. Default is 500 msec.
Public propertyWeb
Container for all web specific settings
Public propertyWpf
Container for all wpf specific settings
Public propertyXmlBlob
Used for serialization purposes
Public propertyXMultiMgr
Gets/Sets whether or not to use WebAii 1.1 style connections. Default is false.
Top
Methods

  NameDescription
Public methodClone
Clone the existing settings
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadFrom
Used for serialization purposes
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPersistToConfigSection
Persist current Settings to a section handler.
Public methodCode exampleReset
Resets all settings to the default system settings of the infrastructure.
Examples

The following are the system default settings: 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 recycleBrowser=false enableSilverlight=false useHttpProxy=false verboseHttpProxy=false SilverlightConnectTimeout=60000msec
Public methodSaveTo
This class should be serialized via DCS or JSON.net
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validate the settings.
Top
Fields

  NameDescription
Public fieldStatic memberObsoleteProperties
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
Top
See Also

Reference