Katalon Studio 23 - How to create ENVIRONMENTS | Execution Profiles

  Рет қаралды 21,491

Automation Step by Step

Automation Step by Step

6 жыл бұрын

Today we will learn:
1. How to create Environments (Profiles)
2. How to refer values from Profiles
3. How to set Environment during execution
4. Run and Validate
Step 1 : Create a test case in Katalon Studio
opensource.demo.orangehrmlive....
Step 2 : Add values to default profile
Step 3 : Refer values from profile in TestCase
Step 4 : Run TestCase, TestSuite and TestSuiteCollection with different profiles and validate
Step 5 : Run and validate from command line
-executionProfile="local"
References:
docs.katalon.com/pages/viewpa...
____________________________________________________________
Katalon Studio Beginner Tutorial Playlist
• Katalon Studio
Like on Facebook - / automationstepbystep
Subscribe on:
KZbin - / automationstepbystep
_______ ONLINE COURSES TO LEARN _______
Visit - automationstepbystep.com/
_________________________________

Пікірлер: 42
@pallishreesenapati7452
@pallishreesenapati7452 2 жыл бұрын
Nicely explained. Thank you very much sir.
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Pallishree
@sumitsaha9782
@sumitsaha9782 4 жыл бұрын
Hi Raghav. Thanks for the tutorial. Can we perform parallel executions with multiple profiles and with multiple browsers using Command Line Mode ? For e.g just like in the tutorial I've added two test suites in Test Suite Collector and each test suite is configured with two different profiles (dev and staging) and two different browsers (Chrome and Firefox). Can we do something like this in Command line mode. Please advise ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sumit, if you have configured all this in a test Suite Collection, then you can run the same test suite collection from command line.
@trckortreat
@trckortreat 5 жыл бұрын
Hello I have a question about Katalon Studio. I have a script that in Selenium IDE, I used javascript to set a variable and use it in all my test cases within that Suite. In Katalon I want to do the same. I can capture today's date using groovy : use(groovy.time.TimeCategory, {->...}} println(today.format("MM/dd/yyy")) or new date() The problem is , I want to use code in the Execution Profile for a global variable that will change daily.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Ann, so you can make this code as a custom keyword and can use it as per your needs
@LayanSooriyaarachchi
@LayanSooriyaarachchi 5 жыл бұрын
Hi Raghav, Is it possible to add the base URL of a rest web service project to the profiles in this way? Need to add the same base URL variable for all the requests in the project and the value for it need to be set from one place (for environments like QA, UAT etc.)
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Layan, yes its possible, and this is one of the intended use of profiles. as base url might differ in env like QA, Reg, Dev etc. So you can put this in profiles and in your request refer this global variable. For example if your base url is qa.example.com here you can put a variable like ${BaseUrl} and refer this from profile.
@LayanSooriyaarachchi
@LayanSooriyaarachchi 5 жыл бұрын
@@RaghavPal Yes I was able to do this. Thanks a lot Raghav
@gunayuvan9189
@gunayuvan9189 6 жыл бұрын
is that possible to read my Excel input fields and store it as Environment Variable that similar feature available in UFT during execution?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Guna, this is not out of the box available yet in Katalon Studio
@gunayuvan9189
@gunayuvan9189 6 жыл бұрын
Automation Step by Step - Raghav Pal thnx anyways
@chalu24
@chalu24 5 жыл бұрын
Hi Raghav - I have a windows batch file ( which has some script ) in it. Can i run that batch file using Katalon studio and generate reports ?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Uday, yes you can, will find details here - docs.katalon.com/katalon-studio/docs/execute-windows-commands.html
@fishkill7777
@fishkill7777 5 жыл бұрын
Hi Raghav, thanks for the video tutorial! How can I get execution profile to work with different databases?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, You can use Data Source as data base as shown here www.katalon.com/resources-center/tutorials/data-driven-testing/ Then you can use variables in place of connection string and provide the value from global variables.
@shanmugapriyasabapathy8688
@shanmugapriyasabapathy8688 5 жыл бұрын
Hi Raghav, How to apply execution profile for SOAP API testing. I got wsdls on different environment(QA, DEV etc.,) & would like to fetch the wsdl based on the "url" that's been added to the execution profile.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Shanmugapriya, you can add all wsdl and then have some variables with values changing with env that can be reffered from profiles. A part of the url can also be reffered from global variables.
@shanmugapriyasabapathy8688
@shanmugapriyasabapathy8688 5 жыл бұрын
@@RaghavPal Thanks Raghav! The solution worked ..Thanks much for posting wonderful & helpful videos
@gemos7777
@gemos7777 4 жыл бұрын
Hi Raghav , please guide me in using random text or number to text filed .. I am having hardtime creating keyword and passing that value to text filed
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi James, Have you seen this - github.com/katalon-studio-samples/CustomKeywords/blob/master/Keywords/randomData/TestDataGenerator.groovy
@puneethchidura3713
@puneethchidura3713 4 жыл бұрын
Hi Raghav, Thanks a lot for the above video. When i created a new test suite collection , under Run With section i could see only "Web Service" option. And i am unable to see any other option apart from it such as browsers(chrome or Firefox). Could you please help me with this. How can i see browser options for the newly created test suite collection and profile combination. Note : i am unable to see the browsers under "Run with" column for the default profile too. Thanks.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Puneeth, when you make your project type web service then browser options is not shown as it is not required for API testing. You can create a generic type project and then you will get all options.
@paragkhedikar4813
@paragkhedikar4813 6 жыл бұрын
Hi Raghav, How to use variable in email Template , Eg . QA Profile - Var1 = QA Dev Profile -Var1 -Dev I want to use above variables in email template so that i can differentiate the Automation run on QA/Dev environment.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Parag, I believe you can set one template per project
@harshakumar5109
@harshakumar5109 6 жыл бұрын
hi Raghav , How to resolve the chromedriver issue pop-up message "Error loading Extension" -failed to load extension from "c:\user\xxx\AppData\Local\Temp\scoped_dirxxx\internal.Loading of unpacked extensions is disabled by your adminstrator", I tried User set preference: ['args', '[--useAutomationExtension=false, enable-automation, disable-extensions]'] set in Project settings for chrome but still hitting this issue, is this a limitation of katalon or can it be resolved... Requesting you to please help....
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Harsha, what ver of Katalon Studio are you using. Check with some other ver
@NEINS7
@NEINS7 3 жыл бұрын
Hi Raghav, could you help me, I am testing one site, but when I play the script, the profile of the browser wasn't recognized, for that reason the steps recorded are different, how can I play a script with my chrome profile not with the recorder play profile?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Franklin, make sure you have selected the profile
@prasadpatil6511
@prasadpatil6511 2 жыл бұрын
Hi Raghav, Thanks for the Tutorial. Please let me know how to use the data from excel in global variables. Like we use it for local variables from the test data files. Thank you
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Prasad, pls check this forum.katalon.com/t/how-to-data-bind-global-variable/14298/4
@victoralfonsoramos3734
@victoralfonsoramos3734 4 жыл бұрын
Hi raghav, If my enviroment is on citrix? How to conect katalon and run script?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Victor, I have not tried this and was searching online. Got this forum.katalon.com/t/katalon-use-inside-citrix-environment/9825 Not complete information here. I will suggest to put this in Katalon Forum or Gitter chat.
@nozehobby
@nozehobby Жыл бұрын
is this method will work with mobile testing too? i mean when run test collection
@RaghavPal
@RaghavPal Жыл бұрын
Yes, the basic structure and functionality will remain same
@JayNYOne
@JayNYOne 4 жыл бұрын
I do not see profiles on my version of Katalon. Is this disabled somewhere? I'm now running 7.0.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Jay, I checked on ver 7.0, it is there, pls check again.
@JayNYOne
@JayNYOne 4 жыл бұрын
@@RaghavPal Yeah. It was just in a different spot for some reason and I looked right over it. Thanks for responding.
@javaselenium1086
@javaselenium1086 2 жыл бұрын
Sir While performing this I got an issue that is "Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher" So sir what to do in this case
@RaghavPal
@RaghavPal 2 жыл бұрын
Where exactly you got this
Katalon Studio ver 5.5 Coming soon |  What's New
12:09
Automation Step by Step
Рет қаралды 6 М.
Katalon Automation Lesson 13 - Setup Environments | Profiles | Environment Variables | (2022)
19:41
Ravikanth FicusRoot - Tech Videos
Рет қаралды 2,9 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 13 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 33 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 27 МЛН
Groundbreaking New Solar Energy System - Too Good to be True?
7:07
Sabine Hossenfelder
Рет қаралды 399 М.
Has Ubisoft Fixed Itself?
8:45
GameLinked
Рет қаралды 15 М.
Katalon Studio 7 - How to create Test in SCRIPT mode
11:57
Automation Step by Step
Рет қаралды 80 М.
Katalon Studio: Use Profile to Execute on Different Environment
10:42
Testing World
Рет қаралды 3,5 М.
Katalon Studio - What's Missing in Your Azure DevOps Workflow
10:00
Microservices explained - the What, Why and How?
18:30
TechWorld with Nana
Рет қаралды 832 М.