Get the list of Citrix Events that have occurred.
Namespace: Facilita.Fc.CitrixAssembly: fcCitrix (in fcCitrix.dll) Version: 9.5.7.98
public IList<CitrixEvent> OccurredEvents { get; }
When the underlying Citrix object raises an event it is appended to the OccurredEvents list. The WaitForEvent call with return when the required event appears on this list,
and any matching event removed from the list.
The list is cleared at the end of each iteration or when ClearEvents is called.
Examining this list will show exactly what events are available to be matched. This is useful when WaitForEvent is failing to match on an expected event.
ClearEvents();
TypeText("{ENTER}", 10);
Pause(5000);
foreach (CitrixEvent ev in this.OccurredEvents)
WriteMessage("CitrixEvent", ev.ToString());
ClearEvents();
TypeText("{ENTER}", 10);
try
{
WaitForEvent(new CitrixEvent(CitrixEventType.WindowCreate, @"Home Page - Windows Internet Explorer"));
}
catch (Facilita.Exception.TimeoutException)
{
Warn("Timeout waiting for event");
foreach (CitrixEvent ev in this.OccurredEvents)
WriteMessage("CitrixEvent", ev.ToString());
}
ClearEvents();
TypeText("{ENTER}", 10); // perform a UI action
Pause(5000);
// Display the list of new events
foreach (CitrixEvent ev in this.OccurredEvents)
WriteMessage("CitrixEvent", ev.ToString());
ClearEvents();
TypeText("{ENTER}", 10); // perform a UI action
try
{
WaitForEvent(new CitrixEvent(CitrixEventType.WindowCreate, @"Home Page - Windows Internet Explorer"));
}
catch (Facilita.Exception.TimeoutException)
{
Warn("Timeout waiting for event");
// Display the list of new events
foreach (CitrixEvent ev in this.OccurredEvents)
WriteMessage("CitrixEvent", ev.ToString());
}