Gmail plugin running in commandline mode

hi

try to run a test using gmail plugin. it worked with studio execution but command line execution failed with this message:
2019-08-20 01:15:10 - [TEST_CASE][ERROR] - Test Cases/Econsult Actions/resetPassword: Test Cases/Econsult Actions/resetPassword FAILED.
Reason:
java.lang.ClassNotFoundException: com.testwithhari.katalon.plugins.Gmail
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.getCustomKeywordClassAndSetMetaClass(CustomKeywordDelegatingMetaClass.java:100)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:45)
at resetPassword.run(resetPassword:42)
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.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:150)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:123)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:87)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1566263706456.run(TempTestSuite1566263706456.groovy:35)

error message for delete all gmail:

2019-08-20 01:29:29 - [TEST_CASE][ERROR] - Test Cases/Econsult Actions/submitNassignNresponseNCloseConsult: Test Cases/Econsult Actions/submitNassignNresponseNCloseConsult FAILED.
Reason:
java.lang.ClassNotFoundException: com.testwithhari.katalon.plugins.Gmail
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.getCustomKeywordClassAndSetMetaClass(CustomKeywordDelegatingMetaClass.java:100)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:45)
at submitNassignNresponseNCloseConsult.run(submitNassignNresponseNCloseConsult:386)
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.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:150)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:123)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:87)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1566264566069.run(TempTestSuite1566264566069.groovy:35)

the source code of the gmail plugin is for read:
String resetPasswdContent = CustomKeywords.‘com.testwithhari.katalon.plugins.Gmail.readLatestEMailBodyContent’(‘testresetrubicon@gmail.com’,‘Newpass123’, ‘Inbox’)

for delete all:
CustomKeywords.‘com.testwithhari.katalon.plugins.Gmail.deleteAllEMails’(‘testspecrubicon@gmail.com’, ‘Newpass123’, ‘Inbox’)

count email:
assert CustomKeywords.‘com.testwithhari.katalon.plugins.Gmail.getEmailsCount’(‘testpcprubicon@gmail.com’, ‘Newpass123’, ‘Inbox’).equals(3)

the command line use for execution:
./Katalon\ Studio.app/Contents/MacOS/katalon --args -noSplash -runMode=console -consoleLog -projectPath="/Users/waikisin/rubiconmd-regression-test.prj/Data-driven Tests with Katalon Studio.prj" -retry=0 -testSuiteCollectionPath=“Test Suites/Econsult Actions - Chrome”

What is your cmd line execution command ? Did you add the apiKey ?

./Katalon\ Studio.app/Contents/MacOS/katalon --args -noSplash -runMode=console -consoleLog -projectPath="/Users/waikisin/rubiconmd-regression-test.prj/Data-driven Tests with Katalon Studio.prj" -retry=0 -testSuiteCollectionPath=“Test Suites/Econsult Actions - Chrome”

Hello,
You are missing the apiKey in your command line.
Check this :

I think the api key might have resolve it. I will test more to see if it is ok.

If you have no apiKey, no plugin from the store will work. If you add plugin, you have to generate and replace the apiKey.

apikey worked