Skip to main content

Posts

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.
Recent posts

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.

Cypress Test runner issue: cannot be loaded because running scripts is disabled on this system

Sometime user cannot open Cypress TestRunner due one of below error Error : ./node_modules/.bin/cypress : cannot be  loaded because running scripts is disabled on this system. For more information, see  about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. Solution:  In Window:: Open Windows PowerShell Run Set-ExecutionPolicy RemoteSigned Type Yes Now Run run command ./node_modules/.bin/cypress run Test runner will work properly Happy Testing!!!

Error: org.openqa.selenium.UnhandledAlertException: unexpected alert open

Error: org.openqa.selenium.UnhandledAlertException: unexpected alert open Solution: basically, this message shows   selenium is not able to handle alert or window popup or browser popup message Use this code to handle this issue: public void clickOKAlertAccept() throws InterruptedException {            // you can ignore the step written in first try block. Also DRIVER I have defined for browser in my code. try {               Alert alert = DRIVER .switchTo(). alert ();         alert .accept(); } catch (Exception e ) {        try { if ( e .toString().contains( "org.openqa.selenium.UnhandledAlertException" ))   {            Alert alert = DRIVER .switchTo(). alert ();         alert ...

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject at utility.ExcelUtils.setExcelFile

    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject Solution: There are two ways we can resolve this issue: 1 st solution: 1.        Include two more jar. xmlbeans-2.3.0.jar       dom4j-1.6.1.jar 2.       You must use HSSFWorkbook instead of   XSSFWorkbook after add jar. Note: It is required for the files with .xlsx formats only, not for just .xls formats 2 nd Solution: Just change your file format from xlsx to xls Happy Testing!!!