PharmEasyEngg / lampo

Lampo is developed to run appium mobile automation scripts on mobile devices connected to remote machines. It also aims at allowing users to interact with remotely connected devices for manual testing.
Other
42 stars 6 forks source link

com.lampo.master.RemoteDeviceManagerTest > initializationError FAILED #2

Open rpkpraveens opened 3 years ago

rpkpraveens commented 3 years ago

Getting failure in server startup. not sure why the path reference is missing rabbitmq folders under /var/folders/tq/1tppl1d52910j4tmg7dc85q00000gq/T/. I have my rabbitmq installed and it is up and running. how to resolve this

rabbitMQ version running in my system:

Asking node rabbit@localhost for its RabbitMQ version...
3.8.11

Debug Logs

2021-02-17T10:34:57.434+0530 [DEBUG] [TestEventLogger]
2021-02-17T10:34:57.434+0530 [DEBUG] [TestEventLogger] com.lampo.master.RemoteDeviceManagerTest > initializationError STARTED
2021-02-17T10:34:57.457+0530 [DEBUG] [TestEventLogger]
2021-02-17T10:34:57.457+0530 [DEBUG] [TestEventLogger] com.lampo.master.RemoteDeviceManagerTest > initializationError FAILED
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]     org.opentest4j.MultipleFailuresError: Multiple Failures (2 failures)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]          java.lang.IllegalArgumentException: The given command could not be found using the path: /var/folders/tq/1tppl1d52910j4tmg7dc85q00000gq/T/rabbitmq_server-3.8.0/sbin/rabbitmq-plugins
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]          java.lang.NullPointerException: <no message>
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.TestRun.getStoredResultOrSuccessful(TestRun.java:179)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.RunListenerAdapter.fireExecutionFinished(RunListenerAdapter.java:211)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.RunListenerAdapter.testRunFinished(RunListenerAdapter.java:90)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
2021-02-17T10:34:57.458+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:40)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:71)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
2021-02-17T10:34:57.459+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/java.lang.reflect.Method.invoke(Method.java:567)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at com.sun.proxy.$Proxy5.stop(Unknown Source)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:132)
2021-02-17T10:34:57.460+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.lang.reflect.Method.invoke(Method.java:567)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
2021-02-17T10:34:57.461+0530 [DEBUG] [TestEventLogger]         at java.base/java.lang.Thread.run(Thread.java:830)
2021-02-17T10:34:57.462+0530 [DEBUG] [TestEventLogger]
2021-02-17T10:34:57.462+0530 [DEBUG] [TestEventLogger] com.lampo.master.RemoteDeviceManagerTest FAILED
2021-02-17T10:34:57.486+0530 [DEBUG] [TestEventLogger]
sarathpharmeasy commented 3 years ago

Hi @rpkpraveens Thanks for trying out. This seems to be a unit test failure. Were you able to compile and run the app?

./gradlew clean build -x test && java -jar build/libs/remote-device-manager.war

Can you please try the above command once and let us know whether it's launching successfully? Please make sure you have rabbitmq with admin plugin installed and mongodb running on your local machine for running master application successfully.

For enabling rabbitmq-admin plugin, please run this command: rabbitmq-plugins enable rabbitmq_management

Please refer to the installation guide if not done already.