Get result of Validate.Exists()
Posted: Wed Oct 24, 2012 12:32 am
Hi,
I am validating that several components must be present in the application using the following method Validate.Exists ()
public void ValidateComponentsLobby()
{
List<string> ComponentsList = new List<string>();
ComponentsList.Add ("Slots");
ComponentsList.Add ("Table Games ");
ComponentsList.Add ("Video Poker");
ComponentsList.Add ("Specialty ");
foreach(string item in ComponentsList){
Validate_Components(item);
}
}
In Validate_Components() I am validating if the object exists. However if a component is not present in the application the test case needs to continue validating the other components, the current behavior is that if the component is not present in the app the test case immediately fails without to check the others components
I am validating that several components must be present in the application using the following method Validate.Exists ()
public void ValidateComponentsLobby()
{
List<string> ComponentsList = new List<string>();
ComponentsList.Add ("Slots");
ComponentsList.Add ("Table Games ");
ComponentsList.Add ("Video Poker");
ComponentsList.Add ("Specialty ");
foreach(string item in ComponentsList){
Validate_Components(item);
}
}
In Validate_Components() I am validating if the object exists. However if a component is not present in the application the test case needs to continue validating the other components, the current behavior is that if the component is not present in the app the test case immediately fails without to check the others components