Skip to end of metadata
Go to start of metadata

The main component interface. All components must implement the StresStimulus.Extensibility.IExternalComponent2 interface. It has the following interface definition:

IExternalComponent Members
/// <summary>
/// Interface to handle test events. Must have a no argument - constructor.
/// </summary>
public interface IExternalComponent2
{
    /// <summary>
    /// Fired when test started.
    /// </summary>
    void OnTestStart();
    /// <summary>
    /// Fired when test ends.
    /// </summary>
    void OnTestEnd();
    /// <summary>
    /// Returns true if OnRequestInitialize, OnBeforeRequest, OnBeforeResponse, OnAfterResponse will be invoked for all sessions in the test. Return false if those methods will be invoked only for specified sessions.
    /// </summary>
    bool InvokeForAllSessions { get; }
    /// <summary>
    /// Fired before a request is initialized.
    /// </summary>
    /// <param name="session">The session object</param>
    void OnRequestInitialize(RuntimeSession session);
    /// <summary>
    /// Fired before a request is sent.
    /// </summary>
    /// <param name="session">The session object</param>
    void OnBeforeRequest(RuntimeSession session);
    /// <summary>
    /// Fired after a response is received but before processed.
    /// </summary>
    /// <param name="session">The session object</param>
    void OnBeforeResponse(RuntimeSession session);
    /// <summary>
    /// Fired after a response is received.
    /// </summary>
    /// <param name="session">The session object</param>
    void OnAfterResponse(RuntimeSession session);
    /// <summary>
    /// Fired before iteration starts
    /// </summary>
    /// <param name="vu">The vu object</param>
    void OnBeforeIteration(RuntimeVU vu);
    /// <summary>
    /// Fired after iteration is complete
    /// </summary>
    /// <param name="vu">The vu object</param>
    void OnAfterIteration(RuntimeVU vu);
}
  • No labels