How to run Katalon Studio tests on Linux using Git & Jenkins

  Рет қаралды 9,666

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 34
@vanshgoel9168
@vanshgoel9168 4 ай бұрын
Great video! A question - What if Jenkins and Katalon project are on different machines? What can we do then?
@RaghavPal
@RaghavPal 4 ай бұрын
Vansh you can put your project on GitHub and then on the system you have Jenkins can clone the project on the Jenkins job and then run it, I believe I have shown this in one of the videos
@vanshgoel9168
@vanshgoel9168 4 ай бұрын
@@RaghavPal Thanks for the reply! In my case, its actually quite not possible, as katalon isn't supported for arm64 architecture it seems. I tried using katalon docker image too, but that too isn't compatible with arm64.
@RaghavPal
@RaghavPal 4 ай бұрын
Okay, you can raise this on Katalon Forum and also send to Katalon team
@sushildarekar6255
@sushildarekar6255 4 жыл бұрын
Hi Raghav, thanks for the wonderful tutorial am getting licensing issue when i perform exact steps as in this video, does KRE need paid license ? am using 7.5.1 version of Katalon studio and Katalon runtime
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sushil, yes Katalon now is commercial. Check this - kzbin.info/www/bejne/bIDdfa1mrZl4btU
@jayeshdalal7
@jayeshdalal7 5 жыл бұрын
Thanks a lot Ragahv.
@jayeshdalal7
@jayeshdalal7 5 жыл бұрын
Now I know where i did mistake . Thanks a lot.
@RaghavPal
@RaghavPal 5 жыл бұрын
Glad to know that Jayesh, If you can put the details, it can help others. Also pls reply on the original comment
@blessedandhighlyfavoured4017
@blessedandhighlyfavoured4017 5 жыл бұрын
yes please. It works well on the windows server though
@RaghavPal
@RaghavPal 5 жыл бұрын
Glad to know this Dorcas
@iRobotoAA
@iRobotoAA 4 жыл бұрын
I wonder if this works if my test scripts are located in SVN? and does the type of linux machine matter? I'm trying to do what you've done here with SVN & RHEL7 Linux box. Thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, the basic process remains same. I will try to put a session using linux
@rsmtech9274
@rsmtech9274 4 жыл бұрын
Hi Raghav, thanks for the wonderful videos. I am not able to open the katalon studio in linux OS. can you please help me? My OS: 18:04 bionic and Katalon version is 7.7.2. Thanks in Advance.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi will need to check the logs. You can also check in Katalon forum
@SindhuN-zq1sv
@SindhuN-zq1sv 4 ай бұрын
Hi Raghav, I am trying to run test suites using Katalon plugin on Jenkins running on Linux, I am getting this log and job is failing "Katalon: Cannot open display".
@RaghavPal
@RaghavPal 4 ай бұрын
Sindhu The "Cannot Open Display" error typically occurs when trying to open a GUI application on a Linux system, especially from the command line or when using X11 forwarding via SSH. Let's troubleshoot this issue: 1. Check the DISPLAY Variable: - First, verify the value of your `DISPLAY` variable. Run the following command: ``` $ echo $DISPLAY ``` - If it shows no output or gives an error, your variable hasn't been set or is set incorrectly. - Set the `DISPLAY` variable (adjust the value if needed): ``` $ export DISPLAY=:0 ``` - Confirm that the variable is now set correctly: ``` $ echo $DISPLAY ``` - Try opening `xeyes` to verify the fix: ``` $ xeyes ``` 2. Enable X11 Forwarding via SSH: - If you're running a GUI application from a remote server, ensure X11 forwarding is enabled in your SSH connection. - Reconnect using the `-X` option: ``` $ ssh -X username@remote-server ``` 3. Check SSHD Configuration: - Make sure X11 forwarding is enabled in the `sshd_config` file on the server: ``` $ grep X11Forwarding /etc/ssh/sshd_config ``` - The line should look like this if it's enabled: ``` X11Forwarding yes ``` 4. Verify Host Permissions: - Execute the following command on the server to disable access control and allow all hosts to use X11 forwarding: ``` $ xhost + ``` 5. Alternative Approach: - Consider using a different application for sharing the desktop screen, such as X11vnc. --
@stsni1841
@stsni1841 5 жыл бұрын
why should to use jenkins and amazon ec2?
@RaghavPal
@RaghavPal 5 жыл бұрын
Jenkins is a CI tool, If you need to integrate your testing process with other processes in the project like dev build, deployment jobs etc. then Jenkins will be useful. It can be used to create a build or delivery pipeline where all the jobs are automated and chained. for example The process starts with Dev Build job. If it is success, it will trigger a DeployJob, if pass, will trigger the TestJob and so on. Amazon ec2 is a cloud services platform, You can get server machines and run your projects, applications there and not be dependent on local systems
@nasrs3901
@nasrs3901 5 жыл бұрын
Hi Raghav, With the same steps , if I run on Ubuntu host with jenkins inside a docker with katalon plug in , I face this issue, please suggest .. ======= error snippets ======= 2019-03-21 10:44:52.566 DEBUG testcase.Publicare Services - 1: openBrowser("") 2019-03-21 10:44:52.695 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ openBrowser("") FAILED. Reason: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at org.sikuli.api.robot.desktop.AWTDesktop.(AWTDesktop.java:27) at org.sikuli.api.robot.desktop.DesktopScreen.getSize(DesktopScreen.java:43)
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, here you might have to set x11 display for headless browser. java.awt.HeadlessException: No X11 DISPLAY variable was set I have not gone deep on this, here are some links to help forum.katalon.com/t/running-katalon-on-linux-machine-after-ssh-is-throwing-java-awt-headlessexception-no-x11-display/8197/2 stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean stackoverflow.com/questions/46579893/katalon-debian-headless-browser
@nasrs3901
@nasrs3901 5 жыл бұрын
@@RaghavPal Thank you for the references, i have performed all of those actions, still no luck, will explore more. And loving your tutorials (All of them).
@RaghavPal
@RaghavPal 5 жыл бұрын
Sure, Nasr, keep trying.
@anucoonjan3348
@anucoonjan3348 4 жыл бұрын
Hi Raghav, I am getting error Invalid argument: Cannot find project when running test in gitlab. Do you know how i can resolve this issue. Thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Anu, pls check your locations and paths provided in Jenkins
@A.B.00007
@A.B.00007 5 жыл бұрын
How to do this from Windows Machine? As in Git Integrated Katalon Studio Tests run from Jenkins using Katalon Studio Plugin?
@A.B.00007
@A.B.00007 5 жыл бұрын
More specifically, What Command Arguments should be a Valid Input in Katalon Studio Plugin's Command Arguments??
@A.B.00007
@A.B.00007 5 жыл бұрын
Its Alright, I got it.
@blessedandhighlyfavoured4017
@blessedandhighlyfavoured4017 5 жыл бұрын
java.lang.IllegalStateException: Cannot create directory to store Katalon Studio package please what is causing this exception. I get this exception when I build after installing the katalon studio
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Dorcas, are you by any chance using a project created with older ver on a new version Katalon Studio. Usually this compatibility is taken care of but may be a issue sometimes. Also try with a diff ver.
@blessedandhighlyfavoured4017
@blessedandhighlyfavoured4017 5 жыл бұрын
@@RaghavPal please I am using version 6.1.5
@RaghavPal
@RaghavPal 5 жыл бұрын
Is this the same ver used to create and to run the tests
@aamirshaikh1731
@aamirshaikh1731 4 жыл бұрын
How to install katalon on linux and how to resolve the issues occured after the installation
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Aamir, Pls check the documentation - docs.katalon.com/katalon-studio/docs/katalon-studio-gui-beta-for-linux.html For issues, you can check online or on katalon forum forum.katalon.com/
Katalon Studio | How to use Headless Browsers
7:32
Automation Step by Step
Рет қаралды 8 М.
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 32 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 9 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 338 М.
How to create BDD Cucumber tests in Katalon Studio
32:31
Automation Step by Step
Рет қаралды 36 М.
Katalon Studio Jenkins Plugin
17:05
Automation Step by Step
Рет қаралды 14 М.
Katalon Studio running in an Docker  container
25:07
Execute Automation
Рет қаралды 18 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,1 МЛН
Katalon Studio 18 - How to test API with Katalon Studio
23:01
Automation Step by Step
Рет қаралды 76 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
The IDEAL & Practical CI / CD Pipeline - Concepts Overview
22:36
Be A Better Dev
Рет қаралды 485 М.
Chapter 3: How to integrate Katalon Studio with Jenkins
13:06
Part 1 - API Testing Interview Questions & Answers
1:04:39
Naveen AutomationLabs
Рет қаралды 211 М.