Prompt user for input


I want to taste a web application on Internet Explorer. Our application is very complex and some tests are next to impossible to validate programmatically.

We wish (for some test cases) to ask the user at the end of the test, if the test succeeded or not. I know that contradicts the nature of “automated testing” but this is what we need to do right now.

With a Selenium script I can ask the user to input something on console and assert his answer (continue/pass the test if it’s possitive, fail the test otherwise). Can I do something like that on Katalon Studio?


you can use Java Java Swing class
import javax.swing.JFrame
import javax.swing.JOptionPane

JFrame frame = new JFrame("User Input Frame")
String number = JOptionPane.showInputDialog("frame, Enter user input value!")
int days = Integer.valueOf(number)
1 Like

Okay thank you :slight_smile: