public void AddDuplicatedUser(UserSettingsData testData) { UserSettings.FocusOnUser(testData.InputData.OriginalName); UserSettings.ClickModifyButton(); TimeManager.ShortPause(); UserSettings.FillInUser(testData.InputData); UserSettings.ClickSaveButton(); string msgText = UserSettings.GetMessageText(); Assert.IsTrue(msgText.Contains("用户名重复")); TimeManager.ShortPause(); UserSettings.ConfirmMagBox(); }