test suite passed on command-line, but failed on Jenkins

cmd: .\katalon -runMode=console -projectPath="C:\Users\<myProject.prj>" -reportFolder="C:\Users\<myProject.prj>\Reports" -reportFileName="report" -retry=0 -testSuitePath="Test Suites/" -browserType="Chrome"

this command-line ran and passed, when I run it directly on command-line, but failed on Jenkins with message "10-04-2017 10:15:03 AM - [FAILED] - Unable to click on object 'Object Repository/registerNewEmail/Register link' (Root cause: org.openqa.selenium.ElementNotVisibleException: element not visible". What is wrong? do I need any Jenkins Plugin for Katalon Studio or some Jenkins configuration is missing? thank you for your help! as soon as possible.

Tagged:

Comments

  • an excerpt from console output:
    10-04-2017 02:29:38 PM - [INFO] - Checking timeout
    10-04-2017 02:29:38 PM - [PASSED] - Wait for page load successfully
    10-04-2017 02:29:38 PM - [END] - End action : waitForPageLoad
    10-04-2017 02:29:38 PM - [PASSED] - Test Cases/RegisterProcess/tiaLogin
    10-04-2017 02:29:38 PM - [END] - End Test Case : Test Cases/RegisterProcess/tiaLogin
    10-04-2017 02:29:38 PM - [PASSED] - Call Test Case 'Test Cases/RegisterProcess/tiaLogin' successfully
    10-04-2017 02:29:38 PM - [END] - End action : callTestCase
    10-04-2017 02:29:38 PM - [START] - Start action : callTestCase
    10-04-2017 02:29:38 PM - [INFO] - Checking called Test Case
    10-04-2017 02:29:38 PM - [INFO] - Starting to call Test Case 'Test Cases/RegisterProcess/registerNewEmail'
    10-04-2017 02:29:38 PM - [START] - Start Test Case : Test Cases/RegisterProcess/registerNewEmail
    10-04-2017 02:29:38 PM - [INFO] - Evaluating variables for test case
    10-04-2017 02:29:38 PM - [INFO] - Variable 'country' is set to de
    10-04-2017 02:29:38 PM - [INFO] - Variable 'pwd' is set to test1234567890
    10-04-2017 02:29:38 PM - [INFO] - Variable 'emailAddress' is set to WbBc99kNreDcD@yopmail.com
    10-04-2017 02:29:38 PM - [START] - Start action : comment
    10-04-2017 02:29:38 PM - [INFO] - abcWebapp page is displayed
    10-04-2017 02:29:38 PM - [END] - End action : comment
    10-04-2017 02:29:38 PM - [START] - Start action : click
    10-04-2017 02:29:38 PM - [INFO] - Finding Test Object with id 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link'
    10-04-2017 02:29:38 PM - [INFO] - Checking object
    10-04-2017 02:29:38 PM - [INFO] - Checking timeout
    10-04-2017 02:29:38 PM - [INFO] - Finding web element with id: 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link' located by 'By.xpath: .//[@id='mnu-register']/a' in '30' second(s)
    10-04-2017 02:29:38 PM - [INFO] - Found 1 web elements with id: 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link' located by 'By.xpath: .//
    [@id='mnu-register']/a' in '30' second(s)
    10-04-2017 02:29:38 PM - [INFO] - Clicking on object: 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link'
    10-04-2017 02:29:39 PM - [FAILED] - Unable to click on object 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link' (Root cause: org.openqa.selenium.ElementNotVisibleException: element not visible
    (Session info: chrome=61.0.3163.100)
    (Driver info: chromedriver=2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 23 milliseconds
    Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
    System info: host: 'XXXXX', ip: '111.111.111.111', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_102'
    Driver info: com.kms.katalon.selenium.driver.CChromeDriver
    Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a), userDataDir=C:\WINDOWS\TEMP\scoped_dir7888_18634}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=61.0.3163.100, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]

  • This is the root cause of your issue:

    10-04-2017 02:29:38 PM - [INFO] - Clicking on object: 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link'
    10-04-2017 02:29:39 PM - [FAILED] - Unable to click on object 'Object Repository/registerNewEmail/Page_Register or Sign-in/Register link' (Root cause: org.openqa.selenium.ElementNotVisibleException: element not visible
    

    There is no status for test suite, so it can't be a passed test suite in your case. Jenkins mark this execution failed because of above issue: "Element is not visible" => This object is not visible when you try to click, so I think you need to add 'Wait For Element Visible' before 'Click' step

  • already put a wait element for clickable before that step, but no help! it is strange. It worked in command-line and in Katalon, but not in Jenkins. There are more following steps, which cause problem like this step! this is not the only one step.

Sign In or Register to comment.