public void PopTreeOperation02(SmokeTestEnergyViewData input) { //open pop and login JazzBrowseManager.OpenJazz(); TimeManager.Pause(15000); JazzTextField.PopLoginUserNameTextField.Fill("SchneiderElectricChina"); JazzTextField.PopLoginPasswordTextField.Fill("P@ssw0rdChina"); JazzButton.PopLoginSubmitButton.Click(); JazzButton.PopMenuButtonCustomer.WaitControlDisplayed(60); TimeManager.Pause(5000); JazzButton.PopbButtonConfirm.Click(); TimeManager.Pause(10000); JazzButton.PopButtonUserManagement.Pop_SelectItem("用户管理"); TimeManager.LongPause(); TimeManager.LongPause(); JazzButton.PopButtonAddUser.Click(); TimeManager.LongPause(); TimeManager.LongPause(); JazzComboBox.PopComboBoxPosition.Pop_SelectItem("部门经理"); TimeManager.LongPause(); }
public static void InitializePlatformWithOption(string userName, string passWord, string customer) { InitializeExecutionContext(); JazzBrowseManager.OpenJazz(); JazzFunction.LoginPage.LoginWithOption(userName, passWord, customer); }
public static void Initialize() { InitializeExecutionContext(); JazzBrowseManager.OpenJazz(); //JazzFunction.LoginPage.LoginToCustomer(); //JazzFunction.LoginPage.LoginWithOption("Admin", "P@ssw0rd", "REM管理平台"); JazzFunction.LoginPage.LoginWithOption("SchneiderElectricChina", "P@ssw0rdChina", "'云能效'系统管理"); }
public static void InitializeWithOption(string userName, string passWord, string customer) { InitializeExecutionContext(); JazzBrowseManager.OpenJazz(); TimeManager.Pause(WAITLONGTIME); JazzFunction.LoginPage.SwitchLanguageOnLoginPage(); JazzFunction.LoginPage.LoginWithOption(userName, passWord, customer); // Ali pop window }
public void EmailAddressInvalid(DemoAccessData input) { JazzBrowseManager.OpenJazz(); //Open Jazz login page, Click the 'Demo' link (‘产品试用’). //Popup a dialog with email address field. DemoAccessSetting.DemoAccessButton.Click(); TimeManager.LongPause(); //Input the email with invalid address and click the Send button. DemoAccessSetting.FillInDemoAccessEmailAddressInfo(input.InputData.Email); DemoAccessSetting.SendDemoAccessEmailButton.Click(); //Pop up the wrong message DemoAccessSetting.GetEmailInvalidMessage(); }
public void EmailAddressValid(DemoAccessData input) { JazzBrowseManager.OpenJazz(); //Open Jazz login page, Click the 'Demo' link (‘产品试用’). //Popup a dialog with email address field. DemoAccessSetting.DemoAccessButton.Click(); TimeManager.LongPause(); //Input the email with Valid address and click the Send button. DemoAccessSetting.FillInDemoAccessEmailAddressInfo(input.InputData.Email); DemoAccessSetting.SendDemoAccessEmailButton.Click(); TimeManager.ShortPause(); //验证email输入的是否有效,若地址有效则发送成功. Assert.AreEqual(input.ExpectedData.EmailSendedSuccessMessage, DemoAccessSetting.GetEmailSendedMessage()); }
public void PopTreeOperation01(SmokeTestEnergyViewData input) { //open pop and login JazzBrowseManager.OpenJazz(); TimeManager.Pause(5000); JazzTextField.PopLoginUserNameTextField.Fill("SchneiderElectricChina"); JazzTextField.PopLoginPasswordTextField.Fill("P@ssw0rdChina"); JazzButton.PopLoginSubmitButton.Click(); JazzButton.PopMenuButtonCustomer.WaitControlDisplayed(60); TimeManager.Pause(5000); //Select customer and confirm JazzButton.PopMenuButtonCustomer.Pop_SelectItem("NancyCustomer12"); TimeManager.LongPause(); JazzButton.PopbButtonConfirm.Click(); TimeManager.Pause(10000); string[] nodePath = { "NancyCustomer12", "园区测试多层级", "楼宇BC" }; JazzTreeView.PopHierarchyTree.Pop_SelectNode(nodePath); }
public void RunBeforeAnyTests() { TestAssemblyInitializer.InitializeExecutionContext(); JazzBrowseManager.OpenJazz(); }