Sets a progress point in the VU event log, specifying whether the progress point passed.
Namespace: Facilita.Fc.RuntimeAssembly: fc_clr (in fc_clr.dll) Version: 9.5.7.98
public void SetProgressPoint(
string progressPoint,
bool pass
)
public void SetProgressPoint(
string progressPoint,
bool pass
)
Parameters
- progressPoint
- Type: System String
The progress point identifier, which will appear in the Progress Point column in Test Controller.
- pass
- Type: System Boolean
true if the progress point should be interpreted as a pass; otherwise, false.
A progress point can be used to indicate that the execution of a script has reached a certain point, or that the application under test is in a certain state.
The
progressPoint text, and whether it
passed or
failed will be written to the VU event log, and will appear in Test Controller summary views during the test.
The following example demonstrates setting a progress point to indicate that a logon attempt has taken place, and whether it succeeded or failed.
SetProgressPoint("AtLogon");
string response = ....
if (response.Contains("Invalid User or Password"))
{
SetProgressPoint("logon", false);
}
else
{
SetProgressPoint("logon", true);
}
SetProgressPoint("AtLogon");
string response = .... // the response from the server
if (response.Contains("Invalid User or Password"))
{
SetProgressPoint("logon", false); // logon failed
}
else
{
SetProgressPoint("logon", true); // logon OK
}