Issues with "Open Link From Mail" from Imap Library

1,178 views
Skip to first unread message

Phuoc Ha

unread,
Oct 14, 2014, 6:35:37 AM10/14/14
to robotframe...@googlegroups.com
Hi everyone,

Is there anyone using Imap library in Robot Framework? Please help me resolve this problem.
I'm using Imap Library to check new email comming, but I got an issue during the test.

My simple test case:

*** Settings ***
Library           Selenium2Library
Library           ImapLibrary  
 
*** Test Cases ***
Create Simple Test
    Open Mailbox    server=imap.googlemail.com    user=vntest...@gmail.com    password=ABCXYZ
    ${LATEST}=    Wait for Mail    fromEmail=brisi...@gmail.com    toEmail=vntest...@gmail.com    timeout=300
    ${HTML}=    Open Link From Mail    ${LATEST}
    Should Contain    ${HTML}    Mail from Brisingrit to Vntestexpense 01
    Close Mailbox

I met an issue at keyword 'Open Link From Mail'. Script have got result ${LATEST} = 1, but failed when "Open Link From Mail  |  1 "
This is my test results:

Starting test: Web.Tests.Z Temp Suite.Sandbox.Create Simple Test
20141014 17:09:59.075 :  INFO : ${LATEST} = 1
20141014 17:09:59.519 :  FAIL : URLError: <urlopen error unknown url type: mailto>
Ending test:   Web.Tests.Z Temp Suite.Sandbox.Create Simple Test


I also refer this article:
https://pypi.python.org/pypi/robotframework-imaplibrary/0.1.3?utm_source=dlvr.it&utm_medium=https%3A%2F%2Fpypi.python.org%2Fpypi%3F%253Aaction%3Drss

I have research on the internet, but I can't find out the way how to resolve it.
Who used to use Imap Library, Please give me an advice.
Thanks you so much!

Regards,
Phuoc Ha.


Truyền Kiều Văn

unread,
Jun 10, 2019, 3:35:24 AM6/10/19
to robotframework-users
I have the same issue, did you find the way to resolve it?

Phuoc Ha

unread,
Jun 10, 2019, 4:19:47 AM6/10/19
to robotframework-users
Not yet Truyen. Long time ago I don't use RF anymore. 
You can join VN skype group to ask more [HERE].

Regards,


On Tuesday, October 14, 2014 at 5:35:37 PM UTC+7, Phuoc Ha wrote:
Hi everyone,

Is there anyone using Imap library in Robot Framework? Please help me resolve this problem.
I'm using Imap Library to check new email comming, but I got an issue during the test.

My simple test case:

*** Settings ***
Library           Selenium2Library
Library           ImapLibrary  
 
*** Test Cases ***
Create Simple Test
    Open Mailbox    server=imap.googlemail.com    user=vntest...@gmail.com    password=ABCXYZ
    ${LATEST}=    Wait for Mail    fromEmail=brisi...@gmail.com    toEmail=vntestexpense@gmail.com    timeout=300

Anil Shrestha

unread,
Jun 11, 2019, 2:48:40 AM6/11/19
to kieuvantru...@gmail.com, robotframework-users
Hey Truyen,

You need to create your own custom library to open link from email. I had faced the same issue earlier and here is how I created my own custom python library and used it.
customimpalibrary.JPG

urluitilis.JPG


test_kw.JPG


Thanks,

On Mon, Jun 10, 2019 at 2:04 PM Phuoc Ha <phuo...@gmail.com> wrote:
Not yet Truyen. Long time ago I don't use RF anymore. 
You can join VN skype group to ask more [HERE].

Regards,

On Tuesday, October 14, 2014 at 5:35:37 PM UTC+7, Phuoc Ha wrote:
Hi everyone,

Is there anyone using Imap library in Robot Framework? Please help me resolve this problem.
I'm using Imap Library to check new email comming, but I got an issue during the test.

My simple test case:

*** Settings ***
Library           Selenium2Library
Library           ImapLibrary  
 
*** Test Cases ***
Create Simple Test
    Open Mailbox    server=imap.googlemail.com    user=vntest...@gmail.com    password=ABCXYZ
    ${LATEST}=    Wait for Mail    fromEmail=brisi...@gmail.com    toEmail=vntest...@gmail.com    timeout=300

    ${HTML}=    Open Link From Mail    ${LATEST}
    Should Contain    ${HTML}    Mail from Brisingrit to Vntestexpense 01
    Close Mailbox

I met an issue at keyword 'Open Link From Mail'. Script have got result ${LATEST} = 1, but failed when "Open Link From Mail  |  1 "
This is my test results:

Starting test: Web.Tests.Z Temp Suite.Sandbox.Create Simple Test
20141014 17:09:59.075 :  INFO : ${LATEST} = 1
20141014 17:09:59.519 :  FAIL : URLError: <urlopen error unknown url type: mailto>
Ending test:   Web.Tests.Z Temp Suite.Sandbox.Create Simple Test


I also refer this article:
https://pypi.python.org/pypi/robotframework-imaplibrary/0.1.3?utm_source=dlvr.it&utm_medium=https%3A%2F%2Fpypi.python.org%2Fpypi%3F%253Aaction%3Drss

I have research on the internet, but I can't find out the way how to resolve it.
Who used to use Imap Library, Please give me an advice.
Thanks you so much!

Regards,
Phuoc Ha.


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/00f9903d-de63-4568-ae41-5aed665ec4b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
test_kw.JPG
urluitilis.JPG
customimpalibrary.JPG

Truyền Kiều Văn

unread,
Jun 11, 2019, 2:53:33 AM6/11/19
to Anil Shrestha, robotframework-users
Thank you so much, let me try 😍😍

Truyền Kiều Văn

unread,
Jun 11, 2019, 4:53:41 AM6/11/19
to Anil Shrestha, robotframework-users
Thank Anil again, 
I can resolve my problem by your solution. Thank so much
Reply all
Reply to author
Forward
0 new messages