Created
January 17, 2018 11:43
-
-
Save Ebazhanov/583ea8ca6c8822879098d3a3b0830e6f to your computer and use it in GitHub Desktop.
Support for selenium testing
Connect to Email By Imap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.base.utils.GmailReader | |
import ru.yandex.qatools.allure.annotations.Step | |
/** | |
* Connect to Email By Imap | |
* | |
*/ | |
class ConnectToEmailByImap { | |
@Step | |
static gmailProperties() { | |
final Properties properties = new Properties() | |
properties.put("mail.imap.ssl.enable", "true") | |
properties.put("mail.imaps.host", "imap.gmail.com") | |
properties.put("mail.imaps.port", "993") | |
return properties | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment