I followed below steps for migration of a piece selenium TestNG code to Katalon studio. Am getting error while running the TC. Please help me understand what I am missing here
pre-requisite: Added Selenium/TestNG plugin
- Copied selenium code under Include /Scripts/groovy/package/test.java and pageobject under same package
- Imported all the related libraries manually under Project/settings/External libraries since not aware of format to add maven libraries into build.gradle
- Created a TC and added TestNG Keyword to call the java class as follows
List testClasses =[‘test.class’]
Getting below error while running the TC
Test Cases/IdentifiAppl/SeleniumLoginScript FAILED.
com.kms.katalon.core.exception.StepFailedException: Keyword runTestNGTestClasses was failed (Root cause: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘test.class’ with class ‘java.lang.String’ to class ‘java.lang.Class’ due to: java.lang.ClassNotFoundException: test.class
Appreciate a quick and detailed response!