Пример #1
0
        //checking the function of grouping template
        void CheckGrouping(GroupingTemplateHelper helper, ExecutionLog log)
        {
            log.Log("GroupingTemplate", "start to apply template");
            applyTemplate(helper, log);
            log.Log("GroupingTemplate", "count the number of fields in company details ");
            int labelNum = helper.LabelCount("CDSection");

            Assert.IsTrue(labelNum == 3);
            log.Log("GroupingTemplate", "company details passed");
            log.Log("GroupingTemplate", "count the number of fields in rates fees");
            helper.ClickElement("RatesFeeTab");
            helper.WaitForWorkAround(2000);
            int inputNum = helper.LabelCount("DFSection");

            Assert.IsTrue(inputNum == 2);
            log.Log("GroupingTemplate", "rates fees passed");
        }