Click or drag to resize

ContainsAssertion Class

Checks if a text occurs within the Request or Response.
Inheritance Hierarchy

Namespace:  Hummingbird.TestFramework.Automation.Assertions
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
[SerializableAttribute]
[DataContractAttribute(Namespace = "http://www.hummingbird-alm.com/testframework/201610")]
[ImageSourceAttribute(ImageSource = "/Images/Icons/contains.png")]
public class ContainsAssertion : AbstractValueCompareAssertion

The ContainsAssertion type exposes the following members.

Constructors
  NameDescription
Public methodContainsAssertion
Initializes a new instance of the ContainsAssertion class
Top
Properties
  NameDescription
Public propertyExpectedResult
Gets or sets the Expected Result.
(Inherited from AbstractValueCompareAssertion.)
Public propertyId
Gets or sets the identifier of the assertion
(Inherited from AbstractAssertion.)
Public propertyInformation
Gets or sets the information, error message related to the assertion.
(Inherited from AbstractAssertion.)
Public propertyInformationString
Gets the information in it's String representation.
(Inherited from AbstractAssertion.)
Public propertyIsCaseSensitive
Gets or sets a value indicating whether the result matching is case sensitive.
(Inherited from AbstractValueCompareAssertion.)
Public propertyIsDisabled
Gets or sets whether the current test item is disabled.
(Inherited from AbstractAssertion.)
Public propertyMessagePart
Gets or sets in which part the assertion will work on.
(Inherited from AbstractValueCompareAssertion.)
Public propertyName
Gets or sets the name of the assertion
(Inherited from AbstractAssertion.)
Public propertyPattern
Gets or sets the pattern to search in the given Request or Response
Public propertyResult
Gets the result which compared to Expected Result
(Inherited from AbstractValueCompareAssertion.)
Public propertyStatus
Gets or sets the Status of the current Assertion.
(Inherited from AbstractAssertion.)
Public propertyUseRegularExpression
Gets or sets a value indicating whether to use Regular Expression for result comparing
(Inherited from AbstractValueCompareAssertion.)
Top
Methods
  NameDescription
Public methodAssert
Asserts the specified test step. The assertion result is stored in the Status property.
(Inherited from AbstractAssertion.)
Public methodClone
Clones this instance.
(Inherited from AbstractAssertion.)
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.)
Protected methodGenerateName
Generates the name of the Assertion.
(Overrides AbstractAssertionGenerateName.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInternalAssert
Asserts the specified test step.
(Overrides AbstractAssertionInternalAssert(TestStepBase).)
Protected methodInternalContains
Internals method to find if the searchPattern is found in the given context. NotContainsAssertion use also this method but reverse the test result.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnPropertyChanged
Notifies the property changed.
(Inherited from AbstractAssertion.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when some property values has changed.
(Inherited from AbstractAssertion.)
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
See Also