@Test(groups = {"Cloud2"}) public void InviteBulkUsersTest() { String user1 = System.currentTimeMillis() + "@test.drtest"; String user2 = System.currentTimeMillis() + "@test2.drtest"; String[] usersForInvitation = {user1, user2}; Map<String, Boolean> results = inviteUsersTab.executeCorrectBulkImport(usersForInvitation); Assert.assertTrue(results.containsKey(user1) && results.get(user1)); Assert.assertTrue(results.containsKey(user2) && results.get(user2)); }
public Map<String, Boolean> executeCorrectBulkImport(String[] userEmails) { inputEmailsForInvitation(userEmails); WebElement startInviteButton = drone.findAndWait(START_BULK_INVITE_BUTTON); startInviteButton.click(); return getResults(); }
InviteUsersTab extends CloudConsolePage { public Map<String, Boolean> executeCorrectBulkImport(String[] userEmails) { inputEmailsForInvitation(userEmails); WebElement startInviteButton = drone.findAndWait(START_BULK_INVITE_BUTTON); startInviteButton.click(); return getResults(); } }
InviteUsersTab extends CloudConsolePage { public Map<String, Boolean> executeCorrectBulkImport(String[] userEmails) { inputEmailsForInvitation(userEmails); WebElement startInviteButton = drone.findAndWait(START_BULK_INVITE_BUTTON); startInviteButton.click(); return getResults(); } InviteUsersTab(WebDrone drone); }
InviteUsersTab extends CloudConsolePage { public Map<String, Boolean> executeCorrectBulkImport(String[] userEmails) { inputEmailsForInvitation(userEmails); WebElement startInviteButton = drone.findAndWait(START_BULK_INVITE_BUTTON); startInviteButton.click(); return getResults(); } InviteUsersTab(WebDrone drone); @SuppressWarnings("unchecked") @Override InviteUsersTab render(RenderTime timer); @SuppressWarnings("unchecked") @Override InviteUsersTab render(long time); @SuppressWarnings("unchecked") @Override InviteUsersTab render(); Map<String, Boolean> executeCorrectBulkImport(String[] userEmails); Map<String, Boolean> executeCorrectBulkImport(File file); }
InviteUsersTab extends CloudConsolePage { public Map<String, Boolean> executeCorrectBulkImport(String[] userEmails) { inputEmailsForInvitation(userEmails); WebElement startInviteButton = drone.findAndWait(START_BULK_INVITE_BUTTON); startInviteButton.click(); return getResults(); } InviteUsersTab(WebDrone drone); @SuppressWarnings("unchecked") @Override InviteUsersTab render(RenderTime timer); @SuppressWarnings("unchecked") @Override InviteUsersTab render(long time); @SuppressWarnings("unchecked") @Override InviteUsersTab render(); Map<String, Boolean> executeCorrectBulkImport(String[] userEmails); Map<String, Boolean> executeCorrectBulkImport(File file);  }