Topaz for Total Test

Automated Unit Testing

null
Topaz for Total Test
New 1-minute Overview

Find and Fix Bugs Faster and Earlier with Automated Unit Tests

Automated unit testing is a critical element to mainframe DevOps success, speeding development cycles by eliminating bottlenecks and providing assurance that code changes don’t negatively impact another part of a program.

Topaz for Total Test and XaTester, Compuware’s automated unit test creation and execution tools, reduce the time it takes to make sure code is fully tested and prepared for fewer issues later in the lifecycle by enabling developers to:

  • Automate the creation and execution of mainframe unit tests
  • Validate code changes immediately
  • Maintain the quality of their codebase
  • Quickly put program code updates into production
  • Leverage integrations with leading cross-platform DevOps and Compuware tools for continuous code quality management
  • Provide support for all relevant mainframe environments and languages including CICS, IMS, Db2, VSAM, COBOL, PL/1 and Assembler

The Value of Automated Unit Testing

  • Increase velocity to production
  • Eliminate dependency on specialized mainframe knowledge
  • Empower novice developers to validate mainframe code changes with the same speed and confidence as other code
  • Support Continuous Integration and Continuous Delivery
  • Reduce time spent manually writing tests, collecting test data or manually creating data
  • Increase confidence to make large mainframe code changes
  • Facilitate regression testing

Related Solutions

Key Features of Compuware’s Automated Unit Testing Tools

DevOps Toolchain Integrations

You can easily integrate test cases into a DevOps toolchain to enable mainframe unit testing within the automated build-test-deploy process through integrations with JenkinsISPW® and SonarSource’s SonarQube

Integration with GIT and ISPW

Assets can be contained within GIT and ISPW along with source code. Developers can deploy their software components into a test environment while leveraging DevOps tools like Jenkins to access assets such as test cases and data stubs for automated unit testing.

Integration with Jenkins

You can easily configure unit tests into an existing Jenkins workflow. Mainframe unit testing can be automatically triggered as part of a DevOps toolchain and/or Continuous Delivery process for enterprise DevOps efficiency.

Integrations with SonarQube

Code coverage results can be fed into SonarQube to help IT teams better understand the scope and effectiveness of their testing as code is promoted toward production. In addition, unit testing pass/fail results can be displayed in SonarQube along with other quality trends throughout the DevOps process. Quality Gates may be defined to use the unit test results to determine whether to proceed with the workflow or to fix the code before continuing.

Automatically Generate a Unit Test and Test Assets

Unit tests and program stubs can be automatically generated while collecting the necessary test data for data stubs—to simplify test setup and execution on different test systems.

Topaz Total Test

Stubbing

Automatically creates stubs for Db2 databases as well as IMS Batch Message Processing (BMP) /Message Processing Programs (MPP), Batch DL/I, VSAM and QSAM data files, making it easier to execute repeatable tests. You can also generate program stubs and Db2 stored procedure stubs, which simplify and accelerate large program testing by eliminating the need to call the actual subprogram or stored procedure.

Support for IMS BMP/MPP and Batch DL/I stubbing eliminates the need to have an IMS system when testing an IMS program. Because the stub provides the data for the program, it also eliminates the need to have an IMS database.

Stubs move with the unit test so the test runs independently of data files, eliminating the need to move data files or tables separately. Data within data stubs can be edited to drive specific test cases.

Video: How to automatically create Db2 data stubs to simplify and speed up unit testing >

Topaz Total Test

Test Assertions

Default unit test result assertions enable comparisons between expected results and actual program results. Developers can also easily change the expected results collected from the program to create new test cases. After the unit test executes, test assertions are evaluated to determine if the test passes or fails.

Program Entry and Write Assertions

Program entry assertions ensure that the parameters passed into a sub-program are correct. They are similar to write assertions, which confirm the data that is to be written to a VSAM or QSAM file, and to Db2 tables, is correct. Db2 SQL statement write assertions that can be used to verify data in UPDATE, INSERT or DELETE statements. The expected values for all these assertions are automatically captured during program execution when the unit tests are created.

Flexibly Execute Unit Tests

Because data stubs are moved with unit tests, developers have the flexibility of executing their unit tests on different systems based upon available test environments. A simple list of target systems are displayed with test runners from which to choose. Developers simply need to pick the target system and run the test. The unit tests are automatically transferred as well as all needed program and data stubs.

Topaz Total Test

Db2 Stored Procedure Testing

Automated test setup and simplified stored procedure testing by stubbing out Db2 calls eliminate the need to have a Db2 subsystem. Stored procedures can be called independently of the main program and other stored procedures.

Topaz Total Test

Compuware’s Commitment to Serving Your Automated Unit Testing Needs

Compuware acquired XaTester in July 2018 so that we could provide the most comprehensive automated unit testing capabilities in the market. With Topaz for Total Test and XaTester, we provide technology that supports all relevant mainframe environments and languages including CICS, IMS, Db2, VSAM, COBOL, PL/1 and Assembler.

Compuware is committed to delivering a unified test automation solution leveraging the strength of both Topaz for Total Test and XaTester under the Topaz brand. Until that time, we will work with you to ensure that your unit testing needs are met through one or both products.

.