[Recap] Live Walkthrough: Create, execute and manage test scripts with Katalon

Hi Community members :wave:

Our first Live Walkthrough: Create, execute, and manage test scripts with Katalon was a success with more than 200 registrations and around 90 participants within the sessions. :tada:

We hope that this session provided you with a comprehensive look at how easy it is for you and your team to get started with using the Katalon Platform for your project, and that you got to know more about some of Katalon’s smart features that will undoubtedly boost your testing efficiency.

Please see a recording of our Live Walkthrough below …

… and as we could not answer all of your questions due to the 30-minute time limit, we see a list of all of the questions and answers below :point_down:


This is only Part 1 of our Onboarding Webinar Series designed to help you to get started with Automation Testing in the Katalon Platform. Click on the link below to check out our upcoming webinars!

Q: How to enable/disable Smart Wait at Runtime/through script?

A:
You can use the enableSmartWait and disableSmartWait keywords to enable/disable Smart Wait during the test temporarily. Use the enableSmartWait or disableSmartWait keywords to enable/disable Smart Wait on your target elements.

For example:

WebUI.disableSmartWait()// WebUI.enableSmartWait()

:information_source: For more information, please refer to our documentation: https://docs.katalon.com/docs/create-tests/record-and-spy/webui-record-and-spy-utilities/smart-wait-function

Q: Which platforms and scripting languages does Katalon support at the moment?

A:

At the moment, we support the current Operating systems and Browsers:

  • OS: Windows, Mac, and Linux.
  • Browser: Microsoft Internet Explorer (IE), Google Chrome, Mozilla Firefox, Apple Safari, Opera, and Microsoft Edge.

We currently support Groovy and Java as our scripting languages.

:information_source: For more information, please refer to our documentation below:

Q: What are the pre-requisite to install Katalon Studio?

A: Before the installation, you need to verify whether your computer meets the system requirements to work with Katalon Studio. You can refer to this document for further details: Supported environments for Katalon Studio and Katalon Runtime Engine | Katalon Docs.

For information on how to install Katalon Studio on Mac or Windows, please refer to this documentation: Install Katalon Studio on macOS/Windows | Katalon Docs

Q: How can we disable the Self-healing feature?

A:

In Katalon Studio, the self-healing mode is enabled by default. To disable the self-healing mode, there are two ways:

  • Go to Project > Settings > Self-Healing > WebUI, then uncheck the box Enable Self-healing execution.
  • Or, from the toolbar of Katalon Studio, click on the Self-Healing icon, then select Disable Self-healing.

Q: What is the default timeout for element and can we change it and how to do the same?

A: The Default timeout for the element is 30 seconds and yes we can change the same.

Katalon repeatedly tries clicking the element for a period configured in Project > Settings > Execution > Default wait for element timeout.

image

Q: How do I ignore untrusted certificate warning?

A:
Go to Project → Settings → Network. In the Certificate Settings section, choose “Bypass certificate validation.” Then click “Apply and Close”.

Q: Is there a way to sync things like keywords and profiles across different projects?

A: Yes! From the main menu, go to Tools → Utility → Export Test Artifact.

Q: How to print a list of elements using Katalon?

A:
You can try with below sample code

List pending = WebUI.findWebElements(findTestObject(‘Object Repository/Homepage/closetabs’), 30)
int closetabsSize = pending.size()
if (closetabsSize > 0) {
for (int i = 0; i < closetabsSize; i++) {
pending.get(i).click()
}
}

Q: How to upload file to the testcase step?

A: Using WebUI.uploadFile(findTestObject('Upload File'), 'C:\\\\Users\\\\Public\\\\Pictures\\\\Sample Pictures\\\\Desert.jpg')

Q: How can I create an Object Repository for all elements if you device to write a script in manual mode?

A: With the help of the Spy Web utility we can search the object and add it manually in the Object Repository.

Q: Sometimes, when I run a Test Suite it keeps running multiple times. Do I have something wrong in my settings?

A: It is because of the default execution setting of Test Suite where it will retry 3 times for all the scripts execution if fails.

Q: Can you please point me to where I can find a demo of using TestOps?

A: Sure, please refer to the link below :point_down:

Q: Is it possible to launch chrome with the Katalon Recorder extension loaded, when executing WebUI scripts? This would make it possible to continue recording and interacting with the browser when Katalon scripts have stopped executing but the browser has not yet been closed?

A: Yes, we can do the recording in the active browser also.

Q: How many Test Cases can I run in parallel?

A: You can run a maximum of eight (8) instances of Test Cases.

Q: How are the web element identified? Is it “ByName” or “ById” or “ByXpath”?

A: It depends on the application type. Katalon, by default, identifies by XPath, but if you want to change the default locator type, then you can do so by modify the settings.

Q: Will execution stop if value is false, right?

A: No, it will not stop the execution of the scripts.

Q: Can you describe how to use TestOps?

A: TestOps is the process of using automation to centralize and streamline the planning, monitoring, and testing of your software development. The idea is to turn disjointed, siloed teams and processes into a well-oiled engine that allows you to produce better software, faster, and with fewer bugs.

For more detailed information and instruction, please refer to our documentation below:

Q: Say you have 400 Test Cases and some are in a Test Suite while others are not. How can you tell which scripts uses variables without having to go into each one? Is there some type of indicator?

A: We can do data mapping at Test Suite level also.