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 -
- A test that updates an account using web services and examines the changes with 3270 screens -
- A test that uses a provisioned account object to perform the same test as
BasicAccountCreditTest.javain an improved test design -
- 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 -
The following section explains how to run the
SimBankIVT test class by using Eclipse.
Running the SimBank IVT test class using Eclipse
- Create your initial example projects as described in Creating a project using Eclipse - a once-only activity.
- Ensure that Eclipse is running, your example projects are open and that you have launched SimBank as described in Exploring Galasa SimBank.
- Choose Run > Run Configurations and look for and select Galasa - Java in the left pane (not Galasa SimBank).
- Right-click Galasa, choose New Configuration and give it a name.
- In the dialog, choose Browse to locate your project -
dev.galasa.simbank.tests, then press OK. Then press Search to locate your test class,
SimBankIVTand press OK.
- Press Apply then Run.
SimBankIVTtest 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.
- View the results of the test runs in Eclipse. Find out more in the Viewing test results documentation.
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.