Scenario Tests
8
Chapter 2 - Basic Concepts
The following table lists the templates QualityArchitect uses for unit test generation:
Scenario Tests
Scenario tests can be used to test transactions. Scenario tests can be generated from
Rose interaction diagrams--that is, sequence and collaboration diagrams--or by
direct interaction with the EJBs using the EJB Session Recorder.
Template
Description
weblogic_home.template
Template for testing the methods in the home interface of EJBs
on a WebLogic server. Use this template:
s
To ensure that the remote interface can be created
successfully
s
As a check before writing or running method-level tests
weblogic_remote.template
Template for testing the methods in the remote interface of
EJBs on a WebLogic server.
websphere_home.template
Template for testing the methods in the home interface of EJBs
in the WebSphere environment.
websphere_remote.template
Template for testing the methods in the remote interface of
EJBs in the WebSphere environment.
sunj2ee_home.template
Template for testing the methods in the home interface of EJBs
in the Sun J2EE environment.
sunj2ee_remote.template
Template for testing the methods in the remote interface of
EJBs in the Sun J2EE environment.
TestNameScript.cls
Template for the Visual Basic .cls file that is generated to test a
COM component. The .cls file is the template for the actual test
program.
TestName.vbp
Template for the Visual Basic project file that is generated to
test a COM component.
TestNameMain.bas
Template for the main program that calls the test program in
the .cls file. Visual Basic requires a main program to begin
execution.
TestName.res
Template for the resource file that is created to support
datapools.