galasa

Close menu
Open menu

Running the SimBank tests using Eclipse

Galasa SimBank comes with a selection of prepared Galasa tests:

  • A basic Installation Verification Test (IVT) which logs on to SimBank - SimBankIVT.java.
  • A test that updates an account using web services and examines the changes with 3270 screens - BasicAccountCreditTest.java.
  • A test that uses a provisioned account object to perform the same test as BasicAccountCreditTest.java in an improved test design - ProvisionedAccountCreditTests.java.
  • A test that exercises the z/OS Batch Manager by simulating the submission of a JCL job to add a number of accounts to the SimBank system - BatchAccountsOpenTest.java.

The following section explains how to run the SimBankIVT test class by using Eclipse.

Running the SimBank IVT test class using Eclipse

  1. Create your initial example projects as described in Creating a project using Eclipse - a once-only activity.
  2. Ensure that Eclipse is running, your example projects are open and that you have launched SimBank as described in Exploring Galasa SimBank.
  3. Choose Run > Run Configurations and look for and select Galasa - Java in the left pane (not Galasa SimBank).
  4. Right-click Galasa, choose New Configuration and give it a name.
  5. In the dialog, choose Browse to locate your project - dev.galasa.simbank.tests, then press OK. Then press Search to locate your test class, SimBankIVT and press OK.
  6. Press Apply then Run.
  7. The SimBankIVT test class runs, and the Eclipse console displays their progress through to completion - you will see a console message like:
    INFO dev.galasa.boot.Launcher.launch - Boot complete
    when the tests have finished. You will also see a live terminal window in which the interactions with the 3270 terminal are captured - you can use the attached controls to step back and forth along the sequence of screens.
  8. View the results of the test runs in Eclipse. Find out more in the Viewing test results documentation.

Next steps

Explore the SimBankIVT test and the other SimBank tests in the Exploring the supplied SimBank tests sections. Follow the flow of logic in these classes and understand more about the Java that is used to create them, including how to use Galasa annotations and review documented test methods.