@When( "^I create other Meeting with the following information: \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\"$") public void createOtherMeetingWithTheFollowingInformation( String organizer, String subject, String from, String to, String attendees, String body) { meetingEntity2.setAllFields(organizer, subject, from, to, attendees, body); credentialsPage = schedulePage.createNewMeeting(meetingEntity2); credentialsPage.cancelCredentials( externalVariablesManager.getExchangeUserName(), externalVariablesManager.getExchangeUserPassword()); }
@When( "^I update the meeting information: \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\"$") public void updateTheMeetingInformation( String organizer, String subject, String from, String to, String attendees, String body) { String nameMeetingToUpdate = meetingEntity.getSubject(); meetingEntity.setAllFields(organizer, subject, from, to, attendees, body); schedulePage.selectMeeting(nameMeetingToUpdate); credentialsPage = schedulePage.updateNewMeeting(meetingEntity); schedulePage = credentialsPage.confirmUpdate(externalVariablesManager.getExchangeUserPassword()); }
@Then("^an error message should be displayed$") public void anErrorMessageShouldBeDisplayed() { assertTrue(credentialsPage.isConflictMessageDisplayed()); schedulePage = credentialsPage.clickCancelButton(); }
@When("^I remove the Meeting$") public void removeTheMeeting() { credentialsPage = schedulePage.deleteMeeting(meetingEntity.getSubject()); schedulePage = credentialsPage.confirmDelete(externalVariablesManager.getExchangeUserPassword()); }