Custom Keyword to receive Gmail

Hi Harold,

any possibilities to set proxy option on logonToGmail(); method?

Works perfect on my local machine, but stacks on SocketTimeoutException when running it via CI/CD (Bamboo) on master.



For everyone running with the same issue, working solution below:

`private Gmail logonToGmail() {

	// Build a new authorized API client service.
	Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("host", port));
	final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport.Builder().setProxy(proxy).build();
	return new Gmail.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))

you sir, are amazing!
Combined this with split at substring code i wrote and am now pulling email strings back into my IDE right at a certain point to get a transaction number I needed. Yesss

I am getting below error,can someone help me to resolve it.
I double checked all jars and they seem to be Ok.

org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoSuchMethodError:;
at GmailUtil.invokeMethod(gmail.groovy)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(

Hello guys, could any of you tell me what Iā€™m doing wrong here? I already import the jars but is still failing the imports

Maybe the Jar are not the correct ones?

Thanks in advance!

It seems the issue of not being able to find is resolved by replacing JacksonFactory with GsonFactory, since the former is deprecated.

Unforunately I get an even weirder error:
It throws an IllegalArgumentException when calling GoogleAuthorizationCodeFlow.Builder

This looks perfect for my needs.

However, I get the error it cannot resolve

Not sure how to solve that.

Any help would be greatly appreciated.