We are excited to release Katalon 7.5 Beta with awesome features/improvements, and we would like you to use it and provide us with the feedback that would enable a better testing experience for you.
Some highlight features:
Native Recorder for Windows: Provide a fast and seamless test development experience on Desktop that is similar to the Web Recorder.
Retry Test Cases only on failed Test Data: Rerun executions only on the failed data row to reduce time when dealing with large Test Suites and Test Data.
Web Keywords for upload file with drag and drop: Nowadays modern websites support drag-and-drop a file to upload, now such a feast can also be done in Katalon.
Support migrating Selenium/TestNG/JUnit test scripts to Katalon Studio(since 7.4, in case you miss): Reduce frictions of adopting Katalon as your organization’s automated testing solution. Migrate and receive the best of both worlds.
And more ! Read from the release note:
And if you are hooked, then download it from here:
Has anything changed in how “Data Files” are loaded when running “Test Suites” ?
Before 7.5, I think files were loaded at the beginning of the corresponding “Test Case”.
Since 7.5, it seems to be much earlier, at the beginning of the “Test Suite”. Not only to count available records but also to load those records “in memory”.
Since I have a few separate “Tests Cases” in the “Test Suite” that refresh “Data Files” with new data, this new data is not taken into account. Old data is already “cached” and will be used, even when adding a few seconds delay between generation and use in one or several of the following “Test Cases” in the Suite.
I will add that my “Data Files” are not stored on local disk but on a network share (that’s why I’ve thought to add a delay, but with no improvement).
Thanks
Can you provide a minimal example to demonstrate the perceived differences ? As it is right now, I can imagine the problem, but it’s still kinda abstract. Please try to give some code snippets, logs and comparisons between the versions, what works and what doesn’t etc.
@Keyword
def uploadFile (TestObject to, String filePath) {
WebUI.click(to)
WebUI.delay(5)
final File file = new File(filePath);
final StringSelection selection = new StringSelection(file.getAbsolutePath());
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(selection, null);
try {
final Robot robot = new Robot();
// Cmd + Tab is needed since it launches a Java app and the browser
// looses focus
robot.keyPress(KeyEvent.VK_META);
robot.keyPress(KeyEvent.VK_TAB);
robot.keyRelease(KeyEvent.VK_META);
robot.keyRelease(KeyEvent.VK_TAB);
robot.delay(500);
// Open Goto window
robot.keyPress(KeyEvent.VK_META);
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_G);
robot.keyRelease(KeyEvent.VK_META);
robot.keyRelease(KeyEvent.VK_SHIFT);
robot.keyRelease(KeyEvent.VK_G);
// Paste the clipboard value
robot.keyPress(KeyEvent.VK_META);
robot.keyPress(KeyEvent.VK_V);
robot.keyRelease(KeyEvent.VK_META);
robot.keyRelease(KeyEvent.VK_V);
robot.delay(2000);
// Press Enter key to close the Goto window and Upload window
robot.keyPress(KeyEvent.VK_ENTER);
robot.keyRelease(KeyEvent.VK_ENTER);
robot.delay(1000);
robot.keyPress(KeyEvent.VK_ENTER);
robot.keyRelease(KeyEvent.VK_ENTER);
} catch (final Exception e) {
e.printStackTrace();
}
}
Is anyone facing the similar problem like above comment with upload file custom keyword using robot? the upload window is getting opened however the go to folder and enter after that is not working. Any help in this regard would be greatly appreciated. Am running KS 7.5.5. Thanks in advance.