Katalon Studio 23 - How to create ENVIRONMENTS | Execution Profiles

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • 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...
    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.c...
    ____________________________________________________________
    Katalon Studio Beginner Tutorial Playlist
    • Katalon Studio
    Like on Facebook - / automationstepbystep
    Subscribe on:
    RUclips - / automationstepbystep
    _______ ONLINE COURSES TO LEARN _______
    Visit - automationstepb...
    _________________________________

Комментарии • 42

  • @pallishreesenapati7452
    @pallishreesenapati7452 2 года назад

    Nicely explained. Thank you very much sir.

    • @RaghavPal
      @RaghavPal  2 года назад

      Most welcome Pallishree

  • @gemos7777
    @gemos7777 4 года назад +1

    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 года назад +1

      Hi James, Have you seen this - github.com/katalon-studio-samples/CustomKeywords/blob/master/Keywords/randomData/TestDataGenerator.groovy

  • @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

  • @chalu24
    @chalu24 5 лет назад +1

    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

  • @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 года назад +1

      Hi Franklin, make sure you have selected the profile

  • @trckortreat
    @trckortreat 6 лет назад

    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  6 лет назад

      Hi Ann, so you can make this code as a custom keyword and can use it as per your needs

  • @paragkhedikar4813
    @paragkhedikar4813 6 лет назад +1

    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  6 лет назад

      Hi Parag, I believe you can set one template per project

  • @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.

  • @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

  • @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 лет назад +1

      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 лет назад +1

      @@RaghavPal Yes I was able to do this. Thanks a lot Raghav

  • @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 лет назад +1

      @@RaghavPal Thanks Raghav! The solution worked ..Thanks much for posting wonderful & helpful videos

  • @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 лет назад +1

      Hi Guna, this is not out of the box available yet in Katalon Studio

    • @gunayuvan9189
      @gunayuvan9189 6 лет назад +1

      Automation Step by Step - Raghav Pal thnx anyways

  • @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 года назад +1

      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.

  • @fishkill7777
    @fishkill7777 6 лет назад

    Hi Raghav, thanks for the video tutorial! How can I get execution profile to work with different databases?

    • @RaghavPal
      @RaghavPal  6 лет назад +1

      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.

  • @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

  • @JayNYOne
    @JayNYOne 5 лет назад

    I do not see profiles on my version of Katalon. Is this disabled somewhere? I'm now running 7.0.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Jay, I checked on ver 7.0, it is there, pls check again.

    • @JayNYOne
      @JayNYOne 5 лет назад +1

      @@RaghavPal Yeah. It was just in a different spot for some reason and I looked right over it. Thanks for responding.

  • @victoralfonsoramos3734
    @victoralfonsoramos3734 5 лет назад

    Hi raghav, If my enviroment is on citrix? How to conect katalon and run script?

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      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.

  • @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