Skip to main content

Posts

Showing posts from December, 2020

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN

 if you are getting below error while installing npm or any other component using npm  npm ERR! code SELF_SIGNED_CERT_IN_CHAIN npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN then a  quick solution: Run this command npm config set strict-ssl false it will solve this issue.  but if you want to use SSL then please upgrade your npm then allow it from proxy server or firewall. then execute this command: npm config set registry= "http://registry.npmjs.org/" happy testing.

Uiautomatorviewer is giving error “SWT folder '..\lib\location of your Java installation.' does not exist”

 While using Anroid studio and launching the UIAutomatorviewer if you get below error: Uiautomatorviewer is giving error “SWT folder '..\lib\location of your Java installation.' does not exist Solution: Go to bin folder of Android studio Run sdkmanager.bat It will say java path is correct or not Update JAVA_HOME as new path where you installed java in program files Close the CMD Open command prompt and run sdkmanager.bat it will run pending jars then run uiautomatorviewer.bat it will work!!

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.

 Somwtime while ceating Maven project we get this error Solution: open Eclipse and do the below steps: Open Window > Preferences Open Maven > Archetypes Click 'Add Remote Catalog' and add the following: Catalog File:  https://repo1.maven.org/maven2/archetype-catalog.xml Description: maven catalog Then Simply Clean build on eclipse it will work!!

Error in pom.xml Maven build

 If you get error in POM file. and not able to resove using build or clean options then The best way to solve this was to use the eclipse "Update Maven Project" (ALT+F5) feature end check the option "Force Update of Snapshots/Releases".

java.lang.NoSuchMethodError: org.testng.remote.AbstractRemoteTestNG.addListener(Lorg/testng/ISuiteListener;)

 While running the TestNG test under eclipse if you are getting below error: java.lang.NoSuchMethodError: org.testng.remote.AbstractRemoteTestNG.addListener(Lorg/testng/ISuiteListener;) Solution: you are encountering this error because you may installed the TestNG in multiple times in eclipse. You can either add dependencies in POM.XML or install "TestNG for Maven" from Eclipse market place. Please make sure that either you uninstalled TestNG for Maven (optional) from install new software or remove dependencies from POM.XML. It will work. Leave comments.

ERROR: SWT folder '' does not exist. Please set ANDROID_SWT after SDK update

 ERROR: SWT folder '' does not exist. Please set ANDROID_SWT after SDK update Sometime after updating the SDK we get this error Problem :ERROR: SWT folder '' does not exist. Please set ANDROID_SWT Go to windows environment variables settings, create a new(if it already exists, edit the old one) variable with the name:  JAVA_HOME  and value to your installed JDK path like: C:\Program Files\Java\jdk1.7.0_45\  and also add this to end of your path variable:  %JAVA_HOME%/bin and restart the CMD. It will work!!

org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session.

 While running appium test using eclipse. if you are getting the error org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. This means your device name mentioned in your script is not correct as correct you have created in Anroid studio. Make sure to check space underscore capital letter to resolve this error.