Description:
I am currently using Katalon Studio version 9.6.0 with JDK 1.8. When I run a test case, the job progress shows as “done,” but the browser does not redirect to the intended website for testing. Additionally, I am encountering the following error in the console:
Caught: java.lang.UnsupportedClassVersionError: com/kms/katalon/core/driver/internal/DriverCleanerCollector has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
java.lang.UnsupportedClassVersionError: com/kms/katalon/core/driver/internal/DriverCleanerCollector has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at TempTempCase1726301247321.run(TempTempCase1726301247321.groovy:15)
Test Details
Testing URL: Test Login | Practice Test Automation
-
Gherkin Script (login.feature):
Feature: Login PageScenario: TC.Log.001.001-User want to login with valid credentials
Given User is on the Login page
#When User type username student into Username field
#And User type password Password123 into Password field
#And User push Submit button
#Then User successfully login with valid credentials and User get message Successfully Logged in -
Groovy Script (login.groovy):
package stepDefinition
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.annotation.Keyword
import com.kms.katalon.core.checkpoint.Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling
import com.kms.katalon.core.testcase.TestCase
import com.kms.katalon.core.testdata.TestData
import com.kms.katalon.core.testobject.TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.webui.keyword.internal.WebUIAbstractKeyword
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import cucumber.api.java.en.Given
import internal.GlobalVariable
public class Login {
@Given(“User is on the Login page”)
public void User_is_on_the_Login_page() {
WebUI.openBrowser(‘Test Login | Practice Test Automation’)
WebUI.maximizeWindow()
WebUI.delay(5)
WebUI.closeBrowser()
}
}
Questions:
- How can I resolve the
java.lang.UnsupportedClassVersionError
issue with Katalon Studio? - Why is the browser not opening or redirecting to the specified URL during test execution?
- Are there any additional configuration steps needed to ensure compatibility with JDK 1.8?