I want to write a selenium test by java. When the test is finished, the program will automatically send email to me. The email is also sended whenever errors occur. How can I do that? Thanks a lot.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mail sending has nothing to do with selenium.You have to write your separate java function for sending mail.You can call that function as per your requirement.For example if you want to send mail after test case execution is finished then you can call that function in tearDown method of your test class.