Code of test case :
try
{
DateTime thisDay = DateTime.Today;
String curDay = thisDay.ToString();
//ICDataProvider ICDP = new ICDataProvider();
//List a;
//a = ICDP.createFileTD();
//// BrowserWindow.CurrentBrowser = “chrome”
this.UIMap.backToHome();
takeImage(“login”);
this.UIMap.createDocument();
this.UIMap.createDocument();
this.UIMap.testCreateFileParams.UIForm1txtSubjectEditText = “test File Subject coadedUI23423 called from dunction askfal”+RandomString(7);
this.UIMap.testCreateFileParams.UIForm1oldFileRefNoEditText = “test File Reference number coadedUI23423” + RandomString(7);
this.UIMap.testCreateFileParams.UIForm1DescriptionEditText = “test File Description coadedUI23423” + RandomString(7);
this.UIMap.testCreateFile();
takeImage(“Create Document”);
this.UIMap.gotTOFileINfo();
takeImage(“CreateFile”);
this.UIMap.prepareCase();
this.UIMap.approveCase();
takeImage(“Prepare case on File”);
this.UIMap.closeCase();
takeImage(“approve Case on File”);
SendMail(“pass”, “test”);
}
catch (Exception ex)
{
ex.ToString();
SendMail(“fail”, ex.ToString());
Assert.Fail();