- Newest
- Most votes
- Most comments
The errors you're experiencing in the AWS Blu Age L3 Workshop automation tests are primarily related to connectivity issues. The main error indicates that Cypress is failing to connect to the application at http://localhost:4200, with the error "ECONNREFUSED 127.0.0.1:4200". This suggests that the web application is not running or is running on a different port.
This is likely due to a Tomcat version compatibility issue. The automation project is designed to work with Tomcat 9.0.x, but you might be using Tomcat 10.0.x. In Tomcat 10, Java packages changed from javax.servlet to jakarta.servlet, which causes compatibility problems with the workshop application.
To resolve this issue:
-
Check if the web application is running and accessible. The error suggests it's not running on port 4200.
-
Verify that all required datasources (jics, bluesam, bac, primary) are correctly configured.
-
Ensure the DB server is started and running correctly.
-
Replace the Tomcat installation in your automation project with the one from c:\work\programs\tomcat, or downgrade to Tomcat 9.0.x which is compatible with the workshop.
-
After making these changes, run the execute.xml file again to restart the application.
-
Make sure to synchronize configurations by running the Publish action on the Tomcat server to ensure everything is properly synchronized between the Eclipse WST working folder and the Tomcat configuration folder.
Once the application is properly running on the expected port, the Cypress tests should be able to connect and execute successfully.
Sources
AWS Blu Age L3 workshop - Automation step error | AWS re:Post
Blu Age L3 Workshop Automation Execute Online | AWS re:Post
answered a year ago
The errors you're experiencing in the AWS Blu Age L3 Workshop automation tests are primarily related to connectivity issues. The main error indicates that Cypress is failing to connect to the application at http://localhost:4200, with the error "ECONNREFUSED 127.0.0.1:4200". This suggests that the web application is not running or is running on a different port.
This is likely due to a Tomcat version compatibility issue. The automation project is designed to work with Tomcat 9.0.x, but you might be using Tomcat 10.0.x. In Tomcat 10, Java packages changed from javax.servlet to jakarta.servlet, which causes compatibility problems with the workshop application.
To resolve this issue:
- Check if the web application is running and accessible. The error suggests it's not running on port 4200.
- Verify that all required datasources (jics, bluesam, bac, primary) are correctly configured.
- Ensure the DB server is started and running correctly.
- Replace the Tomcat installation in your automation project with the one from c:\work\programs\tomcat, or downgrade to Tomcat 9.0.x which is compatible with the workshop.
- After making these changes, run the execute.xml file again to restart the application.
- Make sure to synchronize configurations by running the Publish action on the Tomcat server to ensure everything is properly synchronized between the Eclipse WST working folder and the Tomcat configuration folder.
Once the application is properly running on the expected port, the Cypress tests should be able to connect and execute successfully.
answered a year ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
