Q: I am new to Katalon Studio. Currently I am using Selenium with Eclipse , Appium and Postman for Automation Testing. How much similarity is there between Katalon Studio and the above-mentioned tools, and what are the advantages of using or introducing Katalon Studio within an organization setting?
A: You need to code everything in Selenium, but with Katalon we have a prebuilt library, you can use record and playback so it’s much easier to write tests. You also can integrate to a lot of CI/CD pipeline. It’s also a one platform for all types of apps so you can centralize all testing in one place.
Q: I would like to understand more about the Pros and Cons between using Katalon Runtime Engine and Katalon TestCloud.
A: With Katalon Runtime Engine (KRE), you will get CLI, CI/CD execution, and you need to keep all your environments ready. With Katalon TestCloud, you can execute tests on cloud environment for multiple devices, and you would not need to do any set up.
Q: I have recently started using CSS Selectors instead of XPaths in my element locators. Usually when creating new ones or during some refactoring, both cases worked fine. Is there a recommendation on which one I should use? During the session you have advised to use either XPath or Attributes, but no mention of CSS Selector.
A: Thank you for your question. CSS Selectors is not something that everyone is familiar with. Hence, XPath and Attributes will be better suited for people with little or no prior coding knowledge. If you are more familiar with CSS, please go ahead and use it freely.
Q: If the target application is only accessible via a VPN (Virtual Private Network), can we still use Katalon TestCloud?
A: Unfortunately, no. If the target application is only accessible via a VPN (Virtual Private Network), you may not be able to directly use a TestCloud service with Katalon Studio. Katalon TestCloud services typically require access to the application under test without any additional network dependencies, such as a VPN connection.
A: Yes, we do. You can use Flutter Appium Driver to do that. If you need any support, please reach out to us here on the forum if you are one of our free users, or via our Support Portal below if you are one of our paying customers.
Q: Can we pass the Captcha or OTP in Mobile Applications?
A: It is not good practice to automate Captcha (for security reasons) but you can automate OTP. Please follow the thread below to learn more on how to use Katalon Studio to automate OTP on mobile devices…
Q: I have an example use case: There is form registration, and I want to test whether the validations in the email form work or not. How can i create the test case using Katalon Studio,and how do I create the report?
A: Please follow the steps below…
To create a test case in Katalon Studio to verify the validation in an email form, follow these steps:
Create a New Test Case:
In Katalon Studio, create a new test case by right-clicking on the Test Cases folder, selecting “New” > “Test Case”.
Give the test case a meaningful name, such as “Email Form Validation Test.”
Open the Application:
Use Katalon Studio’s built-in keywords, such as WebUI.openBrowser() and WebUI.navigateToUrl(), to open the application and navigate to the registration form page.
Enter Invalid Email:
Use the WebUI.setText() keyword to input an invalid email address in the email field of the registration form.
Consider using different variations of invalid email addresses (e.g., missing “@” symbol, incorrect domain format) depending on the validation requirements.
Submit the Form:
Use the WebUI.click() keyword to submit the form.
If there is a validation message displayed for the email field, use validation keywords like WebUI.verifyElementVisible() or WebUI.verifyElementText() to validate the presence and content of the validation message.
Enter Valid Email:
Repeat step 3, but this time input a valid email address in the email field.
Submit the Form:
Repeat step 4 by using the WebUI.click() keyword to submit the form.
Validate that there are no validation error messages displayed for the email field.
Close the Browser:
Use the WebUI.closeBrowser() keyword to close the browser after the test case execution.
To generate a test report in Katalon Studio, follow these steps:
Execute the Test Case:
Right-click on the test case and select “Run” > “As Test Case” or “Run” > “As Test Suite” to execute the test case.
You can also execute multiple test cases or a test suite that includes this test case.
View Test Report:
Once the test execution is completed, navigate to the “Reports” folder in the Katalon project directory.
Open the latest HTML report file to view the test report in a web browser.
Customize the Test Report:
Katalon Studio provides options to customize your test reports.
You can include additional test steps, screenshots, or logs by using appropriate keywords and utilities provided by Katalon Studio.
The reports can be further customized by modifying the report templates using HTML or other scripting languages.
When viewing the test report, you will see the overall test execution status, individual test steps, any failed assertions or errors, and screenshots (if configured). The report will provide you with valuable information on each test case’s status and any issues encountered during validation.
Q: Is there a way to customize the default Teams Web Hook message notification? This is an example of what we have at the moment…
Summary execution result of Test Suite: MyFirstTestSuite
A: In Katalon Studio, you can customize the default Teams Web Hook message notification by modifying the payload of the request that is sent to the Teams Web Hook endpoint. Please follow the steps below on how you can do it:
Open your Katalon Studio project and navigate to the test case or test suite where you have configured the Teams integration.
Locate the step where you are sending the HTTP request to the Teams Web Hook endpoint. Typically, this would involve using the WebUI.sendRequest() or WS.sendRequest() keyword.
Within the request payload, you can modify the JSON structure to customize the message content and appearance. The specific customization options would depend on your requirements and the formatting capabilities supported by the Teams messaging platform.
Here’s an example of modifying the request payload using the WebUI.sendRequest() keyword:
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
// Creating a new RequestObject with the modified payload
RequestObject requestObject = findTestObject('your_request_object')
// Sending the customized request and capturing the response
ResponseObject responseObject = WS.sendRequest(requestObject)
By modifying the JSON payload content, you can customize various aspects of the Teams notification, such as message text, formatting, attachments, and other relevant information.
Keep in mind that the customization options are subject to the capabilities and limitations of the Teams Web Hook integration. It’s recommended to refer to the official Microsoft Teams documentation for detailed information on customizing message notifications and the available formatting options."
Q: One of the challenges we are currently facing is when navigating to a web application, the browser presents a authentication challenge pop-up. We need to get past that in order to get to the “proper” authentication page. Can you suggest us on to how to do that?
A: Use a separate WebDriver profile:
Create a new WebDriver profile for your browser (e.g., Chrome or Firefox).
Configure the profile to include the authentication credentials in the URL. For example, for Basic Authentication, you can include the username and password in the URL: http://username:email@example.com.
In Katalon Studio, switch to the custom WebDriver profile when navigating to the web application.
This approach bypasses the authentication pop-up and directly logs in to the application.
Q: Any idea of how we can resolve this type of exception:
Unable to capture objects : Reason : WebDriverException
org.openqa.selenium.WebDriverException: An unknown error occurred in the remote end while processing the command. (WARNING: The server did not provide any stacktrace information)
A: You can try using Katalon Chrome Utility to access it.
To download a file using Katalon Studio, you can’t interact directly with the file dialog box as it is a browser-specific UI control. However, you can download files using the browser’s default behavior by clicking on download links or buttons, and defining the destination folder for the downloaded file.
// Click on the download button/link
// Verify the file is downloaded
String filePath = 'C:/path/to/destination/folder/file.txt'
KeywordUtil.logInfo(""Checking if the file is downloaded..."")
Set the File Path for File Inputs:
When automating forms that involve file upload, you can use the WebUI.setText() keyword to set the file path for the file input element.
// Replace 'your_file_input' with the actual test object representing the file input element
String filePath = 'C:/path/to/your/file.txt'
Make sure to replace ‘your_upload_button’, ‘your_download_button’, ‘your_file_input’, and the file path (‘C:/path/to/your/file.txt’ in the examples) with the appropriate values for your application.