Test object with id 'Object Repository/' does not exist


#1

Hi,
I executed my gitlab-runner in docker, DinD. Test cases run smoothly in my machine and all test objects can be found as well. However gitlab-ci job failed due to missing Test Objects. It seems that the directory is somehow changed after the repo was cloned. How can I fix this? Thanks in advance.

Running with gitlab-runner 11.5.0 (3afdaba6)
  on katalon-test-locally d5d788d9
Using Docker executor with image wtfyucheng/katalon:1.3 ...
Pulling docker image wtfyucheng/katalon:1.3 ...
Using docker image sha256:9321d7ac6974168773e76ac4b295aefea3989152381e1d3625fddfc4d6db2935 for wtfyucheng/katalon:1.3 ...
Running on runner-d5d788d9-project-1096-concurrent-0 via e303d534a527...
Cloning repository for katalon-test with git depth set to 5...
Cloning into '/builds/ext_erichu/threat_service_test_cases'...
Checking out 8afff635 as katalon-test...
Skipping Git submodules setup
$ echo "Starting Katalon Studio"
Starting Katalon Studio
$ report_dir=/root/report
$ mkdir -p $report_dir
$ $KATALON_BASE_ROOT_DIR/scripts/xvfb.sh start
+ XVFB=/usr/bin/Xvfb
+ XVFBARGS=':99 -screen 0 1024x768x24 -fbdir /var/run -ac'
+ PIDFILE=/var/run/xvfb.pid
+ case "$1" in
+ echo -n 'Starting virtual X frame buffer :99 1024x768x24'
Starting virtual X frame buffer :99 1024x768x24+ start-stop-daemon --start --quiet --pidfile /var/run/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1024x768x24 -fbdir /var/run -ac
+ echo .
.
+ exit 0
$ $KATALON_KATALON_INSTALL_DIR/katalon -runMode=console -reportFolder=$report_dir -projectPath="$CI_PROJECT_DIR/Katalon/Katalon.prj" -retry=0 -testSuitePath="Test Suites/simple test case" -executionProfile="staging" -browserType="Chrome"
Request sent successfully.
Starting Groovy-Eclipse compiler resolver.  Specified compiler level: unspecified
150 2.4.7.xx-201611170128-e46 = ACTIVE

--------------------------------------------------------------------------------
Test Suites/simple test case - Chrome - 20181211_061916..................0/1(0%)
--------------------------------------------------------------------------------

Request sent successfully.
12-11-2018 06:19:18 AM - [START]  - Start Test Suite : Test Suites/simple test case
12-11-2018 06:19:19 AM - [RUN_DATA] - Logging run data 'hostName' with value 'root - runner-d5d788d9-project-1096-concurrent-0'
12-11-2018 06:19:19 AM - [RUN_DATA] - Logging run data 'os' with value 'Linux 64bit'
12-11-2018 06:19:19 AM - [RUN_DATA] - Logging run data 'hostAddress' with value '172.17.0.3'
12-11-2018 06:19:19 AM - [RUN_DATA] - Logging run data 'katalonVersion' with value '5.7.1.1'
12-11-2018 06:19:19 AM - [START]  - Start Test Case : Test Cases/Find test objects
12-11-2018 06:19:19 AM - [INFO]   - Evaluating variables for test case
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - createCase = "Page_TIP/create case"
12-11-2018 06:19:20 AM - [END]    - End action : Statement - createCase = "Page_TIP/create case"
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((createCase + /btn_next))
12-11-2018 06:19:20 AM - [INFO]   - Finding Test Object with id 'Object Repository/Page_TIP/create case/btn_next'
12-11-2018 06:19:20 AM - [END]    - End action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((createCase + /btn_next))
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((createCase + /invalid URL))
12-11-2018 06:19:20 AM - [INFO]   - Finding Test Object with id 'Object Repository/Page_TIP/create case/invalid URL'
12-11-2018 06:19:20 AM - [WARNING] - Test object with id 'Object Repository/Page_TIP/create case/invalid URL' does not exist
12-11-2018 06:19:20 AM - [END]    - End action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((createCase + /invalid URL))
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - home = "Page_TIP/Home"
12-11-2018 06:19:20 AM - [END]    - End action : Statement - home = "Page_TIP/Home"
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /btn_create))
12-11-2018 06:19:20 AM - [INFO]   - Finding Test Object with id 'Object Repository/Page_TIP/Home/btn_create'
12-11-2018 06:19:20 AM - [WARNING] - Test object with id 'Object Repository/Page_TIP/Home/btn_create' does not exist
12-11-2018 06:19:20 AM - [END]    - End action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /btn_create))
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /btn_search))
12-11-2018 06:19:20 AM - [INFO]   - Finding Test Object with id 'Object Repository/Page_TIP/Home/btn_search'
12-11-2018 06:19:20 AM - [WARNING] - Test object with id 'Object Repository/Page_TIP/Home/btn_search' does not exist
12-11-2018 06:19:20 AM - [END]    - End action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /btn_search))
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /Home Page))
12-11-2018 06:19:20 AM - [INFO]   - Finding Test Object with id 'Object Repository/Page_TIP/Home/Home Page'
12-11-2018 06:19:20 AM - [WARNING] - Test object with id 'Object Repository/Page_TIP/Home/Home Page' does not exist
12-11-2018 06:19:20 AM - [END]    - End action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /Home Page))
12-11-2018 06:19:20 AM - [START]  - Start action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /href_pagination))
12-11-2018 06:19:20 AM - [INFO]   - Finding Test Object with id 'Object Repository/Page_TIP/Home/href_pagination'
12-11-2018 06:19:20 AM - [WARNING] - Test object with id 'Object Repository/Page_TIP/Home/href_pagination' does not exist
12-11-2018 06:19:20 AM - [END]    - End action : Statement - com.kms.katalon.core.testobject.ObjectRepository.findTestObject((home + /href_pagination))
12-11-2018 06:19:20 AM - [PASSED] - Test Cases/Find test objects
12-11-2018 06:19:20 AM - [END]    - End Test Case : Test Cases/Find test objects
12-11-2018 06:19:20 AM - [END]    - End Test Suite : Test Suites/simple test case
Copying report to folder /root/report...

--------------------------------------------------------------------------------
Test Suites/simple test case - Chrome - 20181211_061916................1/1(100%)
--------------------------------------------------------------------------------

EDIT: Add execution logs


#2

Could you please elaborate on the issue?


#3

@devalex88 I just added the execution logs. Thanks for your reply:)


#4

Have all Test Objects been pushed to the Git repository? You can verify by cloning the repository into another place.


#5

@devalex88 Hi, I just fixed the issue by adding the following to .gitignore:

.classpath
/Reports
.project
/bin/
/Libs/Temp*

After I recommitted all files, the error disappeared. Yet I got another one saying “ERROR: Job failed: command terminated with exit code 1”. I’ll address the issue in a new post. Thanks a lot :slight_smile: