Īt 0(Native Method)Īt (NativeMethodAccessorImpl.java:62)Īt (DelegatingMethodAccessorImpl.java:43)Īt .invoke(Method.java:498)Īt .GroovyStarter.rootLoader(GroovyStarter.java:106)Īt .GroovyStarter.main(GroovyStarter.java:128)Ĭaused by: Īt groovy.ui.GroovyMain$VersionProvider.getVersion(GroovyMain.java:151)Īt groovyjarjarpicocli.CommandLine$Model$CommandSpec.version(CommandLine.java:5715)Īt (CommandLine.java:2472)Īt (CommandLine.java:1710)Īt (CommandLine.java:1671)Īt (CommandLine.java:1657)Īt groovy.ui.GroovyMain.processArgs(GroovyMain.java:130)Īt groovy.ui.GroovyMain.main(GroovyMain.java:116)Ĭaused by: : Conflicting module versions. However, groovy did throw an error when i tried groovy -version $ groovy -version Here is a screenshot of my Katalon Studio preferences for Groovy to see if anything looks off on yours (these are the defaults - I didn’t have to change thank you for the creative thinking and for taking a look, but I still got the error after making those modifications to the test script and checking the compiler settings were as yours are. I don’t think it’s a groovy issue, since it seems like the groovy compiler is working, just not finding the files. I don’t know if either of those will resolve your underlying issue, which seems to be that the test doesn’t have access to the classes you’re trying to use, which is odd because those should all be included with Katalon. I don’t think WebUI.navigateToUrl will work without first opening a browser in the test, so you can try WebUI.openBrowser('') instead. it might not fix things, but it will greatly shorten the error messages. There are a lot of extra import statements for the test you’re trying to run in your last example. What is your version of groovy and where is it installed?.What is your version of Java and where is it installed?.classpath file in the project: classpath file copy.txt (15.9 KB) Import internal.GlobalVariable as GlobalVariable Import .testobject.TestObject as TestObject
Import .checkpoint.Checkpoint as Checkpoint Here’s the test case I tried to run: import static. nTestCase('Test Cases/New Test Case', new TestCaseBinding('Test Cases/New Test Case',), FailureHandling.STOP_ON_FAILURE, false) tExecutionSettingFile('/var/folders/r1/rfnb51z16_3gc7lqpb9rrhhj071tnc/T/Katalon/Test Cases/New Test Case/20191121_065310/execution.properties') Here’s the groovy file Katalon generated that errored out: import .main.TestCaseMainĭriverCleanerCollector.getInstance().addDriverCleaner(new .())ĭriverCleanerCollector.getInstance().addDriverCleaner(new .())ĭriverCleanerCollector.getInstance().addDriverCleaner(new .())ĭriverCleanerCollector.getInstance().addDriverCleaner(new .()) Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 16: unable to resolve class line 16, column 55. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 15: unable to resolve class line 15, column 55. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 14: unable to resolve class line 14, column 55. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 13: unable to resolve class line 13, column 55. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 2: unable to resolve class line 2, column 1.
Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 1: unable to resolve class line 1, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 9: unable to resolve class line 9, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 7: unable to resolve class line 7, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 6: unable to resolve class line 6, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 5: unable to resolve class line 5, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 4: unable to resolve class line 4, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 8: unable to resolve class line 8, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 3: unable to resolve class line 3, column 1. Users/eric.hansen/Katalon Studio/Test/Libs/oovy: 10: unable to resolve class line 10, column 1. These are my errors: .MultipleCompilationErrorsException: startup failed: