Click or drag to resize

ResponseCondition Class

The condition to determine how service simulation replies.
Inheritance Hierarchy

Namespace:  Hummingbird.TestFramework.Automation.ResponseConditions
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
[SerializableAttribute]
[DataContractAttribute(Namespace = "http://www.hummingbird-alm.com/testframework/201610")]
[XmlIncludeAttribute(typeof(SimpleResponseCondition))]
[XmlIncludeAttribute(typeof(ComplexResponseCondition))]
[KnownTypeAttribute(typeof(SimpleResponseCondition))]
[KnownTypeAttribute(typeof(ComplexResponseCondition))]
public abstract class ResponseCondition

The ResponseCondition type exposes the following members.

Constructors
  NameDescription
Protected methodResponseCondition
Initializes a new instance of the ResponseCondition class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate
Evaluate the condition by using the object provided as below.
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.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodToString(Int32)
show the friendly message of this condition
Top
Extension Methods
  NameDescription
Public Extension MethodToStringOrXml
Converts any Object to string representation in String or XML format.
(Defined by ExtensionMethods.)
Public Extension MethodToXmlString
Converts any Object to string representation in XML format.
(Defined by ExtensionMethods.)
Top
Remarks
As an server stub, we may configure multiple responses, in order to decide which responses is selected and returned to the caller, TestFramework will use this condition. This class describes how the service simulation reacts to a request. If the evaluate method returns True, then the current reply to be chosen and be sent to client. If all the conditions are evaluated as , then the server will reply with Default Response
See Also