The ASPNET_VirtualUserScript type exposes the following members.
Back to Top
Methods
Name | Description | |
---|---|---|
AcceptCancellation |
Called to accept the script response to the requested cancellation. It means this script would have ScriptStatus.Canceleld when afterwards.
If this method is not called and the scipt is successefuly finished, then the status of the script is ScriptStatus.RanToCompletion
(Inherited from VirtualUserScript.) | |
Add |
Merges the specified IDataDictionary into this IDataDictionary.
(Inherited from VirtualUserScript.) | |
ApplyAspNetHiddenFieldsToForm |
Apply all hidden ASP.NET fields to a Form.
| |
ClearAspNetHiddenFields |
Remove all hidden fields for an ASP.NET page
| |
ClearProgressPoint |
Clears the current progress point set for this Virtual User.
(Inherited from VirtualUserScript.) | |
CreateBackgroundScript |
Creates a new background script and starts it if requested.
(Inherited from VirtualUserScript.) | |
EndRequest |
For internal use only.
(Inherited from VirtualUserScript.) | |
EndTiming(String) |
Writes an end timing event to the VU event log.
(Inherited from VirtualUserScript.) | |
EndTiming(String, Boolean) |
Writes an end timing event to the VU event log, specifying whether the timing passed.
(Inherited from VirtualUserScript.) | |
EndTransaction |
Writes an end transaction event to the VU event log, specifying whether the transaction passed,
and specifying a tag which appears in the Info column.
(Inherited from VirtualUserScript.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Error(Exception) |
Writes an error message to the VU event log, which will consist of the details of the specified Exception.
(Inherited from VirtualUserScript.) | |
Error(String) |
Writes an error message to the VU event log.
(Inherited from VirtualUserScript.) | |
Error(String, Exception) |
Writes an error message to the VU event log, which will include the stack trace of the specified Exception.
(Inherited from VirtualUserScript.) | |
Error(String, String) |
Writes an error message to the VU event log, specifying an identifier which appears in the ID column.
(Inherited from VirtualUserScript.) | |
Error(String, String, String) |
Writes an error message and an image link to the VU event log, specifying an identifier which appears in the ID column.
(Inherited from VirtualUserScript.) | |
ExitVU |
Stops execution of this Virtual User.
(Inherited from VirtualUserScript.) | |
ExitVU(Boolean) |
Stops execution of this Virtual User, specifying whether the script completed successfully.
(Inherited from VirtualUserScript.) | |
ExitVU(String, Boolean) |
Stops execution of this Virtual User, specifying whether the script completed successfully and a message to display at the end of the event log.
(Inherited from VirtualUserScript.) | |
Fail |
Writes a fail event to the VU event log.
(Inherited from VirtualUserScript.) | |
FailTiming |
Writes a fail timing event to the VU event log.
(Inherited from VirtualUserScript.) | |
FailTransaction(String) |
Writes a fail transaction event to the VU event log.
(Inherited from VirtualUserScript.) | |
FailTransaction(String, String) |
Writes a fail transaction event to the VU event log, specifying a tag which appears in the Info column.
(Inherited from VirtualUserScript.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FinalSequence |
Stops execution of the current script and then executes the scripts in the final section of the current workflow.
(Inherited from VirtualUserScript.) | |
FinishIterating |
Prevents further iterations of the iterated sequence of scripts for this Virtual User.
(Inherited from VirtualUserScript.) | |
FlushEventLog |
Flushes the event log to disk.
(Inherited from VirtualUserScript.) | |
Get(String) |
Returns a reference to an object held in the dictionary.
(Inherited from VirtualUserScript.) | |
Get(String, Object) |
Returns an object value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
Get T (String, T) |
Returns a reference to an object held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetAspNetHiddenField |
Get the value of a hidden field retrieved from a partial ASP.NET form update.
| |
GetAspNetHiddenFieldNames |
Get a collection containing all of the ASP.NET hidden field names that are currently held by this Virtual User for the specified url.
| |
GetBackgroundScriptStatus |
Returns a status of the given background script
(Inherited from VirtualUserScript.) | |
GetBoolean(String) |
Returns a boolean value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetBoolean(String, Boolean) |
Returns a boolean value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetDataDictionary |
Gets the Data Dictionary named with the specified key and assigned to the Virtual User in eggPlant Performance Studio.
(Inherited from VirtualUserScript.) | |
GetDataTable |
Gets the specified Data Table.
(Inherited from VirtualUserScript.) | |
GetDouble(String) |
Returns a double value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetDouble(String, Double) |
Returns a double value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetEnumerator |
Gets an enumerator for iterating over the key/value pairs in this dictionary.
(Inherited from VirtualUserScript.) | |
GetFloat(String) |
Returns a float value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetFloat(String, Single) |
Returns a float value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetGroupSize |
Gets the number of Virtual Users in the specified Virtual User group.
(Inherited from VirtualUserScript.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInt(String) |
Returns an int value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetInt(String, Int32) |
Returns an int value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetList(String) |
Returns an ArrayList value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetList(String, ArrayList) |
Returns an ArrayList value held in the dictionary, or the defaultList if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetLong(String) |
Returns a long value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetLong(String, Int64) |
Returns a long value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetProtocol |
Gets a Protocol by looking up a string in this Virtual User's data dictionary.
(Inherited from WebBrowserScript.) | |
GetService T |
Get a Service object of the given type.
(Inherited from VirtualUserScript.) | |
GetString(String) |
Returns a string value held in the dictionary.
(Inherited from VirtualUserScript.) | |
GetString(String, String) |
Returns a string value held in the dictionary, or the defaultValue if the key cannot be found.
(Inherited from VirtualUserScript.) | |
GetTimingElapsedTime |
Gets the elapsed time of the current active timing.
(Inherited from VirtualUserScript.) | |
GetTransactionData |
Get data about the specified transaction.
(Inherited from VirtualUserScript.) | |
GetTransactionElapsedTime |
Gets the current elapsed time of the transaction with the specified id and tag.
(Inherited from VirtualUserScript.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUniqueID |
Gets a test-wide unique identifier for a specified Virtual User within a Virtual User group.
(Inherited from VirtualUserScript.) | |
HasKey |
Determines whether the specified key is contained within the dictionary.
(Inherited from VirtualUserScript.) | |
LogCurrentDataValues |
Write all of the current data values to the VU event log
(Inherited from VirtualUserScript.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NextIteration |
Stops execution of the current script, and starts execution of the next iteration.
(Inherited from VirtualUserScript.) | |
NextScript |
Stops execution of the current script, and starts execution of the next script in the sequence.
(Inherited from VirtualUserScript.) | |
NextSequence |
Stops execution of the current script and any other scripts in the current sequence, and starts execution of the next sequence of scripts.
(Inherited from VirtualUserScript.) | |
OnBackgroundScriptCancellation |
Called when the background script executing in a loop is cancelled
(Inherited from VirtualUserScript.) | |
Pause(Int32) |
Pauses the execution of the script for a specified interval (modified by PauseFactor).
(Inherited from VirtualUserScript.) | |
Pause(VirtualUserScript) |
Pauses the execution of the script.
(Inherited from VirtualUserScript.) | |
Pre |
This method is called just before this script is executed for the first time.
(Inherited from VirtualUserScript.) | |
RaiseAlert |
Writes an alert of the specified severity to the Alerts table in Test Controller.
(Inherited from VirtualUserScript.) | |
RecordMetric |
Records a user metric.
(Inherited from VirtualUserScript.) | |
RecordMetrics |
Records multiple user metrics simultaneously.
(Inherited from VirtualUserScript.) | |
RecordTransaction(String, DateTime, TimeSpan, Boolean) |
Records a transaction in the VU event log, specifying whether the transaction passed.
(Inherited from VirtualUserScript.) | |
RecordTransaction(String, Int32, Int32, Boolean) |
Records a transaction in the VU event log, specifying whether the transaction passed.
(Inherited from VirtualUserScript.) | |
RequestToStopBackgroundScript |
Requests currently running background script to stop.
Since it just requests it to stop, the background script must check periodically if it was asked to do so
and gracefully exit when detects it by checking this.ct.IsCancellationRequested flag.
(Inherited from VirtualUserScript.) | |
Resume |
Resumes the background script (which was previously suspended)
(Inherited from VirtualUserScript.) | |
ResumeBackgroundScript |
Resumes currently suspended background script.
(Inherited from VirtualUserScript.) | |
ResumeTransaction |
Resumes the timing of the specified transaction,
identified by tag as well as id.
(Inherited from VirtualUserScript.) | |
Script |
This is the method which will be run by the VirtualUser when it executes this script,
and is where you should write your test script code.
(Inherited from VirtualUserScript.) | |
SelectRandomEntryFromList T |
Selects a random entry from a list stored in this Virtual User's data dictionary.
(Inherited from VirtualUserScript.) | |
Set(String, Object) |
Sets an object value in the dictionary.
(Inherited from VirtualUserScript.) | |
Set T (String, T) |
Sets an object value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetAspNetHiddenField |
Set the value of a hidden field.
| |
SetBoolean |
Sets a boolean value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetDouble |
Sets a double value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetFloat |
Sets a float value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetInt |
Sets an int value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetList |
Sets an ArrayList value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetLong |
Sets a long value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetProgressPoint(String) |
Sets a progress point in the VU event log.
(Inherited from VirtualUserScript.) | |
SetProgressPoint(String, Boolean) |
Sets a progress point in the VU event log, specifying whether the progress point passed.
(Inherited from VirtualUserScript.) | |
SetProgressPoint(String, String, Boolean) |
Sets a progress point in the VU event log, specifying whether the progress point passed,
and specifying extra information which appears in the Info column.
(Inherited from VirtualUserScript.) | |
SetString |
Sets a string value in the dictionary.
(Inherited from VirtualUserScript.) | |
SetSynchronizationPoint |
Set a named synchronization point.
(Inherited from VirtualUserScript.) | |
StartBackgroundScript |
Starts previously created and not started background script
(Inherited from VirtualUserScript.) | |
StartRequest |
For internal use only.
(Inherited from VirtualUserScript.) | |
StartTiming |
Writes a start timing event to the VU event log.
(Inherited from VirtualUserScript.) | |
StartTransaction |
Writes a start transaction event to the VU event log,
specifying a tag which appears in the Info column.
(Inherited from VirtualUserScript.) | |
StopBackgroundScriptImmediately |
Tells the script to stop immediately. It will result in the script terminating if it calls any
API or exits itself by checking this.ct.IsCancellationRequested flag.
Mind that if it does something in a tight loop or made a call to another library
it can take as much time as it needed to finish those operations.
(Inherited from VirtualUserScript.) | |
Suspend |
Asks the background script to suspend
(Inherited from VirtualUserScript.) | |
SuspendBackgroundScript |
Suspends currently executing background script.
(Inherited from VirtualUserScript.) | |
SuspendTransaction |
Suspends the timing of the specified transaction,
identified by tag as well as id.
(Inherited from VirtualUserScript.) | |
TimeToPause |
Gets the length of time that this Virtual User would pause for if Pause(Int32)
were called with the specified interval.
(Inherited from VirtualUserScript.) | |
ToString |
Returns a string representation of the IDataDictionary
belonging to this Virtual User
(Inherited from VirtualUserScript.) | |
TryToSuspend |
Try to suspend a background script. It won't succeed if it is already locked by another script/VU.
(Inherited from VirtualUserScript.) | |
UnsetSynchronizationPoint |
Unset a named synchronization point.
(Inherited from VirtualUserScript.) | |
Verify |
Verifies that a boolean expression is true.
(Inherited from VirtualUserScript.) | |
VerifyEQ(Int32, Int32, Boolean) |
Verifies that two integers are equal.
(Inherited from VirtualUserScript.) | |
VerifyEQ(Int64, Int64, Boolean) |
Verifies that two longs are equal.
(Inherited from VirtualUserScript.) | |
VerifyEQ(Double, Double, Double, Boolean) |
Verifies that two doubles are equal.
(Inherited from VirtualUserScript.) | |
VerifyEQ(String, String, Boolean, Boolean) |
Verifies that two strings are equal.
(Inherited from VirtualUserScript.) | |
VerifyLE(Int32, Int32, Boolean) |
Verifies that one integer is less than or equal to another.
(Inherited from VirtualUserScript.) | |
VerifyLE(Int64, Int64, Boolean) |
Verifies that one long is less than or equal to another.
(Inherited from VirtualUserScript.) | |
VerifyLE(Double, Double, Double, Boolean) |
Verifies that one double is less than or equal to another.
(Inherited from VirtualUserScript.) | |
VerifyLE(String, String, Boolean, Boolean) |
Verifies that one string is less than or equal to another.
(Inherited from VirtualUserScript.) | |
VerifyLT(Int32, Int32, Boolean) |
Verifies that one integer is less than another.
(Inherited from VirtualUserScript.) | |
VerifyLT(Int64, Int64, Boolean) |
Verifies that one long is less than another.
(Inherited from VirtualUserScript.) | |
VerifyLT(Double, Double, Double, Boolean) |
Verifies that one double is less than another.
(Inherited from VirtualUserScript.) | |
VerifyLT(String, String, Boolean, Boolean) |
Verifies that one string is less than another.
(Inherited from VirtualUserScript.) | |
WaitFor T |
Returns a reference to an object stored in the data dictionary. If the object is not yet in the data dictionary, then this method will wait for
up to the timeout for the object to be added. For example, a foreground script may need to wait for a background script to put an object into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForBackgroundScriptToFinish |
Waits for the background script to finish work in the given timeout,
if timeout is not provided or null it waits until the tasks finish (if at all),
if timeout is not null, then it returns false if it expired before the timeout reached.
(Inherited from VirtualUserScript.) | |
WaitForBoolean |
Returns a bool stored in the data dictionary. If the bool is not yet in the data dictionary, then this method will wait for
up to the timeout for the bool to be added. For example, a foreground script may need to wait for a background script to put a bool into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForDouble |
Returns a double stored in the data dictionary. If the double is not yet in the data dictionary, then this method will wait for
up to the timeout for the double to be added. For example, a foreground script may need to wait for a background script to put a double into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForFloat |
Returns a float stored in the data dictionary. If the float is not yet in the data dictionary, then this method will wait for
up to the timeout for the float to be added. For example, a foreground script may need to wait for a background script to put a float into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForInt |
Returns an integer stored in the data dictionary. If the integer is not yet in the data dictionary, then this method will wait for
up to the timeout for the integer to be added. For example, a foreground script may need to wait for a background script to put an integer into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForList |
Returns an ArrayList stored in the data dictionary. If the ArrayList is not yet in the data dictionary, then this method will wait for
up to the timeout for the ArrayList to be added. For example, a foreground script may need to wait for a background script to put an ArrayList into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForLong |
Returns a long stored in the data dictionary. If the long is not yet in the data dictionary, then this method will wait for
up to the timeout for the long to be added. For example, a foreground script may need to wait for a background script to put a long into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForString |
Returns a reference to a string stored in the data dictionary. If the string is not yet in the data dictionary, then this method will wait for
up to the timeout for the string to be added. For example, a foreground script may need to wait for a background script to put a string into
the data dictionary before continuing.
(Inherited from VirtualUserScript.) | |
WaitForSynchronizationPoint(String, Int64) |
Wait for a named synchronization point to be set.
(Inherited from VirtualUserScript.) | |
WaitForSynchronizationPoint(String, TimeSpan) |
Wait for a named synchronization point to be set.
(Inherited from VirtualUserScript.) | |
Warn(Exception) |
Writes a warning message to the VU event log, consisting of the specified exception
(Inherited from VirtualUserScript.) | |
Warn(String) |
Writes a warning message to the VU event log.
(Inherited from VirtualUserScript.) | |
Warn(String, String) |
Writes a warning message to the VU event log, specifying an identifier which appears in the ID column.
(Inherited from VirtualUserScript.) | |
Warn(String, String, String) |
Writes a warning message and an image link to the VU event log, specifying an identifier which appears in the ID column.
(Inherited from VirtualUserScript.) | |
WhereAmI |
Returns a stack trace for this Virtual User.
(Inherited from VirtualUserScript.) | |
WriteMessage(Exception) |
Write an information message to the VU event log, consisting of the exception specified.
(Inherited from VirtualUserScript.) | |
WriteMessage(String) |
Writes an information message to the VU event log.
(Inherited from VirtualUserScript.) | |
WriteMessage(String, String) |
Writes an information message to the VU event log, specifying an identifier which appears in the ID column.
(Inherited from VirtualUserScript.) | |
WriteMessage(String, String, String) |
Writes an information message to the VU event log and also a link to an image, specifying an identifier which appears in the ID column.
(Inherited from VirtualUserScript.) | |
WriteSystemLog(String) |
Writes an alert of Error severity to the Alerts table in Test Controller.
(Inherited from VirtualUserScript.) | |
WriteSystemLog(String, String) |
Writes an alert of Error severity to the Alerts table in Test Controller, specifying a heading to prefix to the message.
(Inherited from VirtualUserScript.) |
See Also