[JAVA] J'ai essayé d'utiliser Galasa

introduction

Un cadre de test pour les applications cloud hybrides basées sur z / OS appelé Galasa est fourni en tant que projet open source. Il n'y a que peu de temps depuis sa sortie (V0.3.0 sortie en décembre 2019), et au moment de la rédaction de cet article (août 2020), elle est toujours au niveau de la V0.10.0, mais il semble que ce soit toujours dans le futur. Il est intéressant de cibler les applications z / OS. De plus, il est extrêmement chaud qu'il soit fabriqué chez IBM Hursley Lab (Royaume-Uni), qui est également la base de développement de CICS TS. Donc, c'est un journal lorsque j'ai essayé d'utiliser ce Galasa.

Présentation de Galasa

Galasa est un cadre de test pour les applications cloud hybrides basées sur z / OS. Étant donné que le plug-in Eclipse est fourni, vous pouvez implémenter du code de test tel que les applications 3270 et les applications par lots z / OS dans Java comme JUnit sur Eclipse et exécuter le test. Un exemple de code de test est fourni, mais pour le faire fonctionner comme un didacticiel, il fournit même quelque chose comme un simulateur pour une application hôte qui s'exécute sur Eclipse. Ainsi, vous pouvez essayer l'exemple en utilisant ce framework uniquement sous Windows (sans préparer l'application z / OS ou z / OS) pour le moment. Génial!

Configuration environnementale

Construisons un environnement sur Windows 10.

Installation d'Eclipse

Téléchargez la version Windows 64 bits d'Eclipse IDE for Enterprise Java Developers (Eclipse IDE 2020-06) à partir de ce qui suit. Eclipse IDE 2020-06 R Packages

Décompressez le fichier zip téléchargé (eclipse-jee-2020-06-R-win32-x86_64.zip: environ 400 Mo) dans un répertoire approprié.

Installer le plugin Galasa Eclipse

Référence: Installation du plug-in Galasa

Lancez Eclipse et sélectionnez Aide - Installer un nouveau logiciel Spécifiez https: // p2.galasa.dev / dans le champ Travailler avec, sélectionnez toutes les fonctionnalités Galasa affichées et cliquez sur Suivant. image.png

Next image.png

Vérifier la licence et terminer image.png

Redémarrez Eclipse image.png

Un menu appelé "Galasa" a été ajouté au menu principal d'Eclipse! image.png

Configuration de SimBank

Galasa fournit un composant (y compris un exemple d'application) pour simuler une application mainframe appelée SimBank. Il semble fonctionner avec un composant appelé SimPlatform, qui semble être capable de simuler des applications CICS et 3270 sur Eclipse. Il peut être utilisé comme application hôte factice lors de l'exécution d'un exemple de projet de test, alors exécutons-le d'abord.

Configuration SimBank

Galasa - Configuration de l'espace de travail Galasa image.png

Le message suivant s'affiche sur la console. image.png

Un répertoire appelé .galasa a été créé sous le répertoire personnel et certains fichiers y ont été créés. La taille du fichier est de 0 octet, donc le contenu est vide.

C:\Users\TomohiroTaguchi\.galasa>dir
Le nom du volume pour le lecteur C est Windows
Le numéro de série du volume est 1866-E2FC

 C:\Users\TomohiroTaguchi\.annuaire galasa

2020/08/15  15:09    <DIR>          .
2020/08/15  15:09    <DIR>          ..
2020/08/15  15:09                 0 bootstrap.properties
2020/08/15  15:09                 0 cps.properties
2020/08/15  15:09                 0 credentials.properties
2020/08/15  15:09                 0 dss.properties
2020/08/15  15:09                 0 overrides.properties
5 fichiers 0 octets
2 répertoires 253,723,049,984 octets d'espace libre

Modifiez overrides.properties comme suit:

overrides.properties


zos.dse.tag.SIMBANK.imageid=SIMBANK
zos.dse.tag.SIMBANK.clusterid=SIMBANK

simbank.dse.instance.name=SIMBANK
simbank.instance.SIMBANK.zos.image=SIMBANK

zos.image.SIMBANK.ipv4.hostname=127.0.0.1
zos.image.SIMBANK.telnet.port=2023
zos.image.SIMBANK.webnet.port=2080
zos.image.SIMBANK.telnet.tls=false
zos.image.SIMBANK.credentials=SIMBANK

zosmf.server.SIMBANK.images=SIMBANK
zosmf.server.SIMBANK.hostname=127.0.0.1
zosmf.server.SIMBANK.port=2040
zosmf.server.SIMBANK.https=false

Modifiez credentials.properties comme suit:

credentials.properties


secure.credentials.SIMBANK.username=IBMUSER
secure.credentials.SIMBANK.password=SYS1

Contrôle de fonctionnement SimBank

Référence: Exploring Galasa SimBank

SimBank semble simuler l'application 3270 ICMP. Tout d'abord, voyons comment fonctionne l'application testée (elle fonctionne sur Eclipse sans z / OS réel).

Sélectionnez Exécuter - Exécuter les configurations dans le menu Eclipse image.png

Faites un clic droit sur Galasa SimBank et sélectionnez Nouvelle configuration image.png

Spécifiez un nom correctement et laissez la valeur par défaut sur Appliquer image.png

Le message suivant a été envoyé à la console et l'exemple d'application a été démarré. image.png

Il semble que TN3270 soit accepté sur le port 2023, alors essayez d'y accéder à partir d'un émulateur 3270 tel que PCOM. image.png

J'ai pu me connecter!

Spécifiez IBMUSER / SYS1 pour Userid / Password image.png

Il semble qu'une application appelée BANKTEST soit en cours d'exécution, alors sélectionnez PF1 image.png

L'écran de connexion du terminal CICS s'affiche. image.png

Effacez l'écran et exécutez la transaction "BANK". image.png

Un menu apparaîtra, sélectionnez Parcourir (PF1) image.png

Entrez "123456789" pour le numéro de compte et entrez image.png

Les informations du compte spécifié s'affichent. image.png

Vérifiez également le numéro de compte "987654321". image.png

Revenez au menu avec PF3 puis sélectionnez Transfert (PF4). image.png

Déplacez $ 1 vers le compte "123456789" => "987654321". image.png

Succès image.png

Si vous naviguez à nouveau, l'un diminuera de 1 $ et l'autre augmentera de 1 $. image.png image.png

Le journal au moment de l'opération est envoyé à la console d'Eclipse comme suit. image.png (S'agit-il de la sortie du journal par l'application? Est-ce comme la sortie JOBLOG ou SYSLOG?)

Si vous appuyez sur F3, vous serez déconnecté de CICS et reviendrez au premier écran.

Test SimBank

Voici le problème principal. Testons SimBank fourni à titre d'exemple. Un projet de test est également fourni comme exemple, alors utilisez-le.

Créer un exemple de projet Galasa

Sélectionnez Fichier - Nouveau - Exemple dans le menu Eclipse image.png

Sélectionnez des exemples de projets SimBank et Suivant image.png

Terminer tel quel image.png

Deux projets sont ajoutés. image.png

Faites un clic droit sur dev.galasa.simbank.manager et sélectionnez Exécuter en tant que --Maven install image.png

La progression du traitement est sortie sur la console. Le téléchargement des fichiers dépendants, etc. s'exécutera. C'est OK si vous pouvez confirmer le message de BUILD SUCCESS. image.png

Exécutez dev.galasa.simbank.tests ainsi que l'installation de Maven.

Ceci termine la création de l'exemple de projet de test. Un peu de code pour les tests est fourni sous dev.galasa.simbank.tests dans src / main / java, nous allons donc l'implémenter. image.png

Avant de démarrer le test, démarrez la SimBank configurée précédemment. (Sélectionnez Exécuter - Exécuter les configurations - Sim Bank et Exécuter)

Test (1) SimBankIVT

Voici le code pour tester la partie qui exécute l'application CICS basée sur 3270 (BANK) à partir de PCOM ci-dessus. 3270 Les opérations du terminal peuvent être écrites et exécutées sous forme de code de test Java.

<détails>

Code de test </ summary>

SimBankIVT.java


/*
 * Licensed Materials - Property of IBM
 * 
 * (c) Copyright IBM Corp. 2019.
 */
package dev.galasa.simbank.tests;

import static org.assertj.core.api.Assertions.assertThat;

import java.io.IOException;
import java.net.URISyntaxException;

import dev.galasa.Test;
import dev.galasa.artifact.BundleResources;
import dev.galasa.artifact.IBundleResources;
import dev.galasa.artifact.TestBundleResourceException;
import dev.galasa.core.manager.CoreManager;
import dev.galasa.core.manager.ICoreManager;
import dev.galasa.http.HttpClient;
import dev.galasa.http.HttpClientException;
import dev.galasa.http.IHttpClient;
import dev.galasa.zos.IZosImage;
import dev.galasa.zos.ZosImage;
import dev.galasa.zos.ZosManagerException;
import dev.galasa.zos3270.FieldNotFoundException;
import dev.galasa.zos3270.ITerminal;
import dev.galasa.zos3270.KeyboardLockedException;
import dev.galasa.zos3270.TerminalInterruptedException;
import dev.galasa.zos3270.TextNotFoundException;
import dev.galasa.zos3270.TimeoutException;
import dev.galasa.zos3270.Zos3270Terminal;
import dev.galasa.zos3270.spi.DatastreamException;
import dev.galasa.zos3270.spi.NetworkException;

@Test
public class SimBankIVT {

    @ZosImage(imageTag = "SIMBANK")
    public IZosImage        image;

    @Zos3270Terminal(imageTag = "SIMBANK")
    public ITerminal        terminal;

    @BundleResources
    public IBundleResources resources;

    @HttpClient
    public IHttpClient      client;

    @CoreManager
    public ICoreManager     coreManager;

    @Test
    public void testNotNull() {
        // Check all objects loaded
        assertThat(terminal).isNotNull();
        assertThat(resources).isNotNull();
        assertThat(client).isNotNull();
    }

    /**
     * Test which checks the initial balance of an account, uses the webservice to
     * credit the account, then checks the balance again. The test passes if the
     * final balance is equal to the old balance + the credited amount.
     * 
     * @throws TestBundleResourceException
     * @throws URISyntaxException
     * @throws IOException
     * @throws HttpClientException
     * @throws ZosManagerException
     * @throws TextNotFoundException
     * @throws FieldNotFoundException
     * @throws NetworkException
     * @throws KeyboardLockedException
     * @throws TimeoutException
     * @throws DatastreamException
     * @throws InterruptedException
     */
    @Test
    public void checkBankIsAvailable() throws TestBundleResourceException, URISyntaxException, IOException,
            HttpClientException, ZosManagerException, DatastreamException, TimeoutException, KeyboardLockedException,
            NetworkException, FieldNotFoundException, TextNotFoundException, TerminalInterruptedException {
        // Register the password to the confidential text filtering service
        coreManager.registerConfidentialText("SYS1", "IBMUSER password");

        // Logon through the session manager
        terminal.waitForKeyboard().positionCursorToFieldContaining("Userid").tab().type("IBMUSER")
                .positionCursorToFieldContaining("Password").tab().type("SYS1").enter().waitForKeyboard();

        // Assert that the session manager has a bank session available
        assertThat(terminal.retrieveScreen()).containsOnlyOnce("SIMPLATFORM MAIN MENU");
        assertThat(terminal.retrieveScreen()).containsOnlyOnce("BANKTEST");

        // Open banking application
        terminal.pf1().waitForKeyboard().clear().waitForKeyboard();
           
        terminal.type("bank").enter().waitForKeyboard();

        // Assert that the bank menu is showing
        assertThat(terminal.retrieveScreen()).containsOnlyOnce("Options     Description        PFKey ");
        assertThat(terminal.retrieveScreen()).containsOnlyOnce("BROWSE      Browse Accounts    PF1");
        assertThat(terminal.retrieveScreen()).containsOnlyOnce("TRANSF      Transfer Money     PF4");
    }
}

Exécutons en fait ce code de test. Sélectionnez Exécuter - Exécuter les configurations dans le menu Eclipse Cliquez avec le bouton droit sur Galasa dans le menu de gauche et sélectionnez Nouvelle configuration image.png

Donnez-lui un nom et sélectionnez Projet: dev.galasa.simbank.tests, TestClass: SimBankIVT, Apply, Run image.png

Vous devriez voir un résultat similaire au suivant dans la console.

<détails>

Résultats des tests </ summary>

18/08/2020 17:25:55.704 DEBUG dev.galasa.boot.Launcher.processCommandLine - Supplied command line arguments: --bootstrap file:///C:/Users/TomohiroTaguchi/.galasa/bootstrap.properties --overrides file:///C:/Users/TOMOHI~1/AppData/Local/Temp/galasa_eclipse_cache_8879301005844695930/galasaoverrides1461489270957804148.properties --localmaven file:/C:/Users/TomohiroTaguchi/.m2/repository/ --remotemaven https://repo.maven.apache.org/maven2/ --obr file:/C:/y/workspace/workspace_eclipse-jee-2020-06-R-galasa/.metadata/.plugins/dev.galasa.eclipse/workspace.obr --obr mvn:dev.galasa/dev.galasa.uber.obr/LATEST/obr --test dev.galasa.simbank.tests/dev.galasa.simbank.tests.SimBankIVT 
18/08/2020 17:25:55.724 DEBUG dev.galasa.boot.Launcher.launch - OBR Repository Files: [file:/C:/y/workspace/workspace_eclipse-jee-2020-06-R-galasa/.metadata/.plugins/dev.galasa.eclipse/workspace.obr, mvn:dev.galasa/dev.galasa.uber.obr/LATEST/obr]
18/08/2020 17:25:55.725 DEBUG dev.galasa.boot.Launcher.launch - Launching Framework...
18/08/2020 17:25:55.725 DEBUG dev.galasa.boot.Launcher.buildFramework - Launching Framework...
18/08/2020 17:25:55.725 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Building Felix Framework...
18/08/2020 17:25:55.808 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Initializing Felix Framework
18/08/2020 17:25:55.930 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Starting Felix Framework
18/08/2020 17:25:55.931 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Felix Framework started
18/08/2020 17:25:55.932 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Installing required OSGi bundles
18/08/2020 17:25:57.299 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.uber.obr/maven-metadata.xml
18/08/2020 17:25:59.132 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Version 'LATEST' resolved to 0.10.0
18/08/2020 17:25:59.134 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:25:59.134 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.uber.obr/0.10.0/dev.galasa.uber.obr-0.10.0.obr
18/08/2020 17:25:59.928 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - installing Framework bundle
18/08/2020 17:26:00.116 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:00.116 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/org/apache/felix/org.apache.felix.http.servlet-api/1.1.2/org.apache.felix.http.servlet-api-1.1.2.jar
18/08/2020 17:26:00.305 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:00.305 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/org/apache/bcel/bcel/6.3/bcel-6.3.jar
18/08/2020 17:26:00.744 INFO  d.g.f.Framework - Framework service activated
18/08/2020 17:26:00.745 INFO  d.g.f.Framework - Framework version = 0.10.0
18/08/2020 17:26:00.751 INFO  d.g.f.Framework - Framework build   = Tue, 4 Aug 2020 22:57:46 +0900
18/08/2020 17:26:00.761 DEBUG dev.galasa.boot.Launcher.launch - Test Bundle: dev.galasa.simbank.tests
18/08/2020 17:26:00.761 DEBUG dev.galasa.boot.Launcher.launch - Test Class: dev.galasa.simbank.tests.SimBankIVT
18/08/2020 17:26:00.767 DEBUG dev.galasa.boot.felix.FelixFramework.runTest - Invoking runTest()
18/08/2020 17:26:00.768 INFO  d.g.f.FrameworkInitialisation - Initialising the Galasa Framework
18/08/2020 17:26:00.770 DEBUG d.g.f.FrameworkInitialisation - Configuration Property Store is file:///C:/Users/TomohiroTaguchi/.galasa/cps.properties
18/08/2020 17:26:00.781 DEBUG d.g.f.FrameworkInitialisation - Selected CPS Service is dev.galasa.framework.internal.cps.FpfConfigurationPropertyStore
18/08/2020 17:26:00.782 DEBUG d.g.f.FrameworkInitialisation - Dynamic Status Store is file:///C:/Users/TomohiroTaguchi/.galasa/dss.properties
18/08/2020 17:26:00.801 INFO  d.g.f.FrameworkInitialisation - Allocated Run Name U1 to this run
18/08/2020 17:26:00.803 DEBUG d.g.f.FrameworkInitialisation - Result Archive Stores are [file:///C:/Users/TomohiroTaguchi/.galasa/ras]
18/08/2020 17:26:00.827 DEBUG d.g.f.FrameworkInitialisation - Credentials Store is file:///C:/Users/TomohiroTaguchi/.galasa/credentials.properties
18/08/2020 17:26:00.834 INFO  d.g.f.FrameworkInitialisation - Framework initialised
18/08/2020 17:26:00.964 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:00.965 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/com.jcraft.jsch/0.1.55/com.jcraft.jsch-0.1.55.jar
18/08/2020 17:26:01.267 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:01.268 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
18/08/2020 17:26:01.957 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:01.958 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar
18/08/2020 17:26:02.238 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:02.238 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/org/apache/felix/org.apache.felix.configadmin/1.9.16/org.apache.felix.configadmin-1.9.16.jar
18/08/2020 17:26:02.572 INFO  d.g.f.TestRunner - Run test: dev.galasa.simbank.tests/dev.galasa.simbank.tests.SimBankIVT
18/08/2020 17:26:02.660 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:02.661 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.zosbatch.zosmf.manager/0.10.0/dev.galasa.zosbatch.zosmf.manager-0.10.0.jar
18/08/2020 17:26:03.074 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:03.074 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.zosmf.manager/0.10.0/dev.galasa.zosmf.manager-0.10.0.jar
18/08/2020 17:26:03.519 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:03.520 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.zosconsole.zosmf.manager/0.10.0/dev.galasa.zosconsole.zosmf.manager-0.10.0.jar
18/08/2020 17:26:03.838 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:03.839 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.zosfile.zosmf.manager/0.10.0/dev.galasa.zosfile.zosmf.manager-0.10.0.jar
18/08/2020 17:26:04.120 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:04.120 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.zostsocommand.ssh.manager/0.10.0/dev.galasa.zostsocommand.ssh.manager-0.10.0.jar
18/08/2020 17:26:04.422 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Checking https://repo.maven.apache.org/maven2
18/08/2020 17:26:04.423 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.zosunixcommand.ssh.manager/0.10.0/dev.galasa.zosunixcommand.ssh.manager-0.10.0.jar
18/08/2020 17:26:04.685 DEBUG d.g.f.TestRunManagers - The following Managers are active:-
18/08/2020 17:26:04.685 DEBUG d.g.f.TestRunManagers -    dev.galasa.core.manager.internal.CoreManager
18/08/2020 17:26:04.685 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos.internal.ZosManagerImpl
18/08/2020 17:26:04.686 DEBUG d.g.f.TestRunManagers -    dev.galasa.ipnetwork.internal.IpNetworkManagerImpl
18/08/2020 17:26:04.686 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos3270.internal.Zos3270ManagerImpl
18/08/2020 17:26:04.686 DEBUG d.g.f.TestRunManagers -    dev.galasa.http.internal.HttpManagerImpl
18/08/2020 17:26:04.686 DEBUG d.g.f.TestRunManagers -    dev.galasa.artifact.internal.ArtifactManagerImpl
18/08/2020 17:26:04.687 DEBUG d.g.f.TestRunManagers - The following Managers are sorted in provisioning order:-
18/08/2020 17:26:04.687 DEBUG d.g.f.TestRunManagers -    dev.galasa.core.manager.internal.CoreManager
18/08/2020 17:26:04.687 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos.internal.ZosManagerImpl
18/08/2020 17:26:04.687 DEBUG d.g.f.TestRunManagers -    dev.galasa.ipnetwork.internal.IpNetworkManagerImpl
18/08/2020 17:26:04.687 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos3270.internal.Zos3270ManagerImpl
18/08/2020 17:26:04.688 DEBUG d.g.f.TestRunManagers -    dev.galasa.http.internal.HttpManagerImpl
18/08/2020 17:26:04.688 DEBUG d.g.f.TestRunManagers -    dev.galasa.artifact.internal.ArtifactManagerImpl
18/08/2020 17:26:04.719 INFO  d.g.f.TestRunner - Starting Provision Generate phase
18/08/2020 17:26:04.722 INFO  d.g.z.i.ZosManagerImpl - zOS DSE Image SIMBANK selected for zosTag 'SIMBANK'
18/08/2020 17:26:05.022 INFO  d.g.z.i.Zos3270ManagerImpl - Generated a terminal for zOS Image tagged SIMBANK
18/08/2020 17:26:05.036 INFO  d.g.f.TestRunner - Starting Provision Build phase
18/08/2020 17:26:05.037 INFO  d.g.f.TestRunner - Starting Provision Start phase
18/08/2020 17:26:05.037 INFO  d.g.z.i.Zos3270ManagerImpl - Connecting zOS3270 Terminals
18/08/2020 17:26:05.060 INFO  d.g.f.TestRunner - Running the test class
18/08/2020 17:26:05.060 INFO  d.g.f.TestClassWrapper - Starting
----------------------- ****************************************************************************************************
----------------------- *** Start of test class dev.galasa.simbank.tests.SimBankIVT
----------------------- ****************************************************************************************************
18/08/2020 17:26:05.061 INFO  d.g.f.GenericMethodWrapper - Starting
----------------------- ****************************************************************************************************
----------------------- *** Start of test method dev.galasa.simbank.tests.SimBankIVT#testNotNull,type=Test
----------------------- ****************************************************************************************************
18/08/2020 17:26:05.096 INFO  d.g.f.GenericMethodWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Passed - Test method dev.galasa.simbank.tests.SimBankIVT#testNotNull,type=Test
----------------------- ****************************************************************************************************
18/08/2020 17:26:05.097 INFO  d.g.f.GenericMethodWrapper - Starting
----------------------- ****************************************************************************************************
----------------------- *** Start of test method dev.galasa.simbank.tests.SimBankIVT#checkBankIsAvailable,type=Test
----------------------- ****************************************************************************************************
18/08/2020 17:26:05.098 INFO  d.g.f.i.c.FrameworkConfidentialTextService - Confidential text registered as '*1**', with comment IBMUSER password
18/08/2020 17:26:05.317 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-1
=| TERM0001                   SIMPLATFORM LOGON SCREEN                    17:26:05|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|                                                                                |
=|                     *******\    ******\   ****\      ****\                     |
=|                    *********\   ******\   *****\    *****\                     |
=|                    **\\\\\**\    \**\\\   **\ **\  **\\**\                     |
=|                    **\            **\     **\  **\**\\ **\                     |
=|                    *********\     **\     **\   ***\\  **\                     |
=|                    *********\     **\     **\    *\\   **\                     |
=|                     \\\\\\**\     **\     **\     \    **\                     |
=|                           **\     **\     **\          **\                     |
=|                    *********\   ******\   **\          **\                     |
=|                     *******\\   ******\   **\          **\                     |
=|                      \\\\\\\     \\\\\\    \\           \\                     |
=|                                                                                |
=|                                                                                |
=|                                P L A T F O R M                                 |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Userid ===>          Password ===>                                             |
^|             ^
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.340 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, ENTER to 3270 terminal term1,  updateId=term1-2
=| TERM0001                   SIMPLATFORM LOGON SCREEN                    17:26:05|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|                                                                                |
=|                     *******\    ******\   ****\      ****\                     |
=|                    *********\   ******\   *****\    *****\                     |
=|                    **\\\\\**\    \**\\\   **\ **\  **\\**\                     |
=|                    **\            **\     **\  **\**\\ **\                     |
=|                    *********\     **\     **\   ***\\  **\                     |
=|                    *********\     **\     **\    *\\   **\                     |
=|                     \\\\\\**\     **\     **\     \    **\                     |
=|                           **\     **\     **\          **\                     |
=|                    *********\   ******\   **\          **\                     |
=|                     *******\\   ******\   **\          **\                     |
=|                      \\\\\\\     \\\\\\    \\           \\                     |
=|                                                                                |
=|                                                                                |
=|                                P L A T F O R M                                 |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Userid ===> IBMUSER  Password ===> *1**                                        |
^|                                        ^
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.361 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-3
=| TERM0001                     SIMPLATFORM MAIN MENU                     17:26:05|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|  Application  PKey  Status                                                     |
=|  -----------  ----  -------------------------------------------------          |
=|                                                                                |
=|  BANKTEST     PF1   UP                                                         |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Application ===>                                                               |
^|                  ^
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.377 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, PF1 to 3270 terminal term1,  updateId=term1-4
=| TERM0001                     SIMPLATFORM MAIN MENU                     17:26:05|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|  Application  PKey  Status                                                     |
=|  -----------  ----  -------------------------------------------------          |
=|                                                                                |
=|  BANKTEST     PF1   UP                                                         |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Application ===>                                                               |
^|                  ^
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.396 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-5
=| DFHZC2312 ***  WELCOME TO CICS  *** 17:26:05                                   |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                     ******\  ******\  ******\   ******\(R)                     |
=|                    ********\ ******\ ********\ ********\                       |
=|                    **\\\\**\   **\\\ **\\\\**\ **\\\\**\                       |
=|                    **\    \\   **\   **\    \\ **\    \\                       |
=|                    **\         **\   **\       *******\                        |
=|                    **\         **\   **\        *******\                       |
=|                    **\         **\   **\         \\\\**\                       |
=|                    **\   **\   **\   **\   **\ **\   **\                       |
=|                    ********\ ******\ ********\ ********\                       |
=|                     ******\\ ******\  ******\\  ******\\                       |
=|                      \\\\\\   \\\\\\   \\\\\\    \\\\\\                        |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.412 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, CLEAR to 3270 terminal term1,  updateId=term1-6
=|                                                                                |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.608 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-7
=|                                                                                |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.619 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, ENTER to 3270 terminal term1,  updateId=term1-8
=|bank                                                                            |
^|    ^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.640 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-9
=| CONNECTED                      SIMBANK MAIN MENU                       17:26:05|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 17:26:05.642 INFO  d.g.f.GenericMethodWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Passed - Test method dev.galasa.simbank.tests.SimBankIVT#checkBankIsAvailable,type=Test
----------------------- ****************************************************************************************************
18/08/2020 17:26:05.642 INFO  d.g.f.TestClassWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Passed - Test class dev.galasa.simbank.tests.SimBankIVT
----------------------- ****************************************************************************************************
18/08/2020 17:26:05.644 INFO  d.g.f.TestRunner - Starting Provision Stop phase
18/08/2020 17:26:05.659 INFO  d.g.f.TestRunner - Starting Provision Discard phase
18/08/2020 17:26:06.088 DEBUG dev.galasa.boot.felix.FelixFramework.stopFramework - Stopping Felix framework
18/08/2020 17:26:06.107 INFO  d.g.f.Framework - Framework service deactivated
18/08/2020 17:26:06.121 DEBUG dev.galasa.boot.felix.FelixFramework.stopFramework - Felix framework stopped
18/08/2020 17:26:06.121 INFO dev.galasa.boot.Launcher.launch - Boot complete

J'ai pu exécuter le test sur le terminal 3270 avec le code de test!

L'écran suivant était également affiché dans les coulisses. image.png

Test (2) BasicAccountCreditTest

Cela teste la logique de «mise à jour du montant d'un compte particulier» qui est (éventuellement) implémentée en tant que service Web CICS. La cible du test est un appel de service Web, mais j'ai mis un flux de 3270 écrans pour obtenir les informations de montant avant et après. En d'autres termes, le code de test a le flux suivant. 1.3270 Appelez l'application pour obtenir la valeur avant la mise à jour 2. Mettre à jour le traitement en appelant le service Web (transférer un montant spécifique dans un compte spécifique) 3.3270 Appelez l'application pour obtenir la valeur mise à jour 4. Vérifiez les valeurs avant et après la mise à jour

Pour référence ... Puisque la logique à tester est un appel de service Web, vous pouvez vérifier le fonctionnement de la requête SOAP avec un outil à usage général (Tarend API Tester de Chrome) comme indiqué ci-dessous. image.png

<détails>

Code de test </ summary>

BasicAccountCreditTest


/*
 * Licensed Materials - Property of IBM
 * 
 * (c) Copyright IBM Corp. 2019.
 */
package dev.galasa.simbank.tests;

import static org.assertj.core.api.Assertions.assertThat;

import java.io.IOException;
import java.math.BigDecimal;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashMap;

import dev.galasa.Test;
import dev.galasa.artifact.BundleResources;
import dev.galasa.artifact.IBundleResources;
import dev.galasa.artifact.TestBundleResourceException;
import dev.galasa.core.manager.CoreManager;
import dev.galasa.core.manager.ICoreManager;
import dev.galasa.http.HttpClient;
import dev.galasa.http.HttpClientException;
import dev.galasa.http.IHttpClient;
import dev.galasa.simbank.manager.ISimBank;
import dev.galasa.simbank.manager.SimBank;
import dev.galasa.zos.IZosImage;
import dev.galasa.zos.ZosImage;
import dev.galasa.zos.ZosManagerException;
import dev.galasa.zos3270.FieldNotFoundException;
import dev.galasa.zos3270.ITerminal;
import dev.galasa.zos3270.KeyboardLockedException;
import dev.galasa.zos3270.TerminalInterruptedException;
import dev.galasa.zos3270.TextNotFoundException;
import dev.galasa.zos3270.TimeoutException;
import dev.galasa.zos3270.Zos3270Terminal;
import dev.galasa.zos3270.spi.DatastreamException;
import dev.galasa.zos3270.spi.NetworkException;

@Test
public class BasicAccountCreditTest {
    
    @SimBank
    public ISimBank        simBank;

    @ZosImage(imageTag = "SIMBANK")
    public IZosImage        image;

    @Zos3270Terminal(imageTag = "SIMBANK")
    public ITerminal        terminal;

    @BundleResources
    public IBundleResources resources;

    @CoreManager
    public ICoreManager     coreManager;

    @HttpClient
    public IHttpClient      client;

    /**
     * Test which checks the initial balance of an account, uses the webservice to
     * credit the account, then checks the balance again. The test passes if the
     * final balance is equal to the old balance + the credited amount.
     * 
     * @throws TestBundleResourceException
     * @throws URISyntaxException
     * @throws IOException
     * @throws HttpClientException
     * @throws ZosManagerException
     * @throws TextNotFoundException
     * @throws FieldNotFoundException
     * @throws NetworkException
     * @throws KeyboardLockedException
     * @throws TimeoutException
     * @throws DatastreamException
     * @throws InterruptedException
     */
    @Test
    public void updateAccountWebServiceTest() throws TestBundleResourceException, URISyntaxException, IOException,
            HttpClientException, ZosManagerException, DatastreamException, TimeoutException, KeyboardLockedException,
            NetworkException, FieldNotFoundException, TextNotFoundException, TerminalInterruptedException {
        // Register the password to the confidential text filtering service
        coreManager.registerConfidentialText("SYS1", "IBMUSER password");

        // Initial actions to get into banking application
        terminal.waitForKeyboard().positionCursorToFieldContaining("Userid").tab().type("IBMUSER")
                .positionCursorToFieldContaining("Password").tab().type("SYS1").enter().waitForKeyboard()

                // Open banking application
                .pf1().waitForKeyboard().clear().waitForKeyboard().type("bank").enter().waitForKeyboard();

        // Obtain the initial balance
        BigDecimal userBalance = getBalance("123456789");

        // Set the amount be credited and call web service
        BigDecimal amount = BigDecimal.valueOf(500.50);
        HashMap<String, Object> parameters = new HashMap<String, Object>();
        parameters.put("ACCOUNT_NUMBER", "123456789");
        parameters.put("AMOUNT", amount.toString());

        // Load sample request with the given parameters
        String textContent = resources.retrieveSkeletonFileAsString("/resources/skeletons/testSkel.skel", parameters);

        // Invoke the web request
        client.setURI(new URI("http://" + this.simBank.getHost() + ":" + this.simBank.getWebnetPort()));
        client.postText("updateAccount", textContent);

        // Obtain the final balance
        BigDecimal newUserBalance = getBalance("123456789");

        // Assert that the correct amount has been credited to the account
        assertThat(newUserBalance).isEqualTo(userBalance.add(amount));
    }

    /**
     * Navigate through the banking application and extract the balance of a given
     * account
     * 
     * @param accountNum - Account Number of the account being queried
     * @return Balance of the account being queried
     * @throws TextNotFoundException
     * @throws FieldNotFoundException
     * @throws NetworkException
     * @throws KeyboardLockedException
     * @throws TimeoutException
     * @throws DatastreamException
     * @throws InterruptedException
     */
    private BigDecimal getBalance(String accountNum)
            throws DatastreamException, TimeoutException, KeyboardLockedException, NetworkException,
            FieldNotFoundException, TextNotFoundException, TerminalInterruptedException {
        BigDecimal amount = BigDecimal.ZERO;
        // Open account menu and enter account number
        terminal.pf1().waitForKeyboard().positionCursorToFieldContaining("Account Number").tab().type(accountNum)
                .enter().waitForKeyboard();

        // Retrieve balance from screen
        amount = new BigDecimal(terminal.retrieveFieldTextAfterFieldWithString("Balance").trim());

        // Return to bank menu
        terminal.pf3().waitForKeyboard();
        return amount;
    }
}

Dans ce code, je prépare le Skelton suivant en tant qu'assemblage de message SOAP lors de l'appel d'un service Web et remplace les variables qu'il contient. Il semble que le mécanisme autour de cela soit également fourni par le cadre Galasa.

testSkel.skel


<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
<soapenv:Body>
<ns1:UPDACCTOperation xmlns:ns1='http://www.UPDACCT.STCUSTN2.Request.com'>
<ns1:update_account_record>
<ns1:account_key>
<ns1:sort_code>00-00-00</ns1:sort_code>
<ns1:account_number>++ACCOUNT_NUMBER++</ns1:account_number>
</ns1:account_key>
<ns1:account_change>++AMOUNT++</ns1:account_change>
</ns1:update_account_record></ns1:UPDACCTOperation>
</soapenv:Body>
</soapenv:Envelope>

Pour l'exécuter, exécutez le BasicAccountCreditTest à partir de dev.galasa.simbank.tests dans TestClass à partir de la configuration d'exécution comme dans l'exemple précédent. image.png

<détails>

Résultats des tests </ summary>

18/08/2020 18:40:07.096 DEBUG dev.galasa.boot.Launcher.processCommandLine - Supplied command line arguments: --bootstrap file:///C:/Users/TomohiroTaguchi/.galasa/bootstrap.properties --overrides file:///C:/Users/TOMOHI~1/AppData/Local/Temp/galasa_eclipse_cache_8879301005844695930/galasaoverrides1146231306188016707.properties --localmaven file:/C:/Users/TomohiroTaguchi/.m2/repository/ --remotemaven https://repo.maven.apache.org/maven2/ --obr file:/C:/y/workspace/workspace_eclipse-jee-2020-06-R-galasa/.metadata/.plugins/dev.galasa.eclipse/workspace.obr --obr mvn:dev.galasa/dev.galasa.uber.obr/LATEST/obr --test dev.galasa.simbank.tests/dev.galasa.simbank.tests.BasicAccountCreditTest 
18/08/2020 18:40:07.118 DEBUG dev.galasa.boot.Launcher.launch - OBR Repository Files: [file:/C:/y/workspace/workspace_eclipse-jee-2020-06-R-galasa/.metadata/.plugins/dev.galasa.eclipse/workspace.obr, mvn:dev.galasa/dev.galasa.uber.obr/LATEST/obr]
18/08/2020 18:40:07.119 DEBUG dev.galasa.boot.Launcher.launch - Launching Framework...
18/08/2020 18:40:07.119 DEBUG dev.galasa.boot.Launcher.buildFramework - Launching Framework...
18/08/2020 18:40:07.119 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Building Felix Framework...
18/08/2020 18:40:07.292 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Initializing Felix Framework
18/08/2020 18:40:07.412 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Starting Felix Framework
18/08/2020 18:40:07.413 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Felix Framework started
18/08/2020 18:40:07.413 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - Installing required OSGi bundles
18/08/2020 18:40:08.778 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Attempting to download https://repo.maven.apache.org/maven2/dev/galasa/dev.galasa.uber.obr/maven-metadata.xml
18/08/2020 18:40:10.634 DEBUG d.g.f.m.r.i.GalasaMavenUrlHandlerService - Version 'LATEST' resolved to 0.10.0
18/08/2020 18:40:10.684 DEBUG dev.galasa.boot.felix.FelixFramework.buildFramework - installing Framework bundle
18/08/2020 18:40:11.095 INFO  d.g.f.Framework - Framework service activated
18/08/2020 18:40:11.095 INFO  d.g.f.Framework - Framework version = 0.10.0
18/08/2020 18:40:11.102 INFO  d.g.f.Framework - Framework build   = Tue, 4 Aug 2020 22:57:46 +0900
18/08/2020 18:40:11.117 DEBUG dev.galasa.boot.Launcher.launch - Test Bundle: dev.galasa.simbank.tests
18/08/2020 18:40:11.117 DEBUG dev.galasa.boot.Launcher.launch - Test Class: dev.galasa.simbank.tests.BasicAccountCreditTest
18/08/2020 18:40:11.124 DEBUG dev.galasa.boot.felix.FelixFramework.runTest - Invoking runTest()
18/08/2020 18:40:11.125 INFO  d.g.f.FrameworkInitialisation - Initialising the Galasa Framework
18/08/2020 18:40:11.127 DEBUG d.g.f.FrameworkInitialisation - Configuration Property Store is file:///C:/Users/TomohiroTaguchi/.galasa/cps.properties
18/08/2020 18:40:11.138 DEBUG d.g.f.FrameworkInitialisation - Selected CPS Service is dev.galasa.framework.internal.cps.FpfConfigurationPropertyStore
18/08/2020 18:40:11.139 DEBUG d.g.f.FrameworkInitialisation - Dynamic Status Store is file:///C:/Users/TomohiroTaguchi/.galasa/dss.properties
18/08/2020 18:40:11.164 INFO  d.g.f.FrameworkInitialisation - Allocated Run Name U10 to this run
18/08/2020 18:40:11.166 DEBUG d.g.f.FrameworkInitialisation - Result Archive Stores are [file:///C:/Users/TomohiroTaguchi/.galasa/ras/]
18/08/2020 18:40:11.190 DEBUG d.g.f.FrameworkInitialisation - Credentials Store is file:///C:/Users/TomohiroTaguchi/.galasa/credentials.properties
18/08/2020 18:40:11.197 INFO  d.g.f.FrameworkInitialisation - Framework initialised
18/08/2020 18:40:12.662 INFO  d.g.f.TestRunner - Run test: dev.galasa.simbank.tests/dev.galasa.simbank.tests.BasicAccountCreditTest
18/08/2020 18:40:13.758 DEBUG d.g.f.TestRunManagers - The following Managers are active:-
18/08/2020 18:40:13.759 DEBUG d.g.f.TestRunManagers -    dev.galasa.core.manager.internal.CoreManager
18/08/2020 18:40:13.759 DEBUG d.g.f.TestRunManagers -    dev.galasa.simbank.manager.internal.SimBankManagerImpl
18/08/2020 18:40:13.759 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos.internal.ZosManagerImpl
18/08/2020 18:40:13.760 DEBUG d.g.f.TestRunManagers -    dev.galasa.ipnetwork.internal.IpNetworkManagerImpl
18/08/2020 18:40:13.760 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos3270.internal.Zos3270ManagerImpl
18/08/2020 18:40:13.760 DEBUG d.g.f.TestRunManagers -    dev.galasa.http.internal.HttpManagerImpl
18/08/2020 18:40:13.760 DEBUG d.g.f.TestRunManagers -    dev.galasa.artifact.internal.ArtifactManagerImpl
18/08/2020 18:40:13.761 DEBUG d.g.f.TestRunManagers - The following Managers are sorted in provisioning order:-
18/08/2020 18:40:13.761 DEBUG d.g.f.TestRunManagers -    dev.galasa.core.manager.internal.CoreManager
18/08/2020 18:40:13.761 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos.internal.ZosManagerImpl
18/08/2020 18:40:13.761 DEBUG d.g.f.TestRunManagers -    dev.galasa.zos3270.internal.Zos3270ManagerImpl
18/08/2020 18:40:13.762 DEBUG d.g.f.TestRunManagers -    dev.galasa.ipnetwork.internal.IpNetworkManagerImpl
18/08/2020 18:40:13.762 DEBUG d.g.f.TestRunManagers -    dev.galasa.http.internal.HttpManagerImpl
18/08/2020 18:40:13.762 DEBUG d.g.f.TestRunManagers -    dev.galasa.simbank.manager.internal.SimBankManagerImpl
18/08/2020 18:40:13.762 DEBUG d.g.f.TestRunManagers -    dev.galasa.artifact.internal.ArtifactManagerImpl
18/08/2020 18:40:13.949 INFO  d.g.f.TestRunner - Starting Provision Generate phase
18/08/2020 18:40:13.952 INFO  d.g.z.i.ZosManagerImpl - zOS DSE Image SIMBANK selected for zosTag 'SIMBANK'
18/08/2020 18:40:14.042 INFO  d.g.z.i.Zos3270ManagerImpl - Generated a terminal for zOS Image tagged SIMBANK
18/08/2020 18:40:14.091 INFO  d.g.f.i.c.FrameworkConfidentialTextService - Confidential text registered as '*1**', with comment IBMUSER password
18/08/2020 18:40:14.185 INFO  d.g.s.m.i.SimBankManagerImpl - SimBank instance SIMBANK provisioned for this run
18/08/2020 18:40:14.190 INFO  d.g.f.TestRunner - Starting Provision Build phase
18/08/2020 18:40:14.191 INFO  d.g.f.TestRunner - Starting Provision Start phase
18/08/2020 18:40:14.192 INFO  d.g.z.i.Zos3270ManagerImpl - Connecting zOS3270 Terminals
18/08/2020 18:40:14.479 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-1
=| TERM0001                   SIMPLATFORM LOGON SCREEN                    18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|                                                                                |
=|                     *******\    ******\   ****\      ****\                     |
=|                    *********\   ******\   *****\    *****\                     |
=|                    **\\\\\**\    \**\\\   **\ **\  **\\**\                     |
=|                    **\            **\     **\  **\**\\ **\                     |
=|                    *********\     **\     **\   ***\\  **\                     |
=|                    *********\     **\     **\    *\\   **\                     |
=|                     \\\\\\**\     **\     **\     \    **\                     |
=|                           **\     **\     **\          **\                     |
=|                    *********\   ******\   **\          **\                     |
=|                     *******\\   ******\   **\          **\                     |
=|                      \\\\\\\     \\\\\\    \\           \\                     |
=|                                                                                |
=|                                                                                |
=|                                P L A T F O R M                                 |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Userid ===>          Password ===>                                             |
^|             ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.479 DEBUG d.g.s.m.i.SimBankTerminalImpl - RECEIVED update to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-1
=| TERM0001                   SIMPLATFORM LOGON SCREEN                    18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|                                                                                |
=|                     *******\    ******\   ****\      ****\                     |
=|                    *********\   ******\   *****\    *****\                     |
=|                    **\\\\\**\    \**\\\   **\ **\  **\\**\                     |
=|                    **\            **\     **\  **\**\\ **\                     |
=|                    *********\     **\     **\   ***\\  **\                     |
=|                    *********\     **\     **\    *\\   **\                     |
=|                     \\\\\\**\     **\     **\     \    **\                     |
=|                           **\     **\     **\          **\                     |
=|                    *********\   ******\   **\          **\                     |
=|                     *******\\   ******\   **\          **\                     |
=|                      \\\\\\\     \\\\\\    \\           \\                     |
=|                                                                                |
=|                                                                                |
=|                                P L A T F O R M                                 |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Userid ===>          Password ===>                                             |
^|             ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.494 DEBUG d.g.s.m.i.SimBankTerminalImpl - SENDING, ENTER to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-2
=| TERM0001                   SIMPLATFORM LOGON SCREEN                    18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|                                                                                |
=|                     *******\    ******\   ****\      ****\                     |
=|                    *********\   ******\   *****\    *****\                     |
=|                    **\\\\\**\    \**\\\   **\ **\  **\\**\                     |
=|                    **\            **\     **\  **\**\\ **\                     |
=|                    *********\     **\     **\   ***\\  **\                     |
=|                    *********\     **\     **\    *\\   **\                     |
=|                     \\\\\\**\     **\     **\     \    **\                     |
=|                           **\     **\     **\          **\                     |
=|                    *********\   ******\   **\          **\                     |
=|                     *******\\   ******\   **\          **\                     |
=|                      \\\\\\\     \\\\\\    \\           \\                     |
=|                                                                                |
=|                                                                                |
=|                                P L A T F O R M                                 |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Userid ===> IBMUSER  Password ===> *1**                                        |
^|                                        ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.539 DEBUG d.g.s.m.i.SimBankTerminalImpl - RECEIVED update to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-3
=| TERM0001                     SIMPLATFORM MAIN MENU                     18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|  Application  PKey  Status                                                     |
=|  -----------  ----  -------------------------------------------------          |
=|                                                                                |
=|  BANKTEST     PF1   UP                                                         |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Application ===>                                                               |
^|                  ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.549 DEBUG d.g.s.m.i.SimBankTerminalImpl - SENDING, ENTER to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-4
=| TERM0001                     SIMPLATFORM MAIN MENU                     18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|  Application  PKey  Status                                                     |
=|  -----------  ----  -------------------------------------------------          |
=|                                                                                |
=|  BANKTEST     PF1   UP                                                         |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Application ===> BANKTEST                                                      |
^|                          ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.568 DEBUG d.g.s.m.i.SimBankTerminalImpl - RECEIVED update to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-5
=| DFHZC2312 ***  WELCOME TO CICS  *** 18:40:14                                   |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                     ******\  ******\  ******\   ******\(R)                     |
=|                    ********\ ******\ ********\ ********\                       |
=|                    **\\\\**\   **\\\ **\\\\**\ **\\\\**\                       |
=|                    **\    \\   **\   **\    \\ **\    \\                       |
=|                    **\         **\   **\       *******\                        |
=|                    **\         **\   **\        *******\                       |
=|                    **\         **\   **\         \\\\**\                       |
=|                    **\   **\   **\   **\   **\ **\   **\                       |
=|                    ********\ ******\ ********\ ********\                       |
=|                     ******\\ ******\  ******\\  ******\\                       |
=|                      \\\\\\   \\\\\\   \\\\\\    \\\\\\                        |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.580 DEBUG d.g.s.m.i.SimBankTerminalImpl - SENDING, CLEAR to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-6
=|                                                                                |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.707 DEBUG d.g.s.m.i.SimBankTerminalImpl - RECEIVED update to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-7
=|                                                                                |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.716 DEBUG d.g.s.m.i.SimBankTerminalImpl - SENDING, ENTER to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-8
=|bank                                                                            |
^|    ^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.731 DEBUG d.g.s.m.i.SimBankTerminalImpl - RECEIVED update to 3270 terminal simbank-ctrl,  updateId=simbank-ctrl-9
=| CONNECTED                      SIMBANK MAIN MENU                       18:40:14|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.732 INFO  d.g.s.m.i.SimBankImpl - Connected to SimBank Terminal
18/08/2020 18:40:14.734 INFO  d.g.f.TestRunner - Running the test class
18/08/2020 18:40:14.734 INFO  d.g.f.TestClassWrapper - Starting
----------------------- ****************************************************************************************************
----------------------- *** Start of test class dev.galasa.simbank.tests.BasicAccountCreditTest
----------------------- ****************************************************************************************************
18/08/2020 18:40:14.734 INFO  d.g.f.GenericMethodWrapper - Starting
----------------------- ****************************************************************************************************
----------------------- *** Start of test method dev.galasa.simbank.tests.BasicAccountCreditTest#updateAccountWebServiceTest,type=Test
----------------------- ****************************************************************************************************
18/08/2020 18:40:14.735 INFO  d.g.f.i.c.FrameworkConfidentialTextService - Confidential text registered as '*2**', with comment IBMUSER password
18/08/2020 18:40:14.747 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, ENTER to 3270 terminal term1,  updateId=term1-2
=| TERM0001                   SIMPLATFORM LOGON SCREEN                    18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|                                                                                |
=|                     *******\    ******\   ****\      ****\                     |
=|                    *********\   ******\   *****\    *****\                     |
=|                    **\\\\\**\    \**\\\   **\ **\  **\\**\                     |
=|                    **\            **\     **\  **\**\\ **\                     |
=|                    *********\     **\     **\   ***\\  **\                     |
=|                    *********\     **\     **\    *\\   **\                     |
=|                     \\\\\\**\     **\     **\     \    **\                     |
=|                           **\     **\     **\          **\                     |
=|                    *********\   ******\   **\          **\                     |
=|                     *******\\   ******\   **\          **\                     |
=|                      \\\\\\\     \\\\\\    \\           \\                     |
=|                                                                                |
=|                                                                                |
=|                                P L A T F O R M                                 |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Userid ===> IBMUSER  Password ===> *1**                                        |
^|                                        ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.763 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-3
=| TERM0001                     SIMPLATFORM MAIN MENU                     18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|  Application  PKey  Status                                                     |
=|  -----------  ----  -------------------------------------------------          |
=|                                                                                |
=|  BANKTEST     PF1   UP                                                         |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Application ===>                                                               |
^|                  ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.775 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, PF1 to 3270 terminal term1,  updateId=term1-4
=| TERM0001                     SIMPLATFORM MAIN MENU                     18:40:14|
=| -------------------------------------------------------------------------------|
=|                                                                                |
=|  Application  PKey  Status                                                     |
=|  -----------  ----  -------------------------------------------------          |
=|                                                                                |
=|  BANKTEST     PF1   UP                                                         |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=| -------------------------------------------------------------------------------|
=| Application ===>                                                               |
^|                  ^
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.792 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-5
=| DFHZC2312 ***  WELCOME TO CICS  *** 18:40:14                                   |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                     ******\  ******\  ******\   ******\(R)                     |
=|                    ********\ ******\ ********\ ********\                       |
=|                    **\\\\**\   **\\\ **\\\\**\ **\\\\**\                       |
=|                    **\    \\   **\   **\    \\ **\    \\                       |
=|                    **\         **\   **\       *******\                        |
=|                    **\         **\   **\        *******\                       |
=|                    **\         **\   **\         \\\\**\                       |
=|                    **\   **\   **\   **\   **\ **\   **\                       |
=|                    ********\ ******\ ********\ ********\                       |
=|                     ******\\ ******\  ******\\  ******\\                       |
=|                      \\\\\\   \\\\\\   \\\\\\    \\\\\\                        |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.804 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, CLEAR to 3270 terminal term1,  updateId=term1-6
=|                                                                                |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.948 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-7
=|                                                                                |
^|^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.957 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, ENTER to 3270 terminal term1,  updateId=term1-8
=|bank                                                                            |
^|    ^
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.973 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-9
=| CONNECTED                      SIMBANK MAIN MENU                       18:40:14|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:14.992 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, PF1 to 3270 terminal term1,  updateId=term1-10
=| CONNECTED                      SIMBANK MAIN MENU                       18:40:14|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.008 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-11
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:14|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  _________                                                    |
^|                   ^
=|   Sort Code                                                                    |
=|   Balance                                                                      |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.019 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, ENTER to 3270 terminal term1,  updateId=term1-12
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:14|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  123456789                                                    |
=|   Sort Code                                                                    |
^|                   ^
=|   Balance                                                                      |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.037 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-13
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  123456789                                                    |
^|                   ^
=|   Sort Code       11-01-45                                                     |
=|   Balance         5562.42                                                      |
=|                                                                                |
=|   Account Found                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.048 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, PF3 to 3270 terminal term1,  updateId=term1-14
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  123456789                                                    |
^|                   ^
=|   Sort Code       11-01-45                                                     |
=|   Balance         5562.42                                                      |
=|                                                                                |
=|   Account Found                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.194 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-15
=| CONNECTED                      SIMBANK MAIN MENU                       18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.195 DEBUG d.g.a.i.BundleResourcesImpl - Searching for artifact: resources/skeletons/testSkel.skel in bundle dev.galasa.simbank.tests
18/08/2020 18:40:15.474 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, PF1 to 3270 terminal term1,  updateId=term1-16
=| CONNECTED                      SIMBANK MAIN MENU                       18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.491 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-17
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  _________                                                    |
^|                   ^
=|   Sort Code                                                                    |
=|   Balance                                                                      |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.501 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, ENTER to 3270 terminal term1,  updateId=term1-18
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  123456789                                                    |
=|   Sort Code                                                                    |
^|                   ^
=|   Balance                                                                      |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.515 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-19
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  123456789                                                    |
^|                   ^
=|   Sort Code       11-01-45                                                     |
=|   Balance         6062.92                                                      |
=|                                                                                |
=|   Account Found                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.535 DEBUG d.g.z.s.Zos3270TerminalImpl - SENDING, PF3 to 3270 terminal term1,  updateId=term1-20
=| CONNECTED                  SIMBANK ACCOUNT MENU                        18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
=|                                                                                |
=|   Account Number  123456789                                                    |
^|                   ^
=|   Sort Code       11-01-45                                                     |
=|   Balance         6062.92                                                      |
=|                                                                                |
=|   Account Found                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.555 DEBUG d.g.z.s.Zos3270TerminalImpl - RECEIVED update to 3270 terminal term1,  updateId=term1-21
=| CONNECTED                      SIMBANK MAIN MENU                       18:40:15|
=| -------------------------------------------------------------------------------|
=| ===>                                                                           |
^|      ^
=|                                                                                |
=|   Options     Description        PFKey                                         |
=|   -------     ---------------------------------------------------------------  |
=|   BROWSE      Browse Accounts    PF1                                           |
=|   TRANSF      Transfer Money     PF4                                           |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |
=|                                                                                |

18/08/2020 18:40:15.587 INFO  d.g.f.GenericMethodWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Passed - Test method dev.galasa.simbank.tests.BasicAccountCreditTest#updateAccountWebServiceTest,type=Test
----------------------- ****************************************************************************************************
18/08/2020 18:40:15.588 INFO  d.g.f.TestClassWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Passed - Test class dev.galasa.simbank.tests.BasicAccountCreditTest
----------------------- ****************************************************************************************************
18/08/2020 18:40:15.591 INFO  d.g.f.TestRunner - Starting Provision Stop phase
18/08/2020 18:40:15.595 INFO  d.g.f.TestRunner - Starting Provision Discard phase
18/08/2020 18:40:15.688 DEBUG dev.galasa.boot.felix.FelixFramework.stopFramework - Stopping Felix framework
18/08/2020 18:40:15.711 INFO  d.g.f.Framework - Framework service deactivated
18/08/2020 18:40:15.725 DEBUG dev.galasa.boot.felix.FelixFramework.stopFramework - Felix framework stopped
18/08/2020 18:40:15.725 INFO dev.galasa.boot.Launcher.launch - Boot complete

Cas d'échec du test

Créons intentionnellement un cas d'échec de test en modifiant la partie Assert à la fin du code de test comme suit.

BasicAccountCreditTest.java(Extrait)


        // Assert that the correct amount has been credited to the account
        //assertThat(newUserBalance).isEqualTo(userBalance.add(amount));
        assertThat(newUserBalance).isEqualTo(userBalance);

Quand j'ai exécuté ceci, la console a produit la sortie suivante:

...
18/08/2020 18:45:00.737 INFO  d.g.f.GenericMethodWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Failed - Test method dev.galasa.simbank.tests.BasicAccountCreditTest#updateAccountWebServiceTest,type=Test
----------------------- ****************************************************************************************************
java.lang.AssertionError: 
Expecting:
 <6563.42>
to be equal to:
 <6062.92>
but was not.
	at dev.galasa.simbank.tests.BasicAccountCreditTest.updateAccountWebServiceTest(BasicAccountCreditTest.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at dev.galasa.framework.GenericMethodWrapper.invoke(GenericMethodWrapper.java:82)
	at dev.galasa.framework.TestMethodWrapper.invoke(TestMethodWrapper.java:56)
	at dev.galasa.framework.TestClassWrapper.runTestMethods(TestClassWrapper.java:182)
	at dev.galasa.framework.TestRunner.runTestClassWrapper(TestRunner.java:510)
	at dev.galasa.framework.TestRunner.runEnvironment(TestRunner.java:482)
	at dev.galasa.framework.TestRunner.createEnvironment(TestRunner.java:442)
	at dev.galasa.framework.TestRunner.generateEnvironment(TestRunner.java:415)
	at dev.galasa.framework.TestRunner.runTest(TestRunner.java:337)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at dev.galasa.boot.felix.FelixFramework.runTest(FelixFramework.java:220)
	at dev.galasa.boot.Launcher.launch(Launcher.java:152)
	at dev.galasa.boot.Launcher.main(Launcher.java:106)

18/08/2020 18:45:00.737 INFO  d.g.f.TestClassWrapper - Ending
----------------------- ****************************************************************************************************
----------------------- *** Failed - Test class dev.galasa.simbank.tests.BasicAccountCreditTest
----------------------- ****************************************************************************************************
18/08/2020 18:45:00.739 INFO  d.g.f.TestRunner - Starting Provision Stop phase
18/08/2020 18:45:00.741 INFO  d.g.f.TestRunner - Starting Provision Discard phase
18/08/2020 18:45:01.144 DEBUG dev.galasa.boot.felix.FelixFramework.stopFramework - Stopping Felix framework
18/08/2020 18:45:01.161 INFO  d.g.f.Framework - Framework service deactivated
18/08/2020 18:45:01.170 DEBUG dev.galasa.boot.felix.FelixFramework.stopFramework - Felix framework stopped
18/08/2020 18:45:01.170 INFO dev.galasa.boot.Launcher.launch - Boot complete

Gérer les résultats des tests

Vous pouvez voir les résultats des tests passés en affichant la vue appelée Résultat Galasa. (Si le message "Framework non initialisé" s'affiche lorsque la vue est affichée, essayez d'initialiser en sélectionnant Galasa --Initialiser Galasa Framework dans le menu Eclipse.) image.png Double-cliquez sur le cas de test pour voir les détails.

Cas de réussite du test image.png

Cas d'échec du test image.png

Il est également possible de vérifier les détails du test plus tard car le journal reste.

en conclusion

Dans les deux exemples exécutés ci-dessus, il a été confirmé que le code de test pour l'opération avec l'émulateur de terminal 3270 et l'appel de service Web peut être écrit et testé en Java. En outre, BatchAccoutsOpenTest.java, fourni à titre d'exemple, contient du code qui teste le JCL pour exécuter des programmes de commandes. Il semble que les différentes fonctions requises pour appeler ces applications soient implémentées par une fonction appelée "Manager". Une liste des fonctionnalités de Manager est répertoriée ci-dessous. Référence: Managers Pour CICS, un Manager pour l'exécution des transactions CECI (un interpréteur de l'API EXEC CICS exécuté à partir d'un terminal CICS) est fourni, et EXEC CICS LINK peut être émis via CECI pour écrire le code de test pour chaque sous-programme. Il semble. Génial! !! !! En regardant cette liste, non seulement z / OS, mais aussi un large éventail de fonctions de Manager telles que Docker, Kubernetes, Linux, etc. sont répertoriés car il indique «Tests d'intégration approfondie pour les applications cloud hybrides alimentées par z / OS». En août 2020, peu avaient encore été publiés, et seules les versions bêta et alpha du code ont été publiées, mais j'aimerais m'attendre à une expansion future. En outre, on s'attend de plus en plus à ce que ce cadre soit intégré dans les outils d'aide au développement existants (comme IBM Developer for z / OS) à l'avenir.

Recommended Posts