iti-ict / wakamiti

BDD testing tool using step libraries
https://iti-ict.github.io/wakamiti/
Mozilla Public License 2.0
33 stars 7 forks source link

Error de configuración #127

Closed mgalbis closed 11 months ago

mgalbis commented 1 year ago

Si no hay configuración del plugin appium en el yaml, ocurren errores al inicio y final de cada escenario (no afecta al resultado final, solo aparecen en el log de ejecución):

Desired Appium Capabilities:
Capabilities {}
Unknown Appium platform: null , using basic driver
Error running set-up operation: Invalid Appium URL: null
Invalid Appium URL: null
iti.kukumo.api.KukumoException: Invalid Appium URL: null
        at iti.kukumo.appium.DriverHelperFactory.create(DriverHelperFactory.java:32) ~[kukumo-appium-1.0.0.jar:?]
        at iti.kukumo.appium.AppiumStepContributor.createClient(AppiumStepContributor.java:55) ~[kukumo-appium-1.0.0.jar:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at iti.kukumo.core.backend.DefaultBackendFactory.lambda$loadMethods$1(DefaultBackendFactory.java:222) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.backend.RunnableBackend.runMethod(RunnableBackend.java:152) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.backend.RunnableBackend.setUp(RunnableBackend.java:137) ~[kukumo-core-1.7.0.jar:1.7.0]
        at java.util.Optional.ifPresent(Unknown Source) ~[?:?]
        at iti.kukumo.core.runner.PlanNodeRunner.testCasePreExecution(PlanNodeRunner.java:175) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanNodeRunner.runNode(PlanNodeRunner.java:106) ~[kukumo-core-1.7.0.jar:1.7.0]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.reduce(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.max(Unknown Source) ~[?:?]
        at iti.kukumo.core.runner.PlanNodeRunner.runChildren(PlanNodeRunner.java:125) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanNodeRunner.runNode(PlanNodeRunner.java:108) ~[kukumo-core-1.7.0.jar:1.7.0]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.reduce(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.max(Unknown Source) ~[?:?]
        at iti.kukumo.core.runner.PlanNodeRunner.runChildren(PlanNodeRunner.java:125) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanNodeRunner.runNode(PlanNodeRunner.java:108) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanRunner.run(PlanRunner.java:60) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.Kukumo.executePlan(Kukumo.java:357) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.launcher.KukumoRunner.run(KukumoRunner.java:53) ~[kukumo-launcher.jar:?]
        at iti.kukumo.launcher.KukumoLauncher.main(KukumoLauncher.java:71) ~[kukumo-launcher.jar:?]
Caused by: java.lang.NullPointerException
        at java.net.URI$Parser.parse(Unknown Source) ~[?:?]
        at java.net.URI.<init>(Unknown Source) ~[?:?]
        at java.net.URI.create(Unknown Source) ~[?:?]
        at iti.kukumo.appium.DriverHelperFactory.create(DriverHelperFactory.java:29) ~[kukumo-appium-1.0.0.jar:?]
        ... 35 more
Clean-up finished
Error running tear-down operation: null
null
java.lang.NullPointerException: null
        at iti.kukumo.appium.AppiumStepContributor.destroyClient(AppiumStepContributor.java:64) ~[kukumo-appium-1.0.0.jar:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at iti.kukumo.core.backend.DefaultBackendFactory.lambda$loadMethods$1(DefaultBackendFactory.java:222) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.backend.RunnableBackend.runMethod(RunnableBackend.java:152) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.backend.RunnableBackend.tearDown(RunnableBackend.java:145) ~[kukumo-core-1.7.0.jar:1.7.0]
        at java.util.Optional.ifPresent(Unknown Source) ~[?:?]
        at iti.kukumo.core.runner.PlanNodeRunner.testCasePostExecution(PlanNodeRunner.java:179) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanNodeRunner.runNode(PlanNodeRunner.java:110) ~[kukumo-core-1.7.0.jar:1.7.0]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.reduce(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.max(Unknown Source) ~[?:?]
        at iti.kukumo.core.runner.PlanNodeRunner.runChildren(PlanNodeRunner.java:125) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanNodeRunner.runNode(PlanNodeRunner.java:108) ~[kukumo-core-1.7.0.jar:1.7.0]
        at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.reduce(Unknown Source) ~[?:?]
        at java.util.stream.ReferencePipeline.max(Unknown Source) ~[?:?]
        at iti.kukumo.core.runner.PlanNodeRunner.runChildren(PlanNodeRunner.java:125) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanNodeRunner.runNode(PlanNodeRunner.java:108) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.runner.PlanRunner.run(PlanRunner.java:60) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.core.Kukumo.executePlan(Kukumo.java:357) ~[kukumo-core-1.7.0.jar:1.7.0]
        at iti.kukumo.launcher.KukumoRunner.run(KukumoRunner.java:53) ~[kukumo-launcher.jar:?]
        at iti.kukumo.launcher.KukumoLauncher.main(KukumoLauncher.java:71) ~[kukumo-launcher.jar:?]
auxicarlos commented 1 year ago

No aplica por la refactorización que se hizo de los plugins, ahora se bajan sólo los que se van a utilizar en los tests