how to connect user code models
Posted: Wed Oct 29, 2014 4:28 pm
Hi all,
The system generates due date which is 90 days ahead of system date. I need to validate that this date is correct and we have current date in our system. I have wrote user code which converts current date to due date but I don't know how to connect or combine them. If this dates would be on one page it would be just one user code but they are on different pages.
User code model which takes current date and adds 90 dates to it:
var repo = US094Repository.Instance;
System.DateTime td=Convert.ToDateTime(repo.WebDocumentDEVMode70575Guidewi.TopFrame.SystemClockSystemClockScreenDate.Value.ToString());
Report.Log(ReportLevel.Info, "systemDate", td.ToString());
System.DateTime newtd = td.AddDays(90);
Report.Log(ReportLevel.Info, "Activity Date", newtd.ToShortDateString());
user code model which verifies that due date is correct:
System.DateTime ww=Convert.ToDateTime(repo.WebDocumentDEVMode70575Guidewi.TopFrame.PolicyFileActivityCAAActivityScreenA.InnerText.ToString());
Report.Log(ReportLevel.Info, "WebDate", ww.ToString());
Now I need to verify that one date = second and connect them.
The system generates due date which is 90 days ahead of system date. I need to validate that this date is correct and we have current date in our system. I have wrote user code which converts current date to due date but I don't know how to connect or combine them. If this dates would be on one page it would be just one user code but they are on different pages.
User code model which takes current date and adds 90 dates to it:
var repo = US094Repository.Instance;
System.DateTime td=Convert.ToDateTime(repo.WebDocumentDEVMode70575Guidewi.TopFrame.SystemClockSystemClockScreenDate.Value.ToString());
Report.Log(ReportLevel.Info, "systemDate", td.ToString());
System.DateTime newtd = td.AddDays(90);
Report.Log(ReportLevel.Info, "Activity Date", newtd.ToShortDateString());
user code model which verifies that due date is correct:
System.DateTime ww=Convert.ToDateTime(repo.WebDocumentDEVMode70575Guidewi.TopFrame.PolicyFileActivityCAAActivityScreenA.InnerText.ToString());
Report.Log(ReportLevel.Info, "WebDate", ww.ToString());
Now I need to verify that one date = second and connect them.