Skip to content

L3 Workshop: Online screen automation test cases are not starting after executing the batch jobs.

0

Buildfile: D:\PhotonUser\Workshop\workspace\carddemo-automation\execute.xml execute: [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Process test case [01-batches] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Drop [carddemo_jics] database and restore it from [D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_jics.backup] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Kill sessions on database carddemo_jics [echo] Execute PSQL command on database postgres : SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'carddemo_jics' [exec] pg_terminate_backend [exec] ---------------------- [exec] t [exec] (1 row) [echo] Drop database carddemo_jics [echo] Execute PSQL command on database postgres : DROP DATABASE IF EXISTS "carddemo_jics" [exec] DROP DATABASE [echo] Create database carddemo_jics [echo] Execute PSQL command on database postgres : CREATE DATABASE "carddemo_jics" WITH OWNER = carddemo [exec] CREATE DATABASE [echo] Restore carddemo_jics from backup D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_jics.backup [exec] pg_restore: while PROCESSING TOC: [exec] pg_restore: from TOC entry 4; 2615 2200 SCHEMA public postgres [exec] pg_restore: error: could not execute query: ERROR: schema "public" already exists [exec] Command was: CREATE SCHEMA public; [exec] pg_restore: warning: errors ignored on restore: 1 [exec] Result: 1 [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Drop [carddemo_bluesam] database and restore it from [D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_bluesam.backup] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Kill sessions on database carddemo_bluesam [echo] Execute PSQL command on database postgres : SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'carddemo_bluesam' [exec] pg_terminate_backend [exec] ---------------------- [exec] t [exec] (1 row) [echo] Drop database carddemo_bluesam [echo] Execute PSQL command on database postgres : DROP DATABASE IF EXISTS "carddemo_bluesam" [exec] DROP DATABASE [echo] Create database carddemo_bluesam [echo] Execute PSQL command on database postgres : CREATE DATABASE "carddemo_bluesam" WITH OWNER = carddemo [exec] CREATE DATABASE [echo] Restore carddemo_bluesam from backup D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_bluesam.backup [exec] pg_restore: while PROCESSING TOC: [exec] pg_restore: from TOC entry 5; 2615 2200 SCHEMA public carddemo [exec] pg_restore: error: could not execute query: ERROR: schema "public" already exists [exec] Command was: CREATE SCHEMA public; [exec] pg_restore: warning: errors ignored on restore: 1 [exec] Result: 1 [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Drop [carddemo_bac] database and restore it from [D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_bac.backup] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Kill sessions on database carddemo_bac [echo] Execute PSQL command on database postgres : SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'carddemo_bac' [exec] pg_terminate_backend [exec] ---------------------- [exec] t [exec] (1 row) [echo] Drop database carddemo_bac [echo] Execute PSQL command on database postgres : DROP DATABASE IF EXISTS "carddemo_bac" [exec] DROP DATABASE [echo] Create database carddemo_bac [echo] Execute PSQL command on database postgres : CREATE DATABASE "carddemo_bac" WITH OWNER = carddemo [exec] CREATE DATABASE [echo] Restore carddemo_bac from backup D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_bac.backup [exec] pg_restore: while PROCESSING TOC: [exec] pg_restore: from TOC entry 4; 2615 2200 SCHEMA public postgres [exec] pg_restore: error: could not execute query: ERROR: schema "public" already exists [exec] Command was: CREATE SCHEMA public; [exec] pg_restore: warning: errors ignored on restore: 1 [exec] Result: 1 [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Drop [carddemo_primary] database and restore it from [D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_primary.backup] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Kill sessions on database carddemo_primary [echo] Execute PSQL command on database postgres : SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'carddemo_primary' [exec] pg_terminate_backend [exec] ---------------------- [exec] t [exec] (1 row) [echo] Drop database carddemo_primary [echo] Execute PSQL command on database postgres : DROP DATABASE IF EXISTS "carddemo_primary" [exec] DROP DATABASE [echo] Create database carddemo_primary [echo] Execute PSQL command on database postgres : CREATE DATABASE "carddemo_primary" WITH OWNER = carddemo [exec] CREATE DATABASE [echo] Restore carddemo_primary from backup D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/backups/carddemo_primary.backup [exec] pg_restore: while PROCESSING TOC: [exec] pg_restore: from TOC entry 4; 2615 2200 SCHEMA public postgres [exec] pg_restore: error: could not execute query: ERROR: schema "public" already exists [exec] Command was: CREATE SCHEMA public; [exec] pg_restore: warning: errors ignored on restore: 1 [exec] Result: 1 [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Initialize working directory from [D:\PhotonUser\Workshop\workspace\carddemo-automation/tests-cases/00-default/working-directory] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [copy] Copying 14 files to D:\PhotonUser\Workshop\working-directory [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Start Tomcat from [D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Clean Tomcat logs and temporary files from D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat [exec] Using CATALINA_BASE: "D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat" [exec] Using CATALINA_HOME: "D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat" [exec] Using CATALINA_TMPDIR: "D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat\temp" [exec] Using JRE_HOME: "C:\Work\Programs\jdk17.0.10_7" [exec] Using CLASSPATH: "D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat\bin\bootstrap.jar;D:\PhotonUser\Workshop\workspace\carddemo-automation/tomcat\bin\tomcat-juli.jar" [exec] Using CATALINA_OPTS: " -Dlogback.ContextSelector=JNDI -javaagent:C:\Work\Programs\jacoco\lib\jacocoagent.jar=output=tcpserver,append=false,includes=aws.bluage.l3.workshop.*" 2025-10-17 08:52:14.786 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:17.789 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:20.793 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:23.798 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:26.802 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:29.805 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:32.822 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:35.825 - Checking for http://localhost:8080 - server does not respond in less than 1 sec 2025-10-17 08:52:38.599 - Checking for http://localhost:8080 - return code : 200 / expected : 200 ==> ok ! [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Execute test case [01-batches] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ execute: [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Run batch job: [TRANBKP] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [get] Getting: http://localhost:8080/gapwalk-application/script/TRANBKP [get] To: D:\PhotonUser\Workshop\workspace\carddemo-automation\TRANBKP.log [echo] { "exitCode": 0, "stepName": "STEP10", "program": "IDCAMS", "status": "Succeeded" } [delete] Deleting: D:\PhotonUser\Workshop\workspace\carddemo-automation\TRANBKP.log [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Run batch job: [POSTTRAN] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [get] Getting: http://localhost:8080/gapwalk-application/script/POSTTRAN [get] To: D:\PhotonUser\Workshop\workspace\carddemo-automation\POSTTRAN.log [echo] { "exitCode": 4, "stepName": "STEP15", "program": "CBTRN02C", "status": "Succeeded" } [delete] Deleting: D:\PhotonUser\Workshop\workspace\carddemo-automation\POSTTRAN.log [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Run batch job: [INTCALC] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [get] Getting: http://localhost:8080/gapwalk-application/script/INTCALC [get] To: D:\PhotonUser\Workshop\workspace\carddemo-automation\INTCALC.log [echo] { "exitCode": 0, "stepName": "STEP15", "program": "CBACT04C", "status": "Succeeded" } [delete] Deleting: D:\PhotonUser\Workshop\workspace\carddemo-automation\INTCALC.log [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Run batch job: [TRANBKP] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [get] Getting: http://localhost:8080/gapwalk-application/script/TRANBKP [get] To: D:\PhotonUser\Workshop\workspace\carddemo-automation\TRANBKP.log [echo] { "exitCode": 0, "stepName": "STEP10", "program": "IDCAMS", "status": "Succeeded" } [delete] Deleting: D:\PhotonUser\Workshop\workspace\carddemo-automation\TRANBKP.log [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Run batch job: [COMBTRAN] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [get] Getting: http://localhost:8080/gapwalk-application/script/COMBTRAN [get] To: D:\PhotonUser\Workshop\workspace\carddemo-automation\COMBTRAN.log [echo] { "exitCode": 0, "stepName": "STEP10", "program": "IDCAMS", "status": "Succeeded" } [delete] Deleting: D:\PhotonUser\Workshop\workspace\carddemo-automation\COMBTRAN.log [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Run batch job: [CREASTMT] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [get] Getting: http://localhost:8080/gapwalk-application/script/CREASTMT [get] To: D:\PhotonUser\Workshop\workspace\carddemo-automation\CREASTMT.log [echo] { "exitCode": 0, "stepName": "STEP040", "program": "CBSTM03A", "status": "Succeeded" } [delete] Deleting: D:\PhotonUser\Workshop\workspace\carddemo-automation\CREASTMT.log [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [echo] Dump JaCoCo test case execution trace [01-batches] [echo] ------------------------------------------------------------------------------------------------------------------------------------------------ [jacoco:dump] Connecting to localhost/127.0.0.1:6300 [jacoco:dump] Dumping execution data to D:\PhotonUser\Workshop\workspace\carddemo-automation\tests-cases\01-batches\code-coverage\jacoco.exec [echo] ------------------------------------------------------------------------------------------------------------------------------------------

asked a year ago130 views

1 Answer
0

The issue you're experiencing is that the Tomcat server is shutting down after the batch tests are completed, which prevents the online test cases from starting. This is actually expected behavior according to the automation process.

In the AWS Blu Age L3 Workshop, the Tomcat server is programmed to stop after all test cases are executed as part of the automation process (specifically in the Execution.xml file). The log you shared shows that all batch jobs (TRANBKP, POSTTRAN, INTCALC, TRANBKP again, COMBTRAN, and CREASTMT) executed successfully, but then the server shut down before online tests could begin.

There are a few approaches to solve this issue:

  1. Modify the Execution.xml file to postpone the Tomcat shutdown until after the online tests are completed. You can reorder the execution steps to ensure the server remains running for the online tests.

  2. Add debug messages to help understand the shutdown sequence and ensure Tomcat shuts down gracefully after all tests (including online tests) are completed.

  3. Check the Tomcat logs in the log folder and the execution.log for more details about why the server is shutting down.

  4. If you're specifically having issues with blank screens during online testing, you might need to try using Tomcat 10 for the carddemo-automation project, which is available in c:\work\program.

As long as your batch test results show "Succeeded" (which they do in your log), the scheduled shutdown itself isn't necessarily a problem - it's just happening before your online tests can run.
Sources
L3-Automation-Execute-Online test cases error(tomcat server shutting down after batch test) | AWS re:Post
Workshop: Modernization Automation Step: Online screens are not showing | 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.