Am Freitag, 4. August 2017 06:17:47 UTC+2 schrieb reindheer: > > Hi, > > I am using Apache Karaf 4.0.8 for our backend and ui web applications, and > pax exam 4.10 for module testing. We have have written module tests using > pax exam for the backend applications. > > In UI application we use vaadin for ui and testbench for ui automation > testing. Now we want to integrate both so we could test the whole backend > and ui application. > > So we are trying to run testbench using junits in pax exam.The testbench > uses selenium and other third party libs which are not bundles. Even > testbench is not a bundle. We have added all the third party libs as > dependencies to our project which only runs tests on pax exam. It compiles > but when run we get the following exception. > > java.lang.ClassNotFoundException: com.vaadin.testbench.TestBenchTestCase > not found by PAXEXAM-PROBE-19b79a7d-9de8-4bf9-bc34-0d3bdab631d6 [190] > at > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574) > at > org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79) > at > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:760) > at > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.defineClass(BundleWiringImpl.java:2370) > at > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2154) > at > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1542) > at > org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79) > at > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at > com.mymoduletest.uitest.LaunchWebApp.<init>(LaunchWebApp.java:14) > > For this i tried adding all libraries required for testbench in a bundle( > exporting all packages) and added this to pax exam using maven() in pax > exam config method. Is this correct or we could do it in a better way? > > Thanks & Regards, > Dheeraj >
-- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
