This question is locked. New answers and comments are not allowed.
Hi there,
My scenario is : To validate each fields in my application with both positive and negative data.Additionally the validation result will be stored on the excel file.
I have recorded those controls and its working even in play back.
I have a first name field(a text box) ,i supposed to give both negative and positive data's from excel file.
The alert box will be appear, if we entered a negative data.
I have validated the fields with negative data by using code :
if (ActiveBrowser.ContainsText("Please Enter Valid FirstName")) // Please enter valid firstname - is a alert box text
{
Worksheet.Cells[Data.IterationIndex + 2, 4] = "Please Enter Valid First Name"; //storing result in excel
}
else
{
Worksheet.Cells[Data.IterationIndex + 2, 4] = "error";
}
Its working for the negative data's alone,not for the positive data.
How do i validate fields with positive data? Please Help me on this ...
I have enclosed a sample screenshots for your reference.
My scenario is : To validate each fields in my application with both positive and negative data.Additionally the validation result will be stored on the excel file.
I have recorded those controls and its working even in play back.
I have a first name field(a text box) ,i supposed to give both negative and positive data's from excel file.
The alert box will be appear, if we entered a negative data.
I have validated the fields with negative data by using code :
if (ActiveBrowser.ContainsText("Please Enter Valid FirstName")) // Please enter valid firstname - is a alert box text
{
Worksheet.Cells[Data.IterationIndex + 2, 4] = "Please Enter Valid First Name"; //storing result in excel
}
else
{
Worksheet.Cells[Data.IterationIndex + 2, 4] = "error";
}
Its working for the negative data's alone,not for the positive data.
How do i validate fields with positive data? Please Help me on this ...
I have enclosed a sample screenshots for your reference.