Katalon Studio 12 - How to run from Command Line

  Рет қаралды 35,574

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 104
@KiranBomble-f5z
@KiranBomble-f5z 10 ай бұрын
really good explaination.
@RaghavPal
@RaghavPal 10 ай бұрын
Thanks Kiran
@fedeamico7085
@fedeamico7085 4 жыл бұрын
Hi Raghav, I've learned very much with your videos. When I execute the CMD I have this error: "katalonc" is not recognized as an internal or external command, executable program or batch file. I don't know why. I tried to add katalon to the system variables but no result. Can you help me, please?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Fede, In the new ver, we need to download Katalon Runtime engine folder and run command from its location. In case you need the complete course with latest ver can check automationstepbystep.com/udemy-discounts/
@urmaddy
@urmaddy 2 жыл бұрын
@@RaghavPal Is it free ? Runtime Engine , please reply let me know
@rabiashahid1598
@rabiashahid1598 3 жыл бұрын
Sir how I can run this on window which key u are used,,,I follow your tutorial for window but nothing happened ,,I can't run command plz tell m what I do
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Rabia, Now to run from command line you will need to download Runtime engine www.katalon.com/download/ And run the command from runtime engine folder I have a complete Udemy course on this - www.udemy.com/course/katalon-studio-beginners-hands-on-training/
@ravendrathallapureddy7774
@ravendrathallapureddy7774 7 жыл бұрын
Hope Katalon is considering testcase execution limitation through command line. I believe, that will be more useful.
@RaghavPal
@RaghavPal 7 жыл бұрын
yes, that can be an additional feature, However you can still run your tests cases from cmd after adding to a test suite.
@monishpawar5980
@monishpawar5980 4 жыл бұрын
Hello Raghav, Is it possible to use different browsers that are not available in the Katalon browser list. e.g. I wanted to use Opera browser to run the test. Can I use it somewhere in command Thanks Monish
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Monish, you can try adding the browser exe in the configuration folder Windows 32bit: /configuration/resources/drivers Windows 64bit: /configuration/resources/drivers/ macOS: /Applications/KatalonStudio.app/Contents/Eclipse/configuration/resources/drivers Linux: /configuration/resources/drivers/
@monishpawar5980
@monishpawar5980 4 жыл бұрын
@@RaghavPal Hello Raghav, thanks for the response. Above link is not accessible can you please check. I need a solution for Mac OS Thanks, Monish
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Monish, it is the location of drivers folder on diff OS
@monishpawar5980
@monishpawar5980 4 жыл бұрын
@@RaghavPal Hello Raghav I tried that location ealrier and it seems Katalon Studio.app is not present (is it only Katalon Studio we get in latest release)
@PrettyMelody108
@PrettyMelody108 5 жыл бұрын
Hello Sir, In katalon i click build CMD option where, when i generate CMD command browser type "web service" shows it can't be changable ....it is run and close automatically and does not perform in any browser..
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Ragini, looks like while creating the project you selected type as web service / API. Therefore it is customized to run only for web service.
@PrettyMelody108
@PrettyMelody108 5 жыл бұрын
How to change it?
@RaghavPal
@RaghavPal 5 жыл бұрын
When you create a new project, there is option to select web, mobile, api
@PrettyMelody108
@PrettyMelody108 5 жыл бұрын
When a wrong option is selected how to edit this
@RaghavPal
@RaghavPal 5 жыл бұрын
In your generated command you can manually change and try for now
@aalokmayekar7214
@aalokmayekar7214 6 жыл бұрын
What value should I pass for "browserType" if I have to run API test through command line ?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Aalok, did you try running with any existingg browser like chrome.
@hoavinh1546
@hoavinh1546 4 жыл бұрын
I'm using version 7.6.2 on MAC. I can run katalonc from the command line. It also works when I put it into a shell script. But when I set crontab to run that shell script, it skips the katalonc command. while running other commands like "echo", "pwd", "date", etc. in that script. Any thoughts? Thanks.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Hoa, not sure why this happened, I will suggest to search or create a new post in Katalon Forum forum.katalon.com/
@hoavinh1546
@hoavinh1546 4 жыл бұрын
@@RaghavPal Thanks for looking at it. I redirected the cron job output to a log file and saw the issue with license. The cron job does trigger the katalonc process but failed because the machineId does not match the one from the license file. I did check the access permission of all files/folder to ensure that crontab is able to read the content of the license file. I wonder why I don’t have that license problem when running the shell script directly.
@RaghavPal
@RaghavPal 4 жыл бұрын
Okay, lets wait for any response from katalon
@aalokmayekar7214
@aalokmayekar7214 6 жыл бұрын
Hi, I want to run build from TFS for mobile automation and want to use Git repository. Can someone tell me what value I have to use for -projectPath ? any examples ?
@RafeekTM-jo3fj
@RafeekTM-jo3fj Жыл бұрын
Hi raghav, i have connected my real device and I am running through my command line but I am getting illegal argument exception: the mobile device is missing. error . can you help me
@RaghavPal
@RaghavPal Жыл бұрын
Hi Rafeek, The "Illegal argument exception: the mobile device is missing" error message typically indicates that the device you are trying to use is not properly connected to your system, or it's not recognized by the Katalon Studio. Here are a few steps you can try to resolve this issue: Check the device connectivity: Make sure your device is properly connected to your system and is recognized by your operating system Check device drivers: If the device is properly connected, check if the appropriate device drivers are installed. If the drivers are missing, you may need to download and install them from your device manufacturer's website Check the device status: Ensure that the device is not in sleep mode or locked Restart the device and the system: Sometimes, restarting the device and the system can resolve the issue Try a different cable: If you are using a USB cable to connect your device, try a different cable Check the Katalon Studio configuration: Make sure that the device is properly configured in Katalon Studio. To do this, go to the Project > Settings > Desired Capabilities, and check that the desired capabilities for your device are set correctly
@divyajain7363
@divyajain7363 7 жыл бұрын
I could not find any Report Generation option in Generate Command window. I am using 5.0.1.0 version. Is there any other way to set mail recipients for the Test Suites result?
@RaghavPal
@RaghavPal 7 жыл бұрын
It should be there Divya, in case there is any ver specific change you can find in documentation - docs.katalon.com/display/KD/User+Guide
@shivagundra8043
@shivagundra8043 Жыл бұрын
Hi Raghav Im trying to execute from terminal when i enter the command im getting no such file or directory can you guide me on this
@RaghavPal
@RaghavPal Жыл бұрын
Hi Shiva If you are encountering a "no such file or directory" error when executing a command in Katalon Studio from the terminal, it typically means that the command or the specified file cannot be found. Here are a few steps to help you troubleshoot and resolve the issue: 1. Check the Command: Ensure that the command you are trying to execute is correct. Double-check the syntax and spelling to make sure there are no typos or errors in the command. 2. Verify the File Path: If you are specifying a file path in the command, ensure that the file exists in the specified location. Double-check the file path to make sure it is accurate. 3. Navigate to the Correct Directory: If you are running the command from the terminal, make sure you are in the correct directory where the file or the command is located. Use the `cd` command to navigate to the appropriate directory before executing the command. 4. Set the Correct Environment Variables: If the command relies on certain environment variables, ensure that they are set correctly. Verify the environment variables required for the command and set them accordingly. 5. Check File Permissions: Ensure that you have the necessary permissions to execute the file or command. If the file or command requires elevated privileges, make sure you are running the terminal as an administrator or with sufficient privileges. 6. Reinstall or Update Katalon Studio: If the issue persists, consider reinstalling or updating Katalon Studio to the latest version. Sometimes, the error could be due to compatibility issues or bugs in the software
@portretmallick4116
@portretmallick4116 4 жыл бұрын
Not able to generate reports through CMD in Katalon v6.3.3.Any useful ideas?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Portret, we now need Basic Reports plugin. Check this video kzbin.info/www/bejne/opbNe4R8r7aUgKc
@kripeshroy1937
@kripeshroy1937 4 жыл бұрын
Hi Raghav, I'm using Katalon 7 and from this version katalon guys enhanced a RE (Runtime Engine) for command line execution. Can u pls guide me how to execute using RE? Thanks in advance !!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kripesh, you're right. From ver 7 we need RE to run katalon tests from command line. You can download from katalon website it will be a zipped folder that you can unzip. When you need to run your tests from command line, You will need to first goto this folder on command line and run your command
@adamkeren66
@adamkeren66 4 жыл бұрын
@@RaghavPal Katalon said it will require me to purchase a subscription.... i am so sad , as i though this tool will be mostly free
@akshaydeshpande4764
@akshaydeshpande4764 2 жыл бұрын
Hi Raghav I need your help, while executing test cases from the command line I am getting following error Free account can not execute the test. Online activation for console mode failed. Activation failed. Please make sure you are using a valid license. All launchers terminated
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Akshay, for command line execution we need Katalon Runtime engine, you can download from here - katalon.com/download/ but will need to sign up for an account
@akshaydeshpande4764
@akshaydeshpande4764 2 жыл бұрын
@@RaghavPal Yes I downloaded the runtime engine and sign up for an account but still getting the same errors
@RaghavPal
@RaghavPal 2 жыл бұрын
To run the command, you will need to open CMD prompt in Katalon Runtime engine folder. Please check the Masterclass sessions, at the end of this playlist - kzbin.info/aero/PLhW3qG5bs-L_D4ZePNNjvmIULuu6mBHbu
@akshaydeshpande4764
@akshaydeshpande4764 2 жыл бұрын
@@RaghavPal can I run test cases by using Test ops and schedule an execution time ??
@abdulhannanimtiaz5864
@abdulhannanimtiaz5864 4 жыл бұрын
katalonc' is not recognized as an internal or external command, operable program or batch file. I am getting this error when i paste the command in Command Line, I Have java Installed too
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Adbul, with the new changes in Katalon, now you will need to download katalon runtime engine. Pls watch kzbin.info/www/bejne/bIDdfa1mrZl4btU
@abdulhannanimtiaz5864
@abdulhannanimtiaz5864 3 жыл бұрын
@@RaghavPal Thanks Sir for always being there to help. You are one of the best teachers I have found in my life. thank you for your services
@branyesnunezabad
@branyesnunezabad 4 жыл бұрын
Trial license is only available for Katalon accounts registered with a business email. Online activation for console mode failed. Activation failed. Please make sure you are using a valid license. All launchers terminated What happend with that?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Branyes, are you using a business email. Check this video - kzbin.info/www/bejne/bIDdfa1mrZl4btU
@hemantsinha2730
@hemantsinha2730 4 жыл бұрын
Thanks Raghav but while running the command, it displays katalonc is not recognized as an internal or external command. i have installed Katalon Run time engine also which has katalonC i guess, but there also its not working
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Hemant, yes because now we need to get KRE - Katalon Runtime Engine to use command line. Can get more info here - docs.katalon.com/katalon-studio/docs/intro-RE.html
@hemantsinha2730
@hemantsinha2730 4 жыл бұрын
@@RaghavPal Thanks Raghav, Its seems like KRE is not free though , it shows license issue . Please correct me if I am wrong .
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes, now its commercial. Watch this - kzbin.info/www/bejne/bIDdfa1mrZl4btU
@sindhujajayaraman6570
@sindhujajayaraman6570 4 жыл бұрын
Hi Raghav, I am able to run the test suite from my command line this is the path: C:\Katalon_Studio_Engine_Windows_64-7.2.1\Katalon_Studio_Engine_Windows_64-7.2.1 katalonc -noSplash -runMode=console -projectPath="C:\automation-katalon\Automation.prj" -retry=0 -testSuitePath="Test Suites/SmokeTests" -executionProfile="default" -browserType="Chrome" -apiKey="53325518-89d0-4408-9658-d6962851160b" execution is success and browser opens during execution. However, when i run the same in Jenkins, browser is not opening. this is the command: cd\ C:\Katalon_Studio_Engine_Windows_64-7.2.1\Katalon_Studio_Engine_Windows_64-7.2.1 katalonc -noSplash -runMode=console -projectPath="C:\automation-katalon\Automation.prj" -retry=0 -testSuitePath="Test Suites/SmokeTests" -executionProfile="default" -browserType="Chrome" -apiKey="53325518-89d0-4408-9658-d6962851160b" please let me know what is going wrong. Build is showing as success in console output - Running as SYSTEM Building in workspace C:\Program Files (x86)\Jenkins\workspace\Katalon test suite run1 Finished: SUCCESS
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sindhuja, are you running Jenkins on the same system. You may also try to run jenkins as administrator (open cmd as admin and then start Jenkins)
@sindhujajayaraman6570
@sindhujajayaraman6570 4 жыл бұрын
@@RaghavPal Hi Raghav, Yes on the same system. and cmd is opened as admin only. still no luck.
@RaghavPal
@RaghavPal 4 жыл бұрын
Pls check if this helps - forum.katalon.com/t/katalon-is-not-launch-browser-in-jenkins/22662
@meghagupta1424
@meghagupta1424 6 жыл бұрын
Can you provide any guidance for katalon in ubuntu?
@RaghavPal
@RaghavPal 6 жыл бұрын
I will try to do a session on this.
@hazimabdoh6303
@hazimabdoh6303 2 жыл бұрын
Hi Raghav, i cant activate my email in katalon studio activation page when i click activate icon (troubleshoot icon appears) ,while excuting the command line : katalon -noSplash -runMode=console -consolelog -projectPath="C:\Users\Lenovo\Katalon Studio\testproject\testproject.prj" -retry=2 -retryStrategy=allExecutions -testSuitePath="Test Suites/test suite2" -browserType="Chrome" -executionProfile="default" -apiKey="****************" --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true , is there are any issue? and how can i solve this problem ? thanks.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Hazim, while generating command remove/uncheck proxy and try again
@hazimabdoh6303
@hazimabdoh6303 2 жыл бұрын
@@RaghavPal Hi Raghaf, i did uncheck to the statement : apply proxy configuration from application settings, but the problem still exist , and the following error message still appear in the command line : Invalid license. Invalid license. End checking and mark activated for GUI mode Activating credentials... Invalid license. Could not get license from TestOps server. Error message: thanks.
@RaghavPal
@RaghavPal 2 жыл бұрын
Okay, in that case login to your katalon account and check if the license is expired or has any limitations. Also as of the recent changes, to run from command line, You will need Katalon Runtime Engine, You can download and unzip the folder and cd to this folder and run your commands - docs.katalon.com/katalon-studio/docs/install-RE.html
@GauravRathi88
@GauravRathi88 6 жыл бұрын
How can i run the tests in hub in Parallel? Can you please have that videos or some help on this.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Gaurav, do you want to do parallel testing with Katalon Studio, you can check this - kzbin.info/www/bejne/d2mupnSJoNp8bLc
@adhongde1
@adhongde1 6 жыл бұрын
Ablr to execute on cmd line but not integrating with jenkins...error 'katalon' is not recognized as an internal or external command, operable program or batch file.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Abhay, what are the commands you used in Jenkins. Pls send me the complete logs.
@adhongde1
@adhongde1 6 жыл бұрын
cd D:\Abhay\Software\Katalon Studio\Katalon5.4.1\Katalon_Studio_Windows_64-5.4.1 katalon -noSplash -runMode=console -consoleLog -noExit -projectPath="D:\Abhay\Projects\Katalon Studio\Testprjjenkins\Testprjjenkins.prj" -retry=0 -testSuitePath="Test Suites/Test Suite" -executionProfile="default" -browserType="Chrome" ----------- console oupt Console Output Started by user admin Building in workspace C:\Program Files (x86)\Jenkins\workspace\Katlontesting [Katlontesting] $ cmd /c call C:\WINDOWS\TEMP\jenkins7645994911341825667.bat C:\Program Files (x86)\Jenkins\workspace\Katlontesting>cd D:\Abhay\Software\Katalon Studio\Katalon5.4.1\Katalon_Studio_Windows_64-5.4.1 C:\Program Files (x86)\Jenkins\workspace\Katlontesting>katalon -noSplash -runMode=console -consoleLog -noExit -projectPath="D:\Abhay\Projects\Katalon Studio\Testprjjenkins\Testprjjenkins.prj" -retry=0 -testSuitePath="Test Suites/Test Suite" -executionProfile="default" -browserType="Chrome" 'katalon' is not recognized as an internal or external command,operable program or batch file. C:\Program Files (x86)\Jenkins\workspace\Katlontesting>exit 9009 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Abhay, What i notice here is in Jenkins after running the command cd D:\Abhay\Software\Katalon Studio\Katalon5.4.1\Katalon_Studio_Windows_64-5.4.1 The dir is not changed. You can use this D: cd D:\Abhay\Software\Katalon Studio\Katalon5.4.1\Katalon_Studio_Windows_64-5.4.1 the first command (D:) will bring you in D drive and the second command will change dir.
@adhongde1
@adhongde1 6 жыл бұрын
I did but still the error "katalon' is not recognized as an internal or external command,"
@RaghavPal
@RaghavPal 6 жыл бұрын
not sure. may be if I get more logs and context I can see on this. Try online as well
@shubham-oq5uy
@shubham-oq5uy 2 жыл бұрын
sir whenever I genrate the command that is not working in cmd please check wht is going on
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Shubham, you will need katalon runtime engine to run from cmd prompt - docs.katalon.com/docs/katalon-runtime-engine/introduction-to-runtime-engine
@rajeshnaidu3280
@rajeshnaidu3280 6 жыл бұрын
Hi sir how to use scroll to text function if duplicate texts there plz help sir
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Rajesh, if there is duplicate text, you can use other keywords like Scroll to Element - docs.katalon.com/katalon-studio/docs/webui-scroll-to-element.html Scroll to Position - docs.katalon.com/katalon-studio/docs/webui-scroll-to-position.html
@tarunthakur5762
@tarunthakur5762 6 жыл бұрын
How we can Auto-schedule the script in katalon?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Tarun, see if this helps - forum.katalon.com/discussion/2214/task-scheduler
@victor3848
@victor3848 4 жыл бұрын
Don’t work on my 7.2.1 kathalon studio In windows please help
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Bija, for Katalon 7 onwards we need to get KRE katalon runtime engine to run from command line. Check this kzbin.info/www/bejne/bIDdfa1mrZl4btU
@gacla
@gacla 6 жыл бұрын
How I can pass a parameter (ex. IP address) to katalon command line?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi, just have a look at this post - forum.katalon.com/discussion/4586/how-to-pass-user-defined-parameters-from-command-line#latest
@rabiashahid1598
@rabiashahid1598 3 жыл бұрын
Sir actually I want to make some test case in my own way as like I Make some changes in website than I want website work according to which I write for it,,,,so plz help me how I write test cases which work according to my requirements,,,,plz reply plz its my task which I snd within one week to.my boss plz
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Rabia, there are some common scenarios that the objects gets changed or properties gets changed in new release and for that there are some features like smart XPath in Katalon Studio, for some minor changes in the workflow you can also add conditions in your test case
@rabiashahid1598
@rabiashahid1598 3 жыл бұрын
@@RaghavPal how can I add condition in test case please snd me some hints through any video
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Rabia, this will help docs.katalon.com/katalon-recorder/docs/conditional-cases.html docs.katalon.com/katalon-studio/docs/statements.html
@rabiashahid1598
@rabiashahid1598 3 жыл бұрын
@@RaghavPal thank you 🤗😇
@rabiashahid1598
@rabiashahid1598 3 жыл бұрын
@@RaghavPal sir plz snd me some material in video ,,,I follow this link but my navigation is different so nothing happened plz tell me through video or another demo website which help me,,,,thank you so much for your help ,,🤗but plz help me hope so you understand
@vipuljain215
@vipuljain215 6 жыл бұрын
is it work on ubuntu ?
@RaghavPal
@RaghavPal 6 жыл бұрын
Katalon has a ver for linux. You can check that out.
@ashariqbal6050
@ashariqbal6050 4 жыл бұрын
Sir, how I can capture file from my pc?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ashar, what do you mean by capture file. Do you mean file upload. You can check docs.katalon.com/katalon-studio/docs/webui-upload-file.html
@chevinpratama3571
@chevinpratama3571 4 жыл бұрын
Sir, please made a video about negative testing hehehe
@RaghavPal
@RaghavPal 4 жыл бұрын
Okay, it will be more of conceptual session. Will do.
@Deniz-ss1sv
@Deniz-ss1sv 3 жыл бұрын
:)
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for watching
Katalon Studio 13 - Integration with JENKINS (CI)
11:17
Automation Step by Step
Рет қаралды 44 М.
Katalon Studio for Complete Beginners | Step by Step Masterclass Part 1
1:58:03
Automation Step by Step
Рет қаралды 127 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 33 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 52 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 21 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 89 МЛН
Proxy vs Reverse Proxy vs Load Balancer | Simply Explained
13:19
TechWorld with Nana
Рет қаралды 155 М.
How to run Katalon Studio tests on Linux using Git & Jenkins
26:58
Automation Step by Step
Рет қаралды 10 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 33 МЛН