# Video is empty when scenario is launched by Katalon runtime trough Jenkins windows instance

**URL:** <https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974>\
**Category:** Test Management\
**Tags:** runtime-engine, katalon-studio\
**Created:** [May 28, 2020, 3:57pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974 "2020-05-28T15:57:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [May 28, 2020, 3:57pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/1 "2020-05-28T15:57:40Z")

</div>

Hello,  
I would like to get access to video in my Jenkins report.  
Katalon runtime does generate a video in folder “Reports / 20200527\_180202 / sEtapes ODP et volumes / 20200527\_180202 / videos /” =\> great 🙂  
But unfortunately, this video is always empty (screen is black all the time of test) ☹

How could I do to make Katalon runtime generate the real test video ?

katalon is launched by this command :

> D:\Tools\Jenkins\workspace\Etapes ODP et volumes\>cd D:\Tools\tmp
> 
> D:\Tools\tmp\>“D:\Tools\Katalon\_Studio\_Engine\_Windows\_64-7.4.0\katalonc” -noSplash -runMode=console -projectPath=“D:\Tools\Jenkins\workspace\Etapes ODP et volumes\reflexCoreModel.prj” -retry=0 -testSuitePath=“Test Suites/sEtapes ODP et volumes” -executionProfile=“test Core-Model023 - 9.14” -browserType=“Chrome” -apiKey=“xxxxxx” --config -proxy.option=MANUAL\_CONFIG -proxy.server.type=HTTP -proxy.server.address=xxxxxxx -proxy.server.port=xxxxx -proxy.excludes xxxxx  
> Katalon workspace folder is set to default location: C:\Windows\TEMP\session-374d9449  
> Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [May 29, 2020, 4:16am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/2 "2020-05-29T04:16:11Z")

</div>



---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 3, 2020, 1:51pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/3 "2020-06-03T13:51:10Z")

</div>

Hello,  
to complete my post, in fact video is well recorded by katalon runtime when launching it directly in a DOS command prompt (“katalonc.exe …”).

But it create black videos when I launch katalonc.exe within a Jenkins instance.  
It seem due to the fact that when launched in Jenkins , chrome browser is not visible at screen.

I found another post when other users have same problem than me :

> [@Video record not working if executed in cmd or Jenkins](http://forum.katalon.com/t/video-record-not-working-if-executed-in-cmd-or-jenkins/6639):
>
> Hi, When I execute test suite through Katalon Studio video gets recorded. but when executed in cmd or Jenkins video is not recorded. It creates temp file. Is there any reason/solution for this? What m i missing?

I tried to launch it within "Execute windows batch command " bloc in Jenkins, and also with Jenkins Katalon plugin.  
I never achieved to get a usable video ☹

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 3, 2020, 2:41pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/4 "2020-06-03T14:41:42Z")

</div>

Ok,  
I finally found problem and solution 🧐 thanks to this post :

> <https://stackoverflow.com/questions/9618774/jenkins-selenium-gui-tests-are-not-visible-on-windows>

My Jenkins instance is installed on a windows server and it is launch at startup as a windows service lanching “D:\Tools\Jenkins\jenkins.exe”.  
So I had to uninstall Jenkins of windows services, and replace it by a dos batch file containing this :

> SET JENKINS\_HOME=D:\Tools\Jenkins
> 
> set
> 
> d:  
> cd D:\Tools\Jenkins  
> .\jre\bin\java -jar jenkins.war --webroot=“D:\Tools\Jenkins\war”  
> pause

Now, I can see chrome browser launched, and Katalonc is able to record it on Jenkins !! 🥳

@ThanhTo, @Jass, perhaps this trick may be documented somewhere in Katalon because this is very hard to found problem !

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [June 8, 2020, 8:33am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/5 "2020-06-08T08:33:00Z")

</div>

Hi @staniere

We appreciate your contribution. We have added a tip for troubleshooting the issue of empty video recorded [here](https://docs.katalon.com/katalon-studio/docs/jenkins-plugin-windows.html#troubleshoot-empty-videos-recorded-after-running-tests).

Happy testing,

Jass

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 11, 2020, 2:28pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/6 "2020-06-11T14:28:02Z")

</div>

Hello,  
unfortunately, tricks described above are not suffisant to get video on Jenkins.  
Indeed, I get again a lot of black videos on my Jenkins workspace in Katalon Reports//video folder

I just undestood that video are ok when I am connected (with Microsoft Remote Desktop) to Jenkins server.  
By after disconnecting from this remote windows server, videos get black again…

So I don’t know how to get correct videos on my Jenkins server again ☹

For information, my Jenkins server is a virtual windows server 2012 instance hosted on WMWARE.  
I suppose that when disconnected from remote desktop, graphical process is gone and Katalon video recorder does not find any screen to record… (even if katalon continue test with no problem as we can see in Jenkins console)

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [June 12, 2020, 2:45am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/7 "2020-06-12T02:45:39Z")

</div>

@staniere

Katalon video recorder is a UI service that captures the current desktop screen. When you logged out from your computer, Windows does not allow applications/services can capture your desktop screen that means the video content will be blank.

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 15, 2020, 2:01pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/8 "2020-06-15T14:01:01Z")

</div>

hello @duyluong ,  
so there is no way to record a video on a Jenkins instance with Katalon ?? 🥵

Without this functionnality, Katalon will be much less usefull as I expected as it will be difficult to analyse failed test in our Continuous Integration platform ☹

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [June 15, 2020, 4:20pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/9 "2020-06-15T16:20:27Z")

</div>

@staniere

You can but don’t logged out when you need the video record during the test.

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [June 16, 2020, 8:16am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/10 "2020-06-16T08:16:21Z")

</div>

I am disappointed as my company bought a Katalon runtime license in order to be able to launch katalon test on our Jenkins CI/CD system. And it seem that usefull functionnality as video recording is not available on it (I think that my company is not alone to use VMware servers to host a Jenkins instance)  
However, video seem more important when we use katalon in CI/CD system in order to be able to check regressions causes.

If we are not able to configure our VMware machine in order to keep open graphical after client disconnection, I will try to check how to use external librairies such as [https://www.ignatiuz.com/blog/selenium/recording-of-test-execution-using-atutestrecorder/](https://www.ignatiuz.com/blog/selenium/recording-of-test-execution-using-atutestrecorder/) in order to get around problem, but it’s a shame to reinvent wheel as we paid for KRE.

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [August 25, 2020, 7:51am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/11 "2020-08-25T07:51:20Z")

</div>

I hope this feature request recently open will solve problem :

> <https://github.com/katalon-studio/katalon-studio/issues/352>
>
> Currently video recording records the screen, if users run tests in headless mode or do something else while waiting then the...

---

<div class="post-metadata">

**Author:** ![anuradha](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/anuradha/32/16103_2.png) [@anuradha](https://forum.katalon.com/u/anuradha)\
**Post date:** [March 17, 2021, 6:52am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/12 "2021-03-17T06:52:44Z")

</div>

Hello @staniere, have you been able to use this feature in headless or even normal chrome?  
Thanks

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [July 23, 2021, 10:22am UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/13 "2021-07-23T10:22:06Z")

</div>

hello anuradha  
sorry, I did not see your question before (as I receive no email from [forum.katalon.com](http://forum.katalon.com))

Today, I tried browser level video and it worked on my katalon desktop.  
But I did not achieve to make it working trougth Katalon Runtime for the moment

I just open a post on it :

> [@No Browser-based Video Recorder with Katalon Runtime?](http://forum.katalon.com/t/no-browser-based-video-recorder-with-katalon-runtime/56864):
>
> hello, I need to get video recording on my Jenkins server which is launching Katalon Runtime. For the moment, it does not work as I get black video until I disconnect from my jenkins windows virtual server (see my previous post [Video is empty when scenario is launched by Katalon runtime trough Jenkins windows instance](http://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974) for more detail) So today, I tried Browser-based Video Recorder which works correctly on my Katalon desktop grinning then I committed my browser based configuration to launch…

---

<div class="post-metadata">

**Author:** ![staniere](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/staniere/32/17333_2.png) [@staniere](https://forum.katalon.com/u/staniere)\
**Post date:** [August 2, 2021, 3:34pm UTC](https://forum.katalon.com/t/video-is-empty-when-scenario-is-launched-by-katalon-runtime-trough-jenkins-windows-instance/43974/14 "2021-08-02T15:34:56Z")

</div>

it is now possible to get Video from Jenkins windows instance by using browser-based video recorder  
More details on this post

> [@No Browser-based Video Recorder with Katalon Runtime?](http://forum.katalon.com/t/no-browser-based-video-recorder-with-katalon-runtime/56864/2):
>
> hello finally it is ok, I get my first katalon video under Jenkins partying_face In fact, my Jenkins service just needed to be restarted in order to get the new PATH variable with ffmpeg bin folder !
