Skip to main content

Posts

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 ·  ...