# Is it possible to run command writing test cases only in non GUI katalon Linux (KRE) environment via jenkins?

**URL:** <https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504>\
**Category:** Desktop Testing\
**Tags:** linux\
**Created:** [November 10, 2022, 6:30am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504 "2022-11-10T06:30:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer6](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/developer6/32/20464_2.png) [@developer6](https://forum.katalon.com/u/developer6)\
**Post date:** [November 10, 2022, 6:30am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/1 "2022-11-10T06:30:24Z")

</div>

Is it possible to run command writing test cases only in non GUI katalon Linux (KRE) environment via jenkins?

only cmmand line non-gui kre,  
web, android test case  
Is it feasible?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [November 10, 2022, 7:37am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/2 "2022-11-10T07:37:34Z")

</div>

I don’t see what you are asking for, but the following info may help:

> **[Execute Windows commands | Katalon Docs](https://docs.katalon.com/docs/legacy/katalon-studio-enterprise/tips-and-tricks/execute-windows-commands)**
>
> To execute Windows command line, simply use this script in your test case:

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [November 10, 2022, 8:16am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/3 "2022-11-10T08:16:56Z")

</div>

I think what the user ask is, if is possible to run such tests on a **non-gui (headless) Linux** machine with KRE (through Jenkins or whatever else CI tool)  
The development can be done on anything …  
Well, the answer is yes and maybe.  
You have to start to look here for the requirements:

> **[Supported environments for Katalon Studio and Katalon Runtime Engine |...](https://docs.katalon.com/docs/general-information/supported-environments/supported-environments-for-katalon-studio-and-katalon-runtime-engine)**
>
> Note Katalon Studio vs Katalon Studio Enterprise Features.Katalon Runtime Engine (KRE) is the test execution add-on of Katalon Studio. KRE allows you to execute tests in a command-line interface (CLI).

For WebUI testing, this is possible.  
Either you can use Firefox or Chrome headless driver, or use `xvfb` and a normal browser driver.  
Hints you can get from the old doc:

> **[Common Configuration | Katalon Docs](https://docs.katalon.com/docs/legacy/katalon-runtime-engine/cicd-tools-integration/common-configuration)**
>
> A CI/CD plugin helps download, deploy, and execute Katalon Studio on servers automatically.

Alternate you can run the tests using the Docker image, this wraps already `xvfb-run` for execution.

On the Mobile part I will let other users to speak, since I never did such.

LE: from the docs, looks like Appium is available in npm, and Adroid Studio is available for linux, so at least development on a Linux machine should be possible, but I don’t have any idea what is needed for execution with KRE:

> **[\[Mobile\] Configure Android Studio (Emulator) in Katalon Studio | Katalon Docs](https://docs.katalon.com/docs/author/manage-projects/set-up-projects/mobile-testing/android/mobile-configure-android-studio-emulator-in-katalon-studio)**
>
> The Android Emulator simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device. To learn more about the Android emulator...

---

<div class="post-metadata">

**Author:** ![developer6](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/developer6/32/20464_2.png) [@developer6](https://forum.katalon.com/u/developer6)\
**Post date:** [November 10, 2022, 9:12am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/4 "2022-11-10T09:12:32Z")

</div>

Is it possible to run testcases only with commands through KRE in a Linux environment without a GUI?

I am trying to execute test cases developed through Catalon through jenkins.

I am wondering if it is possible to run only commands in a Linux environment without a gui, so I leave an inquiry.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [November 10, 2022, 9:46am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/5 "2022-11-10T09:46:58Z")

</div>

i already answered that.  
yes, is possible, KRE is a cli only tool.  
the details matters, read my previous post carefully

---

<div class="post-metadata">

**Author:** ![developer6](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/developer6/32/20464_2.png) [@developer6](https://forum.katalon.com/u/developer6)\
**Post date:** [November 11, 2022, 5:57am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/6 "2022-11-11T05:57:40Z")

</div>

This error occurs when running in Jenkins with the kre command in a Linux environment.

How do I solve it?

It runs fine in the gui local environment.

But non-display, non-gui  
only cmdline kre In the linux environment, an error occurs when the test case is executed like this.

what should I do?

 ![스크린샷 2022-11-11 오후 2.54.20](https://europe1.discourse-cdn.com/katalon/original/3X/c/e/ce5a595bdf2973a05d9a82d2acaac971b8a65058.jpeg)

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [November 13, 2022, 10:00am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/7 "2022-11-13T10:00:43Z")

</div>

> [@developer6](#):
>
> Is it possible to run command writing test cases only in non GUI katalon Linux (KRE) environment via jenkins?

This question is answered and proved by you. The tests runs!

Why the tests fails? We cannot answer to this from the data you provided.

> [@developer6](#):
>
> It runs fine in the gui local environment.

- It runs fine also locally with KRE?
- What the tests do? What is the AUT?
- How do you run them in jenkins? (docker, jenkins plugin, standalone install of KRE)
- What is the browser in use (plain browser, headless browser)  
… and so on.

Apparently it fails because it cannot locate a certain object. Such can have multiple reasons.

---

<div class="post-metadata">

**Author:** ![developer6](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/developer6/32/20464_2.png) [@developer6](https://forum.katalon.com/u/developer6)\
**Post date:** [November 14, 2022, 4:07am UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/8 "2022-11-14T04:07:03Z")

</div>

Hi, binoel !

t fails because it cannot locate a certain object. Such can have multiple reasons. \* It runs fine also locally with KRE?  
 → Yes, Kre works fine in local environment, test case!

- What the tests do? What is the AUT?  
 → The test case is the process of logging in by clicking a button by accessing a specific url, entering id and password in the input.

- How do you run them in jenkins? (docker, jenkins plugin, standalone install of KRE)  
 → If you proceed with the automated test developed in the GUI environment, the test case mentioned above proceeds well without any errors. However, when running the test case on a non-gui Linux server, an Unable to find the element located error occurs.  
 → non-gui linux server

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/6/a/6a280e33c6e5ebc0dfa62d320494c1614b08de7a.png)  
and google-chrome (newest version)

- What is the browser in use (plain browser, headless browser)  
… and so on.  
 → and google-chrome (newest version)

Apparently it fails because it cannot locate a certain object. Such can have multiple reasons.  
 → As a result, when a test case developed in GUI is executed with kre on a non-gui Linux server, the error shown in the screenshot above occurs.  
object -\>Please recheck the objects properties to make sure the desired element is located.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [November 14, 2022, 3:59pm UTC](https://forum.katalon.com/t/is-it-possible-to-run-command-writing-test-cases-only-in-non-gui-katalon-linux-kre-environment-via-jenkins/80504/9 "2022-11-14T15:59:16Z")

</div>

The info you provided and the way you formatted the answers does not help much.  
I am old and I am not patient to solve puzzles to figure it out what are you trying to solve.

Please open a new topic and follow the guidelines here:

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919/1):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

The originating topic is already resolved IMHO.  
Cheers
