Hi All, If the success or failure of sending an email is not reflected at the UI level, as you mentioned only way to verify is using the server log and receivers inbox. But in this UI test, you are trying to verify some thing that the end user never experienced. I have doubt in how far that is valid in UI Test.
Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 14, 2015 at 3:33 PM, Irham Iqbal <[email protected]> wrote: > Hi Dilan , > > You can find this blog post[1] about Java Mail API to access gmail account. > > [1] https://irhamiqbal.wordpress.com/java-mail-api/ > > Thanks, > Iqbal > > On Wed, Jan 14, 2015 at 3:17 PM, Dilan Udara Ariyaratne <[email protected]> > wrote: > >> Hi Saneth & Iqbal, >> >> To manually verify the email functionality, I can look at the terminal or >> server log for any exceptions >> and if there aren't any exceptions, I can look into the provided user's >> email account to check the incoming message. >> >> The problem with a Selenium test is that the success or failure of >> sending an email is not reflected at the UI level. >> >> @Iqbal >> I have not gone through such APIs yet. Will have a look. >> >> Thanks. >> >> >> *Dilan U. Ariyaratne* >> Software Engineer >> WSO2 Inc. <http://wso2.com/> >> Mobile: +94775149066 >> lean . enterprise . middleware >> >> On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi <[email protected]> >> wrote: >> >>> Hi Dilan, >>> >>> 1) If this test is done manually what is the way to verify this? >>> 2) Are you still have the problem in capturing the status message of a >>> dialog popup? >>> >>> Thanks and Best Regards, >>> >>> Saneth Dharmakeerthi >>> Senior Software Engineer >>> WSO2, Inc. >>> Mobile: +94772325511 >>> >>> On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal <[email protected]> wrote: >>> >>>> Hi Dilan, >>>> >>>> Can't you use an API to make sure the email has received to user's >>>> email account at the end to make the test pass. >>>> >>>> Thanks, >>>> Iqbal >>>> >>>> On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne < >>>> [email protected]> wrote: >>>> >>>>> Hi Krishantha, >>>>> >>>>> There is a problem on testing this email sending functionality using >>>>> the UI and Selenium. >>>>> This is because any error that occurs at the email sending level is >>>>> not reflected at the UI level. >>>>> >>>>> What do you think? >>>>> >>>>> Regards, >>>>> Dilan. >>>>> >>>>> >>>>> *Dilan U. Ariyaratne* >>>>> Software Engineer >>>>> WSO2 Inc. <http://wso2.com/> >>>>> Mobile: +94775149066 >>>>> lean . enterprise . middleware >>>>> >>>>> On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi Krisantha, >>>>>> >>>>>> Following are the manual steps of sending a mail to a user. >>>>>> >>>>>> [1] Fill email configuration details (SMTP Mail Server Settings) >>>>>> under the settings tab of admin console. >>>>>> [2] Add a new user to the system which will send an invitation email >>>>>> to the provided email address of the user. >>>>>> >>>>>> Herewith I am also attaching the screen-shots... >>>>>> >>>>>> Thanks. >>>>>> >>>>>> >>>>>> >>>>>> *Dilan U. Ariyaratne* >>>>>> Software Engineer >>>>>> WSO2 Inc. <http://wso2.com/> >>>>>> Mobile: +94775149066 >>>>>> lean . enterprise . middleware >>>>>> >>>>>> On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Can you list the steps required to manually verify the scenario. We >>>>>>> have recently implemented GreenMail sever utility for test framework. We >>>>>>> can propose how to automate based on the manual steps. >>>>>>> >>>>>>> Thanks, >>>>>>> Krishantha. >>>>>>> >>>>>>> On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi Krishantha, >>>>>>>> EMM 1.1.0 uses, require('email') available in Jaggery to send >>>>>>>> email. The configurations are stored in the registry. So it is not >>>>>>>> necessary to configure mail transport AFAIK. >>>>>>>> Adding the mobile team. >>>>>>>> >>>>>>>> Regards, >>>>>>>> Inosh >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Do you need to configure mail transport in this case ? if yes, in >>>>>>>>> which file ? >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Krishantha >>>>>>>>> >>>>>>>>> On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hi Folks, >>>>>>>>>> >>>>>>>>>> I am checking the feasibility of writing an automated test case >>>>>>>>>> for the email >>>>>>>>>> sending functionality of emm. >>>>>>>>>> >>>>>>>>>> When a user is created, an invitation email is sent to the >>>>>>>>>> corresponding >>>>>>>>>> user to register the device. >>>>>>>>>> >>>>>>>>>> sendEmail() is currently a jaggery function and is executed via a >>>>>>>>>> non-exposed api to the outside >>>>>>>>>> within EMM Jaggery web application. >>>>>>>>>> >>>>>>>>>> What is the best possible way to test this functionality? >>>>>>>>>> Is there a recommended SMTP mail server to use? >>>>>>>>>> >>>>>>>>>> If I am using Selenium, to verify "success", I need to capture >>>>>>>>>> the status message >>>>>>>>>> of a dialog popup. How can I do this using Selenium? >>>>>>>>>> >>>>>>>>>> Appreciate any feedback on this. >>>>>>>>>> >>>>>>>>>> Thanks. >>>>>>>>>> >>>>>>>>>> *Dilan U. Ariyaratne* >>>>>>>>>> Software Engineer >>>>>>>>>> WSO2 Inc. <http://wso2.com/> >>>>>>>>>> Mobile: +94775149066 >>>>>>>>>> lean . enterprise . middleware >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Krishantha Samaraweera >>>>>>>>> Senior Technical Lead - Test Automation >>>>>>>>> Mobile: +94 77 7759918 >>>>>>>>> WSO2, Inc.; http://wso2.com/ >>>>>>>>> lean . enterprise . middlewear. >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Dev mailing list >>>>>>>>> [email protected] >>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Inosh Perera >>>>>>>> Software Engineer, WSO2 Inc. >>>>>>>> Tel: 0785293686 >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Krishantha Samaraweera >>>>>>> Senior Technical Lead - Test Automation >>>>>>> Mobile: +94 77 7759918 >>>>>>> WSO2, Inc.; http://wso2.com/ >>>>>>> lean . enterprise . middlewear. >>>>>>> >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Irham Iqbal >>>> Software Engineer - Test Automation >>>> WSO2, Inc.: http://wso2.com >>>> lean. enterprise. middleware >>>> phone: +94 777888452 >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >> > > > -- > Irham Iqbal > Software Engineer - Test Automation > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > phone: +94 777888452 >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
