コード例 #1
0
 public void ViewRoleType(UserSettingsData input)
 {
     UserSettings.ClickAddUser();
     TimeManager.ShortPause();
     //int i = 0;
     //while (i < input.InputData.TypeList.Length)
     //{
     UserSettings.SelectFuctionRoleType(input.InputData.TypeList[0]);
     TimeManager.LongPause();
     //Assert.IsTrue(UserSettings.IsViewFunctionPermissionDispalyed());
     //Assert.IsTrue(UserSettings.IsViewFunctionPermissionEnabled());
     UserSettings.ClickViewFunctionPermissionLinkButton();
     //string a = "仪表盘与小组件查看\r\n仪表盘与小组件编辑\r\n个人信息管理\r\n报警信息查看仪表盘和小组件分享与共享\r\n“能效分析”功能\r\n“碳排放”功能\r\n“成本”功能\r\n“单位指标”功能\r\n“时段能耗比”功能\r\n“集团排名”功能\r\n数据导出\r\n“云能效”系统管理\r\n层级结构管理\r\n普通数据点管理\r\n数据点关联\r\n客户信息查看\r\n客户信息管理";
     Assert.AreEqual(input.ExpectedData.FunctionScopeList[0], UserSettings.GetPermissionItemsSameAsViewItems());
     UserSettings.ClickFunctionCloseButton();
     // i++;
     //}
 }
コード例 #2
0
        public void AddValidUser(UserSettingsData input)
        {
            //Click "+用户"
            UserSettings.ClickAddUser();
            TimeManager.ShortPause();
            UserSettings.FillInAddUser(input.InputData);
            JazzMessageBox.LoadingMask.WaitLoading();
            TimeManager.MediumPause();
            UserSettings.ClickSaveButton();
            JazzMessageBox.LoadingMask.WaitLoading();
            TimeManager.ShortPause();

            Assert.AreEqual(input.ExpectedData.AccountID, UserSettings.GetNameValue());
            Assert.AreEqual(input.ExpectedData.RealName, UserSettings.GetRealNameValue());
            Assert.AreEqual(input.ExpectedData.Type, UserSettings.GetTypeValue());
            Assert.AreEqual(input.ExpectedData.Email, UserSettings.GetEmailValue());
            Assert.AreEqual(input.ExpectedData.Telephone, UserSettings.GetTelephoneValue());
            Assert.AreEqual(input.ExpectedData.Comments, UserSettings.GetCommentValue());
            Assert.AreEqual(input.ExpectedData.Title, UserSettings.GetTitleValue());

            Assert.IsTrue(UserSettings.IsUserOnList(input.ExpectedData.AccountID));
        }
コード例 #3
0
        public void TitleDisplayItem(UserSettingsData input)
        {
            int i = 0;

            //Click "+用户"
            UserSettings.ClickAddUser();
            TimeManager.ShortPause();
            while (i < input.InputData.titleList.Length)
            {
                Assert.IsTrue(UserSettings.FillInTitle(input.InputData.titleList[i]));
                i++;
            }
            //@@ Assert.IsTrue(UserSettings.AreTitleDisplayAllItem());
        }
コード例 #4
0
 public void SendEmailAndInitialPasswordSuccess(UserSettingsData input)
 {
     //Click "+用户"
     UserSettings.ClickAddUser();
     TimeManager.ShortPause();
     UserSettings.FillInAddUser(input.InputData);
     TimeManager.MediumPause();
     UserSettings.ClickSaveButton();
     JazzMessageBox.LoadingMask.WaitLoading();
     TimeManager.ShortPause();
     Assert.IsTrue(UserSettings.IsEmailSendButtonDispalyed());
     Assert.IsTrue(UserSettings.IsEmailSendButtonEnabled());
     UserSettings.ClickEmailSendButton();
     JazzMessageBox.LoadingMask.WaitLoading();
     TimeManager.MediumPause();
     Assert.IsTrue(JazzMessageBox.MessageBox.GetMessage().Contains(input.ExpectedData.Message));
     JazzMessageBox.MessageBox.OK();
     // Login to emailbox and click the link from the received email.  need test manaully
 }