Skip to content

AssertionError error in the Improvement : Reports TRANREPT

0

As part of L3 workshop, I am executing the steps mentioned as below ( Improvement : Reort) https://catalog.us-east-1.prod.workshops.aws/workshops/bf71c0bc-6d8a-4d04-9c10-ab479f7f0e37/en-US/improvement/reports

But I am getting the following errors : [exec] 1) Transaction report tests cases [exec] Access to application [exec] Check signon screen: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: cosgn00-cosgn0a:eq(0), but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:106:12) [exec] 2) Transaction report tests cases [exec] Access to application [exec] Sign with USER0001: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: #userid, but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:143:10) [exec] 3) Transaction report tests cases [exec] Access to application [exec] Check menu screen: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: comen01-comen1a:eq(0), but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:149:12) [exec] 4) Transaction report tests cases [exec] Monthly transaction Report [exec] Transaction Report: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: #option, but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:182:10) [exec] 5) Transaction report tests cases [exec] Monthly transaction Report [exec] Check initial screen: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: corpt00-corpt0a:eq(0), but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:187:12) [exec] 6) Transaction report tests cases [exec] Monthly transaction Report [exec] Check monthly report: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: #monthly, but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:227:10) [exec] 7) Transaction report tests cases [exec] Monthly transaction Report [exec] Check confirmation message: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: corpt00-corpt0a:eq(0), but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:232:12) [exec] 8) Transaction report tests cases [exec] Monthly transaction Report [exec] Confirm monthly report: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: #confirm, but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:272:10) [exec] 9) Transaction report tests cases [exec] Monthly transaction Report [exec] Check submitted job report: [exec] AssertionError: Timed out retrying after 30000ms: Expected to find element: corpt00-corpt0a:eq(0), but never found it. [exec] at Context.eval (http://localhost:4200/__cypress/tests?p=tests\05-transaction-report.spec.js:277:12)

Please help me to resolve this error

1 Answer
0

The errors you're encountering in the Improvement: Reports TRANREPT step of the L3 workshop are related to Cypress test failures. These failures are occurring because the test is unable to find expected elements on the page within the specified timeout period (30 seconds).

There are a few potential reasons for these failures:

  1. The application may not be loading properly or quickly enough for the tests to find the elements.

  2. There could be changes in the application's structure or element IDs that don't match what the tests are expecting.

  3. The test environment might not be set up correctly.

To resolve these issues, try the following steps:

  1. Ensure that your application is running and accessible at the correct URL when you start the tests.

  2. Check if the application loads correctly in a browser and if you can manually perform the actions the tests are trying to automate.

  3. Verify that the element IDs and selectors used in the tests match those in your current application version. You may need to update the test scripts if there have been changes to the application's HTML structure.

  4. Increase the default timeout in your Cypress configuration to give the application more time to load. You can do this by adding defaultCommandTimeout: 60000 to your Cypress configuration file to increase the timeout to 60 seconds.

  5. If you're using a specific Blu Age velocity version, make sure it's compatible with the workshop version you're following. Some users have reported issues when using mismatched versions.

  6. Review your database configuration and ensure all necessary services are running correctly.

If these steps don't resolve the issue, you may need to reach out to the workshop support team or review the workshop documentation for any known issues or updates related to these tests.
Sources
Blu Age L3 Workshop Automation Execute Online | AWS re:Post
AWS Blu Age L3 - workshop issue due to Velocity version change? | AWS re:Post

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.