Testcase always shows 0% when run in Jenkins


#1

I set up a sample project on Jenkins with Katalon and when run it, the project progress always shows 0%, seems that it’s not running.

Does anyone know how to fix it? or it’s bug.
I’m using Chrome version 72 + Katalon 6.1 on win 10


#2

having the same issue. though if ran through cmd, it works


#3

Could you please try again with Firefox?


#4

I tried it and it’s the same issue


#5

Please send us the console log.


#6

@devalex88: i’m attached log as below. As i see, after function setText, this issue will occur:

Opening project file: C:\Users\tailet\Katalon Studio\Demo_Jenkins_KTL.prj\Jira UI Tests with Katalon Studio.prj
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
169 2.4.7.xx-201611170128-e46 = ACTIVE
/C%%Users%tailet%Katalon Studio%Demo_Jenkins_KTL.prj%Jira UI Tests with Katalon Studio.prj/Keywords/com/jira/components/SimpleIssueListItem.groovy: 22 Groovy:unable to resolve class internal.GlobalVariable
/C%%Users%tailet%Katalon Studio%Demo_Jenkins_KTL.prj%Jira UI Tests with Katalon Studio.prj/Keywords/com/jira/utils/JWait.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/C%%Users%tailet%Katalon Studio%Demo_Jenkins_KTL.prj%Jira UI Tests with Katalon Studio.prj/Test Listeners/TestListener.groovy: 9 Groovy:unable to resolve class internal.GlobalVariable
Generating global variables…
Parsing custom keywords…
Project ‘Jira UI Tests with Katalon Studio’ opened


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)

2019-04-22 16:41:32.109 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/Regression Tests/Regression Tests
2019-04-22 16:41:32.618 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = HN-SD-0131-WK$ - HN-SD-0131-WK.HarveyNash.vn.local
2019-04-22 16:41:32.619 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Windows 10 64bit
2019-04-22 16:41:32.619 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 192.168.204.2
2019-04-22 16:41:32.620 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 6.1.0.1
2019-04-22 16:41:33.366 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-04-22 16:41:33.366 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Advance Examples/Tests/Create Issue Test/User should be able to create issue successfully
2019-04-22 16:41:33.485 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) project = Katalon-Demo (KD)
2019-04-22 16:41:33.495 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) issueType = Bug
2019-04-22 16:41:33.506 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) priority = Low
2019-04-22 16:41:33.519 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) description = As a User, I want to be able to create a new tickets, so that I can keep track all tasks
2019-04-22 16:41:33.530 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) summary = Ticket created at
2019-04-22 16:41:35.172 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
2019-04-22 16:41:35.812 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)

2019-04-22 16:42:02.350 DEBUG uld be able to create issue successfully - 1: callTestCase(findTestCase(“Advance Examples/Pages/Login Page/Login with username and encrypted password”), [“username”:username, “encryptedPassword”:encrypted_password], STOP_ON_FAILURE)
2019-04-22 16:42:02.610 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-04-22 16:42:02.610 INFO c.k.katalon.core.main.TestCaseExecutor - CALL Test Cases/Advance Examples/Pages/Login Page/Login with username and encrypted password
2019-04-22 16:42:02.660 INFO c.k.katalon.core.main.TestCaseExecutor - username = tom
2019-04-22 16:42:02.661 INFO c.k.katalon.core.main.TestCaseExecutor - encryptedPassword = KLAk0b2rAgvA1EV7zgpKiS/uV+5nc48Y
2019-04-22 16:42:02.887 DEBUG gin with username and encrypted password - 1: setText(findTestObject(“Test Objects/Pages/Login Page/elUsername”), username)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


#7

Will it run fine via GUI on the same machine?


#8

@devalex88: yes, it works well when i run in cmd


#9

@devalex88L any update about issue?


#10

What was the command used in Jenkins?


#11

Here is command i’m using:

-projectPath=“C:\Users\tailet\Katalon Studio\Demo_Jenkins_KTL.prj\Jira UI Tests with Katalon Studio.prj” -retry=0 -testSuitePath=“Test Suites/Regression Tests/Regression Tests” -executionProfile=“qa profile” -browserType=“Chrome”


#12

hi,

which env you are using?
if Linux more than Ubuntu, e.g. RHEL7 so then have to remove all white spaces from the object repository paths
as I see 
2019-04-22 16:42:02.887 DEBUG gin with username and encrypted password - 1: setText(findTestObject(“Test Objects/Pages/Login Page/elUsername”), username)

Login Page --> move it Login-Page or or or any what you will without white space

that was my issue in Linux RHEL7 OS


#13

oh

I see your env is win 10 :slight_smile:


#14

Is there any way to run Katalon on Jenkins? Should i downgrade version of Katalon?


#15
yes it is
i am using Katalon version 6.1.2 with Jenkins 2.164.2
check your chrome version, if it is latest 74 then you will need to download latest chromedriver from the chrome download site (http://chromedriver.chromium.org/downloads)  and move it to the Katalon folder
C:\KatalonStudio\Katalon6.1.12\configuration\resources\drivers\chromedriver_win32
replace it with existing one

#16

I did it but seems that it still has the issue


#17

Hi,

it's said in your log "unable to find element...."
is the browser opened?

#18

it didn’t open. Should I stop run jenkins by services and open it by command line?


#19

hi,

could you show your Jenkins run script (command)?


#20

here is my cmd:

-projectPath=“C:\Users\tailet\Katalon Studio\Demo_Jenkins_KTL.prj\Jira UI Tests with Katalon Studio.prj” -retry=0 -testSuitePath=“Test Suites/Regression Tests/Regression Tests” -executionProfile=“qa profile” -browserType=“Chrome”