コード例 #1
0
 @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());
 }
コード例 #2
0
 @And("^the Meeting should be listed in the Meetings of Room using the API$")
 public void theMeetingShouldBeListedInTheMeetingsOfRoomUsingTheAPI() {
   String nameRoom = mainTabletPage.getMainTitle();
   String nameMeeting = meetingEntity.getSubject();
   assertEquals(nameRoom, apiMeetingMethods.getMeetingValues(nameMeeting, "location", nameRoom));
   assertEquals(nameMeeting, apiMeetingMethods.getMeetingValues(nameMeeting, "title", nameRoom));
 }
コード例 #3
0
 @When(
     "^I create unsuccessfully a meeting with the following information: \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\"$")
 public void createUnsuccessfullyAMeetingWithTheFollowingInformation(
     String organizer, String subject, String from, String to, String attendees, String body) {
   meetingEntity.setAllFields(organizer, subject, from, to, attendees, body);
   schedulePage.missingInformationMeeting(meetingEntity);
 }
コード例 #4
0
 @And("^the Meeting information should be displayed in the Next section of Main page$")
 public void theMeetingInformationShouldBeDisplayedInTheNextSection() {
   mainTabletPage = schedulePage.goMainPage();
   String nameMeeting = meetingEntity.getSubject();
   assertTrue(mainTabletPage.isMeetingPresent(nameMeeting));
   assertTrue(mainTabletPage.isMeetingPresentInNextSection(nameMeeting));
   assertEquals(nameMeeting, mainTabletPage.getNameMeetingInNextSection(nameMeeting));
 }
コード例 #5
0
 @And(
     "^I have a Meeting with the following information: \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\", \"([^\"]*)\"$")
 public void iHaveAMeetingWithTheFollowingInformation(
     String organizer, String subject, String from, String to, String attendees, String body) {
   String administrator = externalVariablesManager.getExchangeUserName();
   meetingEntity.setAllFields(administrator, subject, from, to, attendees, body);
   apiMeetingMethods.createMeeting(meetingEntity, roomEntity.getDisplayName());
 }
コード例 #6
0
 @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());
 }
コード例 #7
0
 @And("^the second Meeting should not be displayed in the Schedule bar$")
 public void theSecondMeetingShouldNotBeDisplayedInTheScheduleBar() {
   assertFalse(schedulePage.isMeetingDisplayed(meetingEntity2.getSubject()));
 }
コード例 #8
0
 @And("^the Meeting should be displayed in the Schedule bar$")
 public void theMeetingShouldBeDisplayedInTheScheduleBar() {
   String nameMeeting = meetingEntity.getSubject();
   assertTrue(schedulePage.isMeetingDisplayed(nameMeeting));
   assertEquals(meetingEntity.getSubject(), schedulePage.getNameMeetingInScheduleBar(nameMeeting));
 }
コード例 #9
0
 @After(value = "@Meetings", order = 999)
 public void afterMeetingScenario() {
   apiMeetingMethods.deleteMeeting(mainTabletPage.getMainTitle(), meetingEntity.getSubject());
 }
コード例 #10
0
 @And("^the Meeting should not be listed in the meetings of Room using the API$")
 public void theMeetingShouldNotBeListedInTheMeetingsOfRoomUsingTheAPI() {
   assertFalse(
       apiMeetingMethods.isMeetingPresent(
           meetingEntity.getSubject(), "title", mainTabletPage.getMainTitle()));
 }
コード例 #11
0
 @And("^the meeting information should not be displayed in the Next section of Main page$")
 public void theMeetingInformationShouldBeRemovedFromTheNextSection() {
   mainTabletPage = schedulePage.goMainPage();
   assertFalse(mainTabletPage.isMeetingPresent(meetingEntity.getSubject()));
 }
コード例 #12
0
 @And("^the meeting should not be displayed in the Schedule bar$")
 public void theMeetingShouldBeRemovedFromTheTheScheduleBar() {
   assertFalse(schedulePage.isMeetingDisplayed(meetingEntity.getSubject()));
 }
コード例 #13
0
 @When("^I remove the Meeting$")
 public void removeTheMeeting() {
   credentialsPage = schedulePage.deleteMeeting(meetingEntity.getSubject());
   schedulePage =
       credentialsPage.confirmDelete(externalVariablesManager.getExchangeUserPassword());
 }
コード例 #14
0
 @And("^the second Meeting information should not be displayed in the Next section$")
 public void theSecondMeetingInformationShouldNotBeDisplayedInTheNextSection() {
   mainTabletPage = schedulePage.goMainPage();
   assertFalse(mainTabletPage.isMeetingPresent(meetingEntity2.getSubject()));
 }