public void test05CancelFileTransferRequestBeforeRejecting() { checkThatTheFilesHaveNotBeenTransferred(); xen.changeNickName("XenMaster"); solo.sleep(500); xen.sendFile(me, image.getFile()); solo.sleep(500); checkMainChatMessage("*** XenMaster is trying to send the file kouchat-1600x1600.png"); checkActiveFileTransferNotifications(4); solo.sleep(500); openReceiveFileDialog(xen, 4); solo.sleep(500); checkThatTheDialogIsInFront(); checkDialogMessage( "XenMaster is trying to send you the file ‘kouchat-1600x1600.png’ (67.16KB). " + "Do you want to accept the file transfer?"); solo.sleep(500); xen.cancelFileSending(me, image.getFile()); solo.sleep(500); rejectFileTransfer(); solo.sleep(500); checkThatTheMainChatIsInFront(); checkMainChatMessage("*** XenMaster aborted sending of kouchat-1600x1600.png"); checkThatNoFileTransferNotificationsAreActive(); checkThatTheFilesHaveNotBeenTransferred(); }
public void test06CancelFileTransferRequestBeforeAccepting() { checkThatTheFilesHaveNotBeenTransferred(); tina.changeNickName("SuperTina"); solo.sleep(500); tina.sendFile(me, image.getFile()); solo.sleep(500); checkMainChatMessage("*** SuperTina is trying to send the file kouchat-1600x1600.png"); checkActiveFileTransferNotifications(5); solo.sleep(500); openReceiveFileDialog(tina, 5); solo.sleep(500); checkThatTheDialogIsInFront(); checkDialogMessage( "SuperTina is trying to send you the file ‘kouchat-1600x1600.png’ (67.16KB). " + "Do you want to accept the file transfer?"); solo.sleep(500); tina.cancelFileSending(me, image.getFile()); solo.sleep(500); acceptFileTransfer(); solo.sleep(500); checkThatTheMainChatIsInFront(); checkMainChatMessage("*** SuperTina aborted sending of kouchat-1600x1600.png"); checkThatNoFileTransferNotificationsAreActive(); checkThatTheFilesHaveNotBeenTransferred(); }
public void test04CancelFileTransferRequestBeforeOpeningActivity() { checkThatTheFilesHaveNotBeenTransferred(); xen.sendFile(me, image.getFile()); solo.sleep(500); checkMainChatMessage("*** Xen is trying to send the file kouchat-1600x1600.png"); checkActiveFileTransferNotifications(3); solo.sleep(500); xen.cancelFileSending(me, image.getFile()); solo.sleep(1000); checkMainChatMessage("*** Xen aborted sending of kouchat-1600x1600.png"); checkThatNoFileTransferNotificationsAreActive(); checkThatTheFilesHaveNotBeenTransferred(); }