2013-03-25 24 views
1

我想構建一個常用方法的groovy類。得到這個錯誤和不知道如何解決導入其他groovy腳本 - 獲取錯誤

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 

這裏是我的其他腳本

import pages.manage.* 

思想導入行?

回答

4

您需要在包含的腳本中指定包,如'package pages.manage'。