while use verifyImagePresent method, prompt exception as below:
Unable to verify image present (Root cause: java.lang.NoSuchMethodError: com.google.common.base.Objects.toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;)
and checked dependent “com.google.guava_23.0.0.jar” package, but not found “Objects$ToStringHelper” in this jar;
Thanks. I am able to reproduce it. The root cause of it is you are using absolute path for the image. Can you check on ‘Use relative path for image’ checkbox and copy your image into your project’s folder?
Not work by set ‘Use relative path for image’, paste the log as below.
!ENTRY org.eclipse.core.resources 2 10035 2017-11-28 06:37:48.799
!MESSAGE The workspace will exit with unsaved changes in this session.
katalon.versionNumber=5.1.0
katalon.buildNumber=2
Could not find element with Id ‘com.kms.katalon.composer.webservice.handledmenuitem.webServiceRequest’
Could not find element with Id ‘com.kms.katalon.composer.mobile.dynamicmenucontribution.ios’
Could not find element with Id ‘com.kms.katalon.composer.mobile.dynamicmenucontribution.ios’
Warning: NLS unused message: Key in: com.kms.katalon.composer.project.constants.composerProjectMessages
Warning: NLS unused message: Key in: com.kms.katalon.composer.testcase.constants.composerTestcaseMessages
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Warning: NLS unused message: PA_LBL_CREATED_DATE in: com.kms.katalon.composer.testsuite.constants.composerTestsuiteMessages
Warning: NLS unused message: PA_LBL_LAST_UPDATED in: com.kms.katalon.composer.testsuite.constants.composerTestsuiteMessages
Warning: NLS unused message: Key in: com.kms.katalon.composer.objectrepository.constant.composerObjectRepositoryMessages
Warning: NLS unused message: ACTIVATED_PROP_NAME in: com.kms.katalon.constants.messages
Warning: NLS unused message: ACTIVATE_INFO_INVALID in: com.kms.katalon.constants.messages
Warning: NLS unused message: ACTIVATION_CODE_INVALID in: com.kms.katalon.constants.messages
Warning: NLS unused message: ACTIVATION_COLLECT_FAIL_MESSAGE in: com.kms.katalon.constants.messages
Warning: NLS unused message: DIA_TITLE_FUNCTIONS_INTRODUCTION in: com.kms.katalon.constants.messages
Warning: NLS unused message: ERR_CONSOLE_MODE in: com.kms.katalon.constants.messages
Warning: NLS unused message: REQUEST_CODE_PROP_NAME in: com.kms.katalon.constants.messages
!SESSION 2017-11-28 06:37:58.141 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data config
!ENTRY org.eclipse.egit.ui 2 0 2017-11-28 06:38:08.556
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: ‘C:\Users\palmer.piao’. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
Tue Nov 28 06:38:10 CST 2017
{“traits”:{“kat_version”:“5.1.0 build 2”,“project”:1,“test_case”:7,“test_run”:11,“new_project”:0,“new_test_case”:0,“new_test_run”:0,“new_test_case_created”:0,“new_project_created”:0},“userId”:“chenghaoo@hotmail.com”}