Click or drag to resize

LoadTestCase Class

The base load test scenario.
Inheritance Hierarchy

Namespace:  Hummingbird.TestFramework.Automation
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
[DataContractAttribute(Namespace = "http://www.hummingbird-alm.com/testframework/201610")]
public class LoadTestCase : TestCase, 
	IPerformanceCounters

The LoadTestCase type exposes the following members.

Constructors
  NameDescription
Public methodLoadTestCase
Initializes a new instance of the LoadTestCase class.
Top
Properties
  NameDescription
Public property_iterationsExpected
Gets or sets the total iterations expected at the moment X
Public property_iterationsIgnored
Gets or sets the cycles ignored.
Public property_iterationsLaunched
Gets or sets the total iterations have been launched during the test at the moment X
Public propertyActualLoadGraph
Gets or sets the actual load graph for the last execution, it can be compared to theoretic load.
Public propertyContext
Gets or sets the test case level Context values. The context is dispatched by the automation engine, and is read-only outside of the Test Cases.
(Inherited from AbstractTestItem.)
Public propertyCPUUsage
Gets or sets the cpu usage measurement of the last execution
Public propertyCustomVariables
Gets a list of custom variables defined by the user. These variables will be saved with the project. and will be replaced if necessary. CustomVariables are more priority than variables in Variables, if an variable of the same name exists both in CustomVariables and Variables, the value of that in CustomVarialbes will return.
(Inherited from AbstractTestItem.)
Public propertyDelay
Gets or sets the delay to start the test execution.
Public propertyDescription
Gets or sets the Description of the current AbstractTestItem
(Inherited from AbstractTestItem.)
Public propertyDisplayMessage
Gets or sets the information can be shown to the user
(Inherited from AbstractTestItem.)
Public propertyDuration
Gets or sets the duration in number of the second where this test scenario will last.
Public propertyElapsedTime
A DateTime object indicates the time when current steps finishes. EndTime is set by the test framework after the Checkpoint method has finishes. If the test step goes wrong, EndTime will be set when the error occurs.
(Inherited from AbstractTestItem.)
Public propertyExpectedLoad
Gets or sets the expected number of iterations per second during the performance testing
Public propertyId
Gets or sets the unique identifier of the TestCase.
(Inherited from AbstractTestItem.)
Public propertyIsDisabled
Gets or sets whether the current test item is disabled.
(Inherited from AbstractTestItem.)
Public propertyIsExpanded
Gets or sets a value indicating whether this item is extended in its Visual Tree.
(Inherited from AbstractTestItem.)
Public propertyIterationExecutionTime
Gets or sets the iteration execution time during the last execution.
Public propertyIterationPassRate
Gets or sets the iteration pass rate during the last execution
Public propertyLoadTestLogLevel
Gets or sets the level of log details in a performance test report
Public propertyMaxMesurePoints
Gets or sets the number of measure points to calculate performance counters;
Public propertyMemoryUsage
Gets or sets the memory usag measurement during the last execution
Public propertyName
Gets or sets the name of this Test Case
(Inherited from AbstractTestItem.)
Public propertyOnErrorBehavior
Gets or sets the behavior of Automation Engine when the current test case fails
(Inherited from TestCase.)
Public propertyPerformanceThresholds
Gets or sets the performance thresholds of the current load test
Public propertyProgress
Gets or sets the progress of the current test item (Test suite or test case)
(Inherited from AbstractTestItem.)
Public propertyRampUpTime
Gets or sets the time of ramp up in seconds that passes from 0 to expected load.
Public propertyScenarioStatus
Gets the status of the current performance test scenario
Public propertyServiceNames
Gets or sets the service names dictionary
Public propertyServicePassrate
Gets or sets the pass rate operation by operation during the last execution. Only request operations are measured.
Public propertyServiceResponseTime
Gets or sets the service response time.
Public propertyStartTime
A DateTime object indicates the time when current steps starts to run. StartTime is set by the test framework when the Run method has been called.
(Inherited from AbstractTestItem.)
Public propertyStatus
Status of the current test item (TestSuite, TestCase or TestStep). Automation framework will mark Result = Running when entering the current item. If Result has not been changed in Run() and Checkpoint() method, it will be marked as Passed.

You must assign Errors, Warning if it happens within Run and Checkpoint method.

(Inherited from AbstractTestItem.)
Public propertySteps
Gets or sets a list of Test Steps. The test steps will be executed
(Inherited from TestCase.)
Public propertyTestStepCount
Gets the count of test steps
(Inherited from TestCase.)
Public propertyTestSuite
Gets or sets the referenced test suite.
(Inherited from TestCase.)
Public propertyVariables
Gets or sets the variables in the current test scope (Test Step, Test Case or Test Suite).
(Inherited from AbstractTestItem.)
Top
Methods
  NameDescription
Public methodCheckParameters
Checks the validity of test parameters.
Public methodCompare
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
(Inherited from AbstractTestItem.)
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from AbstractTestItem.)
Public methodDeleteItem
Deletes an sub item from the current scope. for Test Case, the item is test Step, For Test Suite, the item is test case, ...
(Inherited from TestCase.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from AbstractTestItem.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Overrides TestCaseDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodEvaluateThreshold
Evaluates the performance threshold from the given definition.
Protected methodEvaluateThresholds
Evaluates the performance thresholds.
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 methodGetActualIterationPassrate
Gets the average pass rate of Iterations.
Public methodGetCPUUsage
Gets the CPU usage.
Public methodGetCurrentActualLoad
Gets the current actual load (Iterations/second) of the current running performance test scenario. This indicator will ignore any iteration ignored by the limitation by max number of threads.
Public methodGetCurrentExpectedLoad
Gets the current load (Iterations/second) of the current running performance test scenario.
Protected methodGetEndTime
Gets the end time of the test depends on the specified start time.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetIterationCycleTime
Gets the iteration cycle time.
Public methodGetIterationPassrate
Gets the iteration pass rate.
Public methodGetIterationsFailed
Gets number of total Iterations failed.
Public methodGetIterationsFinished
Gets number of total Iterations finished.
Public methodGetIterationsIgnored
Gets the number of the iterations ignored due to cumulation of the running threads.
Public methodGetIterationsRunning
Gets the number of the iterations started but bot yet finished. to improve the performance when the queued cycle is larger than the maximum number, Load generator will not generate loads.
Protected methodGetLoad
Gets the number of iterations should be run at the current time.
Public methodGetLoadGraph
Gets the expect load graph measure points. That graph can be shown as a simulation of the loads
Public methodGetMeasureInterval
Gets the measure interval in milliseconds of the executing load test
Public methodGetMemoryUsage
Gets the memory usage.
Public methodGetProgress
Gets the progress of execution.
Public methodGetScenarioStatus
Gets the execution status of the actual performance test scenario
Public methodGetServicePassrate
Gets the service pass rate.
Public methodGetServiceResponseTime
Gets the service response time.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVariable
Gets the variable from the given context.
(Inherited from AbstractTestItem.)
Public methodGetVariables
Gets All variables available for the current test scope.
(Inherited from AbstractTestItem.)
Public methodInitStatus
Initializes the status of the Test Case
(Overrides AbstractTestItemInitStatus.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveDown
Moves down a test item in its parent items collections
(Inherited from AbstractTestItem.)
Public methodMoveToBottom
Moves to bottom a test item in its parent items collections
(Inherited from AbstractTestItem.)
Public methodMoveToTop
Moves on top a test item in its parent items collection.
(Inherited from AbstractTestItem.)
Public methodMoveUp
Moves up a test item in its parent items collection.
(Inherited from AbstractTestItem.)
Protected methodOnPropertyChanged
Called when property value has changed.
(Inherited from AbstractTestItem.)
Public methodRun
Runs this performance test scenario
(Overrides TestCaseRun(Int64, Profile).)
Public methodToString
Returns a String that represents this instance.
(Overrides TestCaseToString.)
Public methodUpdateId
Updates the identifier.
(Overrides TestCaseUpdateId.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when the test case properties has been changed.
(Inherited from AbstractTestItem.)
Top
Fields
  NameDescription
Protected field_currentActualLoad
local variable to hold the current actual load as number of iterations per second.
Protected field_currentExpectedLoad
local variable to hold the current expected load as number of iterations per second.
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