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.

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!!!

Error: chromedriver.exe returns Only local connections are allowed

    Error: chromedriver.exe returns   Only local connections are allowed Error: chromedriver.exe returns   Only local connections are allowed Solution: basically, this message represents chromedriver.exe and selenium version compatible issue Download the chromedriver.exe as per chrome browser you are using by following steps: ·          Find out which version of Chrome you are using. Let's say you have Chrome 72.0.3626.81. ·          Take the Chrome version number, remove the last part, and append the result to URL "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_". For example, with Chrome version 72.0.3626.81, you'd get a new URL "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_72.0.3626". ·          Use the URL created in the last step to retrieve a small file containing the version of ChromeDriver...

JMeter: Connection refused to host

                              JMeter: Connection refused to host Error: Connection refused to host:, nested exception is : java.net.connectException: connection timed out: connect Unable to run test form in Remote machine and get the above error Quick resolution: Check whether jmeter-server.bat file is running on remote system This should resolve the error. Happy Testing!!!

JMeter Test is not Stopping

                              JMeter test is not stopping JMeter test is not stopping in backend!!! One of the reasons might be, the machine on which we're running JMeter at is overloaded. Quick resolution to end the test gracefully: 1.   Terminate JMeter test gracefully using either shutdown.cmd shell script or forcefully using stoptest.cmd script . Note: 1. Don't run load tests using GUI mode. NonGUI mode is always good for load testing execution.       2. Both scripts are located under "bin" folder of JMeter installation.       3. Try to follow JMeter Best Practices This should resolve the error. Happy Testing!!!

JMeter Script Recording Error

                              JMeter Script Recording Error Sometimes JMeter does not record the script even doing everything in right way!! To resolve recording issue of JMeter, follow below steps: 1.        Go to Bin folder of JMeter 2.       There should be a JMeter certificate (ApacheJMeterTemporaryRootCA) should be available 3.       Add this certificate into the Browsers list of trusted certificates By navigating to Go to Tools> Internet Options> Content >Certificates > Import Certificate from the Bin directory 4.       Now Add Thread Group under Test Plan 5.       Add Recording controller under Thread Group. 6.       Under WorkBench add HTTPS Test Sc...

Save Jmeter Test results into CSV/XML

                                        Save Jmeter Test results into CSV/XML 1.        Launch JMeter   2.       Right click Test Plan and Add -> Threads (Users) -> Thread Group 3.         Right click Thread Group and Add -> Samplers -> HTTP Request 4.       Add example.com to the Server input field of the HTTP Request 5.       Right click Thread Group and Add -> Listeners -> Aggregate Report Save Apache JMeter Results to a CSV file 6.         Configure the filename in the Filename field of the Aggregate Report i.e.: path of diskspace/test1results.csv where path of diskspace is the ...

Jmeter Errors

                                         Jmeter Errors I have shared some errors I have encountered in previous post Let’s have a look on some more error: Problem 1: java.lang.String">java.net.BindException: Address already in use: connect in jmeter how to resolve: Now this one is hit   & trial either 1.        Change the port Or 2.       Increase Ramp up time Problem 2: NON HTTP response message: The target server failed to respond how to resolve: 1.        Disable KeepAlive 2.       Change jmeter.properties file for retries = 3 and timeout = 120. Problem 3: Connection refused to host : : java.net.ConnectionException : Connection Refused how to resolve: this can be a proxy error/issue 1.   ...

Error: Scripting issue in Jmeter

                                        Error: Scripting issue in Jmeter  JMeter is open source tool for performance testing. It is very popular and powerful software. While creating jmeter script (.jmx) we faced lots of common issues. Today ia m going to share some general or common error which I have faced during scriting: Problem 1: jmeter.threads.JMeterThread: Test failed! java.lang.OutOfMemoryError: Java heap space how to resolve: 1.        Increase heap memory in jmeter.bat or jmeter.sh Problem 2: java.net.SocketException: Connection reset how to resolve: ·          Add the following properties in user.properties file which located under /bin folder of installed JMeter ·  ...