Read and Write Gmail Messages Keywords FREE

The plugin provides custom keywords to work with Gmail mailbox. Using these keywords, you can read, send, delete messages and more.

3.4K

In today's modern web application technologies, giving access to web applications requires users to activate their account by sending an activation or verification code to their personal or business email account has become a tradition.

In test automation, connecting email accounts and manipulating mail content according to test requirements is one of the challenges. Gmail account is mostly used for web application testing to receive activation code or links. We designed this custom plugin to easy Katalon Studio users while working with Gmail.

To begin with, we have added only few custom keywords which can help at basic level. Based on feedback we will be adding more Keywords in future..

Compatible Katalon Studio Version - 6.0.5 and later versions.

List of Keywords,

com.testwithhari.katalon.plugins.Gmail.getEmailsCount com.testwithhari.katalon.plugins.Gmail.readLatestEMailBodyContent com.testwithhari.katalon.plugins.Gmail.deleteAllEMails

com.testwithhari.katalon.plugins.Gmail.sendEmail

Refer a sample project at - https://github.com/hariprasadms/Katalon-Gmail-Plugin-Sample-Project

Youtube video - https://www.youtube.com/watch?v=33uDYlnBgLc

For live support, connect at https://gitter.im/testwithhari/ [ I will try to answer your questions in less than 60 seconds :) ]

Note : Make sure that in the Gmail account you are using with this plugin, "Less secure app access" option is enabled. If this option is not enabled, it throws "username and password is not accepted" error message.

Visit Katalon Forum for Plugin related discussions.

3.9
17 Rating(s)
vasantha raj
April 4, 2023

Kindly update the plugin as google does not support access to third party software.

June 28, 2023

555

Lavanya H R
August 31, 2021

Hi, Please I need to know about while automating how to extract OTP from mail to application anybody can you help me out.

June 28, 2023

555

Manpreet Mukkar
May 6, 2021

This looks good, But I am getting this error. ---------------------------- 2021-05-06 16:37:24.989 INFO com.kms.katalon.core.util.KeywordUtil - This is a Multipart 2021-05-06 16:37:24.989 INFO com.kms.katalon.core.util.KeywordUtil - --------------------------- 2021-05-06 16:37:25.025 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - com.testwithhari.katalon.plugins.Gmail.readLatestEMailBodyContent is PASSED 2021-05-06 16:37:25.026 DEBUG testcase.New Test Case - 2: selected_portion = split("<Give an unique line of string where eamil should be split")[1].substring(0, 10) 2021-05-06 16:37:25.034 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ Test Cases/New Test Case FAILED. Reason: java.lang.ArrayIndexOutOfBoundsException: 1 at New Test Case.run(New Test Case:25) at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119) at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:398) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:389) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:368) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:360) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:255) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105) at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source) at TempTestCase1620344241238.run(TempTestCase1620344241238.groovy:25) 2021-05-06 16:37:25.057 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/New Test Case---------------------------- 2021-05-06 16:37:24.989 INFO com.kms.katalon.core.util.KeywordUtil - This is a Multipart 2021-05-06 16:37:24.989 INFO com.kms.katalon.core.util.KeywordUtil - --------------------------- 2021-05-06 16:37:25.025 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - com.testwithhari.katalon.plugins.Gmail.readLatestEMailBodyContent is PASSED 2021-05-06 16:37:25.026 DEBUG testcase.New Test Case - 2: selected_portion = split("<Give an unique line of string where eamil should be split")[1].substring(0, 10) 2021-05-06 16:37:25.034 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ Test Cases/New Test Case FAILED. Reason: java.lang.ArrayIndexOutOfBoundsException: 1 at New Test Case.run(New Test Case:25) at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119) at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:398) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:389) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:368) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:360) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:255) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105) at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source) at TempTestCase1620344241238.run(TempTestCase1620344241238.groovy:25) 2021-05-06 16:37:25.057 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/New Test Case

June 28, 2023

555

Shilpi
March 3, 2021

Great plugin .. It does the job very efficiently. Just one question I cant find any jar for it ... how do we integrate with jenkins.

June 28, 2023

555

Achmad
November 11, 2020

Hi, Hari I found error, please help. =============== ROOT CAUSE ===================== Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.call() is applicable for argument types: (com.testwithhari.katalon.plugins.Gmail$_writePart_closure1) values: [com.testwithhari.katalon.plugins.Gmail$_writePart_closure1@70e659aa] For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html ================================================ 11-11-2020 04:55:22 PM Test Cases/motordev/Demo/Test email Elapsed time: 3.984s com.testwithhari.katalon.plugins.Gmail.invokeMethod:0 Test Cases/motordev/Demo/Test email FAILED. Reason: org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.call() is applicable for argument types: (com.testwithhari.katalon.plugins.Gmail$_writePart_closure1) values: [com.testwithhari.katalon.plugins.Gmail$_writePart_closure1@70e659aa] Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), any(groovy.lang.Closure), and(java.lang.Boolean) at com.testwithhari.katalon.plugins.Gmail.invokeMethod(Gmail.groovy) at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50) at Test email.run(Test email:18) at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119) at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:339) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105) at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source) at TempTestCase1605088518877.run(TempTestCase1605088518877.groovy:25) Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.call() is applicable for argument types: (com.testwithhari.katalon.plugins.Gmail$_writePart_closure1) values: [com.testwithhari.katalon.plugins.Gmail$_writePart_closure1@70e659aa] Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), any(groovy.lang.Closure), and(java.lang.Boolean) at com.testwithhari.katalon.plugins.Gmail.writePart(Gmail.groovy:262) at com.testwithhari.katalon.plugins.Gmail.readLatestEMailBodyContent(Gmail.groovy:67) ... 14 more

June 28, 2023

555

iamkaylers
July 15, 2020

Hi Hari, I'm getting this error =============== ROOT CAUSE ===================== Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.call() is applicable for argument types: (com.testwithhari.katalon.plugins.Gmail$_writePart_closure1) values: [com.testwithhari.katalon.plugins.Gmail$_writePart_closure1@7c6189d5] ================================================ 07-15-2020 08:40:30 PM Test Cases/Tests/Forgot Password Test/readEmail Elapsed time: 10.353s com.testwithhari.katalon.plugins.Gmail.invokeMethod:0 Test Cases/Tests/Forgot Password Test/readEmail FAILED. Reason: org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.call() is applicable for argument types: (com.testwithhari.katalon.plugins.Gmail$_writePart_closure1) values: [com.testwithhari.katalon.plugins.Gmail$_writePart_closure1@7c6189d5] Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), and(java.lang.Boolean), any(groovy.lang.Closure) at com.testwithhari.katalon.plugins.Gmail.invokeMethod(Gmail.groovy) at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50) at readEmail.run(readEmail:18) at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119) at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105) at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source) at TempTestCase1594816828959.run(TempTestCase1594816828959.groovy:25) Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.call() is applicable for argument types: (com.testwithhari.katalon.plugins.Gmail$_writePart_closure1) values: [com.testwithhari.katalon.plugins.Gmail$_writePart_closure1@7c6189d5] Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), and(java.lang.Boolean), any(groovy.lang.Closure) at com.testwithhari.katalon.plugins.Gmail.writePart(Gmail.groovy:262) at com.testwithhari.katalon.plugins.Gmail.readLatestEMailBodyContent(Gmail.groovy:67) ... 14 more

trilok
March 9, 2020

Hi Hari, I'm receiving below error message,org.codehaus.groovy.runtime.InvokerInvocationException: javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect at com.testwithhari.katalon.plugins.Gmail.invokeMethod(Gmail.groovy) at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50) at SampleGmailReadtest.run(SampleGmailReadtest:18) at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194) at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119) at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105) at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source) at TempTestCase1583756746955.run(TempTestCase1583756746955.groovy:23)

June 28, 2023

555

Noor Yeaser Khan
September 9, 2019

This is a great plugin for Katalon Studio. I have used it many times as it helps with an applications Sign Up/Registration with email feature. Thanks Hari! I just got a quick request for you. Can you kindly provide us with any resource/tutorial where we can learn about how to click a button, such as 'Verify Email Address' in an email with HTML content.

June 28, 2023

555

June 28, 2023

555

Rodrigo Calabretta
November 13, 2019

I want to know the same requested here! I need to automate by clicking on a button

Load more Show less
vigneswaran
September 4, 2019

Hi Hari , is there any update regarding how to read a mail if it is in HTML content. regards vignes

June 28, 2023

555

June 28, 2023

555

TestWithHari
September 4, 2019

Hi Vigneshwaran, Thanks for a 5-star rating. The current version of the plugin should work for HMTL contents as well. Also shortly I am releasing new version with loads of the feature. Meanwhile, if you need more help plrase you always can reach to me. Many thanks.

Load more Show less
Adnan Shaikh
August 21, 2019

Unable to see plugin after reloading in Katalon studio but it is active showing on web portal, not working with the latest version 6.3.2

June 28, 2023

555

June 28, 2023

555

June 28, 2023

555

June 28, 2023

555

Pete Cavagnaro
August 26, 2019

Hi Hari, running into the same issue on 6.3.2. When I go to re-load plugins the plugin is not displayed in the list

Adnan Shaikh
August 21, 2019

Hi Hari, still it is not working for me. Please provide another solution for this.

TestWithHari
August 20, 2019

Hi Adnan, Thanks for the rating. I just updated the plugin for latest Katalon version. Please try now. Also, If plugin not able to load related issues mostly Katalon code team can helo I believe it is nothing to do with plugins as technically plugin written has less control in resolving the issues. Please let me know if you need more details. If your issue resolved and you think you can change your rating for the plugin is much appriciated. Thanks

Load more Show less
Tester Pegasus
July 16, 2019

I cant read email content or the body for those with PDF attached :(

June 28, 2023

555

June 28, 2023

555

June 28, 2023

555

Tester Pegasus
July 21, 2019

Yes I have shared the details in Q & A.

TestWithHari
July 16, 2019

Hi, Could you please share the error details you are getting. If email body has multi-content, at the moment keyword does not handle such emails. Shortly more capabilities will be added. Please watch this plugin. Thanks.

Load more Show less
Ajay Kumar
June 15, 2019

why is it unavailable to install?

June 28, 2023

555

June 28, 2023

555

TestWithHari
June 15, 2019

Hi Ajay, I am not sure what error you are getting while installing the plugin. I have changed the Katalon compatible version with the plugin. Please try, I think you should be able to install it now. Also if you have still issue with installing the plugin, it is a most likely issue with Katalon store platform because of their site thire site maintance or some related issues. Please let try let me know.

Load more Show less
Tina
June 3, 2019

June 28, 2023

555

June 28, 2023

555

TestWithHari
June 3, 2019

Thanks for the 5-star rating. Please let me know if you need more help. Thanks

Load more Show less
Hector P
May 29, 2019

June 28, 2023

555

June 28, 2023

555

TestWithHari
June 3, 2019

Thanks for the 5-star rating. Please let me know if you need more help. Thanks

Load more Show less
Tino
May 10, 2019

June 28, 2023

555

June 28, 2023

555

TestWithHari
May 10, 2019

Thanks for the 5-star rating, Tino. Please let me know if you need more help. Thanks

Load more Show less
jjgonche
April 15, 2019

Thank you very much for this fantastics customs keywords! No need to use javax.mail.jar an several java methods to read Google accounts anymore and for free! Thanks again for this great work.

June 28, 2023

555

June 28, 2023

555

TestWithHari
April 16, 2019

Hi, Thanks for your feedback. let me know if you come across issues. Also, keep watching the plug-in. Shortly I am adding more keywords.

Load more Show less
Araminta
April 5, 2019

Great! This plugin is exactly what I need for my project. Thank you Hari. Looking forward to seeing you list more plugins to store!

June 28, 2023

555

TestWithHari
April 5, 2019

Thanks for the feedback Araminta. Shortly, I am adding more keywords for this plugin which can help to do more with Gmail. Also, more plugins will be added soon. Keep watching. Thanks

API keys are required in Katalon Studio Commandline Execution. Generate Key
Information
Project details
Version
1.2.0
Type
Custom Keywords Plugin
Last updated
March 31, 2021 8:39 am
Publisher
Privacy and License Agreement