Posts

Showing posts from April, 2021

Testng - java.lang.NoClassDefFoundError: com/google/inject/Stage -- during configuration

Image
Why I am getting Below error: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/Stage at org.testng.internal.Configuration.<init>(Configuration.java:33) at org.testng.TestNG.init(TestNG.java:216) at org.testng.TestNG.<init>(TestNG.java:200) at org.testng.remote.AbstractRemoteTestNG.<init>(AbstractRemoteTestNG.java:17) at org.testng.remote.support.RemoteTestNG6_12.<init>(RemoteTestNG6_12.java:18) at org.testng.remote.support.RemoteTestNGFactory6_12.createRemoteTestNG(RemoteTestNGFactory6_12.java:16) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:67) Caused by: java.lang.ClassNotFoundException: com.google.inject.Stage at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 7 more Answer: This error u...

RUN Selenium Test Cases in Docker – Advantages and challenges

Image
What is Docker?   Docker is a container platform that provides virtualization from the operating system level. In Docker, all software parts can be organized in containers. This includes the operating system, software, dependencies, environment variables, etc. Containers can be shared among different users, enabling quick installation and running of software and services. This makes Docker handy for automation testing, as the relevant container can just be downloaded and run as part of the automated test. However, Docker is also secure because it runs as an isolated process on the host machine. Docker can be run on any computer on any infrastructure as well as in the cloud, including Linux, Windows, Mac, Amazon, Azure and etc.  Pro's of using Docker Docker is open source. This means that you can find many images (used to generate containers) on the web and use them.   Docker can be an integral part of Continuous Deployment and Continuous Testing, by ensuring y...