Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing other groovy scripts -- getting errors

Tags:

groovy

I am trying to build a groovy class that holds common methods. Getting this error and not sure how to fix

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Compilation incomplete: expected to find the class pages.manage.Common in file:/Users/jsmithers/groovy/Development/groovy/automation/qa-automation/pages/manage/Common.groovy, but the file contains the classes: Common

Here is the import line in my other script

import pages.manage.*

Thoughts?

like image 910
jrock2004 Avatar asked Aug 01 '26 14:08

jrock2004


1 Answers

you need to specify the package in the script you are including, like 'package pages.manage'.

like image 106
Erik Pragt Avatar answered Aug 05 '26 05:08

Erik Pragt