0

Windows 7 でコードを開発し、Winscp を使用してコードを Unix ボックスに移動しました。Unix ボックスで以下のコマンドを入力した後、Unix env で以下のエラーが発生しました

./katalon -runMode=console -projectPath="/home/jenktran/Automation/Katalon_First_Proj/Katalon_First_Proj.prj" -retry=1 -retryFailedTestCases=true -testSuitePath="Test Suites/Time-Trax in Chrome Browser" -browserType="Chrome (headless)"

以下はコンソールログです:-

jenktran@pstas07:~/Automation$ ./katalon -runMode=console -projectPath="/home/jenktran/Automation/Katalon_First_Proj/Katalon_First_Proj.prj" -retry=1 -retryFailedTestCases=true -testSuitePath="Test Suites/Time-Trax in Chrome Browser" -browserType="Chrome (headless)"
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
129 2.4.7.xx-201611170128-e46 = ACTIVE
/%home%jenktran%Automation%Katalon_First_Proj%Katalon First Proj.prj/Keywords/newPackage/newKeyword.groovy: 24 Groovy:unable to resolve class internal.GlobalVariable
java.lang.NullPointerException
at com.kms.katalon.dal.fileservice.manager.GlobalVariableFileServiceManager.getWrapper(GlobalVariableFileServiceManager.java:44)
at com.kms.katalon.dal.fileservice.manager.GlobalVariableFileServiceManager.getAll(GlobalVariableFileServiceManager.java:17)
at com.kms.katalon.dal.fileservice.dataprovider.GlobalVariableFileServiceDataProvider.getAll(GlobalVariableFileServiceDataProvider.java:13)
at com.kms.katalon.controller.GlobalVariableController.getAllGlobalVariables(GlobalVariableController.java:31)
at com.kms.katalon.controller.GlobalVariableController.generateGlobalVariableLibFile(GlobalVariableController.java:54)
at com.kms.katalon.controller.ProjectController.openProject(ProjectController.java:96)
at com.kms.katalon.execution.console.ConsoleMain.getProject(ConsoleMain.java:223)
at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:130)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:70)
at com.kms.katalon.console.application.Application.runConsole(Application.java:62)
at com.kms.katalon.core.application.Application.runConsole(Application.java:72)
at com.kms.katalon.core.application.Application.start(Application.java:56)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

Windows 7で正常に実行されているにもかかわらず、このスクリプトが失敗する理由

4

1 に答える 1