Dev Test
Dev Test
Getting Started
Version 8.0
This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to
as the “Documentation”) is for your informational purposes only and is subject to change or withdrawal by CA at any time.
This Documentation may not be copied, transferred, reproduced, disclosed, modified or duplicated, in whole or in part, without
the prior written consent of CA. This Documentation is confidential and proprietary information of CA and may not be disclosed
by you or used for any purpose other than as may be permitted in (i) a separate agreement between you and CA governing
your use of the CA software to which the Documentation relates; or (ii) a separate confidentiality agreement between you and
CA.
Notwithstanding the foregoing, if you are a licensed user of the software product(s) addressed in the Documentation, you may
print or otherwise make available a reasonable number of copies of the Documentation for internal use by you and your
employees in connection with that software, provided that all CA copyright notices and legends are affixed to each reproduced
copy.
The right to print or otherwise make available copies of the Documentation is limited to the period during which the applicable
license for such software remains in full force and effect. Should the license terminate for any reason, it is your responsibility to
certify in writing to CA that all copies and partial copies of the Documentation have been returned to CA or destroyed.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION “AS IS” WITHOUT WARRANTY OF ANY
KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE,
DIRECT OR INDIRECT, FROM THE USE OF THIS DOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, LOST
INVESTMENT, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF CA IS EXPRESSLY ADVISED IN ADVANCE OF THE
POSSIBILITY OF SUCH LOSS OR DAMAGE.
The use of any software product referenced in the Documentation is governed by the applicable license agreement and such
license agreement is not modified in any way by the terms of this notice.
The manufacturer of this Documentation is CA.
Provided with “Restricted Rights.” Use, duplication or disclosure by the United States Government is subject to the restrictions
set forth in FAR Sections 12.212, 52.227-14, and 52.227-19(c)(1) - (2) and DFARS Section 252.227-7014(b)(3), as applicable, or
their successors.
Copyright © 2014 CA. All rights reserved. All trademarks, trade names, service marks, and logos referenced herein belong to
their respective companies.
Contact CA Technologies
Contact CA Support
For your convenience, CA Technologies provides one site where you can access the
information that you need for your Home Office, Small Business, and Enterprise CA
Technologies products. At http://ca.com/support, you can access the following
resources:
■ Online and telephone contact information for technical assistance and customer
services
■ Information about user communities and forums
■ Product and documentation downloads
■ CA Support policies and guidelines
■ Other helpful resources appropriate for your product
Contents 5
Tutorial 4 - Manipulate Java Objects (POJOs) ............................................................................................................ 41
Step 1 - Create a Test Case .................................................................................................................................. 41
Step 2 - Create a Dynamic Java Execution Test Step ........................................................................................... 42
Step 3 - Make a Call on the Java Object .............................................................................................................. 45
Step 4 - Add an Inline Filter ................................................................................................................................. 49
Step 5 - Verify the Property Created ................................................................................................................... 50
Tutorial 4 - Review .............................................................................................................................................. 51
Tutorial 5 - Run a Demo Server Web Application....................................................................................................... 51
Step 1 - Start the Web Application ...................................................................................................................... 52
Step 2 - Log in to the Web Application................................................................................................................ 53
Step 3 - Create an Account .................................................................................................................................. 54
Step 4 - Close an Account .................................................................................................................................... 56
Step 5 - Log Out from the Web Application ........................................................................................................ 56
Tutorial 5 - Review .............................................................................................................................................. 57
Tutorial 6 - Test a Website ......................................................................................................................................... 57
Tutorial 6 - Part A - Record the Test Case ........................................................................................................... 57
Tutorial 6 - Part B - Run the Test Case ................................................................................................................ 65
Tutorial 6 - Part C - Modify Request Test Steps .................................................................................................. 66
Tutorial 7 - Test an Enterprise JavaBean (EJB) ........................................................................................................... 72
Step 1 - Create a Test Case .................................................................................................................................. 72
Step 2 - Create a Configuration ........................................................................................................................... 73
Step 3 - Add an EJB Test Step .............................................................................................................................. 74
Step 4 - Connect to the Server ............................................................................................................................ 74
Step 5 - Locate the EJB Interface ......................................................................................................................... 75
Step 6 - Configure the EJB ................................................................................................................................... 77
Step 7 - Add an Assertion .................................................................................................................................... 79
Step 8 - Verify the Method Execution ................................................................................................................. 81
Step 9 - Add Another EJB Test Step ..................................................................................................................... 82
Tutorial 7 - Review .............................................................................................................................................. 83
Tutorial 8 - Test a Web Service................................................................................................................................... 84
Step 1 - Create a Test Case .................................................................................................................................. 84
Step 2 - Add a Web Service Execution (XML) Test Step ...................................................................................... 85
Step 3 - Create a Web Service Client ................................................................................................................... 87
Step 4 - Execute the Web Service Request ......................................................................................................... 88
Step 5 - View the Request and Response ............................................................................................................ 89
Tutorial 8 - Review .............................................................................................................................................. 90
Tutorial 9 - Examine and Test a Database .................................................................................................................. 91
Step 1 - Create a Test Case .................................................................................................................................. 91
Step 2 - Add Database Properties to the Configuration ...................................................................................... 92
Step 3 - Add a SQL Database Execution (JDBC) Test Step ................................................................................... 93
Step 4 - Connect to the Database ....................................................................................................................... 94
Step 5 - Execute a SQL Query .............................................................................................................................. 95
6 Getting Started
Step 6 - Add an Assertion .................................................................................................................................... 96
Step 7 - Run the Test Case ................................................................................................................................... 97
Step 8 - Change the Assertion ............................................................................................................................. 98
Step 9 - Add a Filter ............................................................................................................................................. 99
Step 10 - Test the Filter and Assertion .............................................................................................................. 100
Tutorial 9 - Review ............................................................................................................................................ 101
Tutorial 10 - Stage a Quick Test ................................................................................................................................ 102
Step 1 - Open the Test Case .............................................................................................................................. 102
Step 2 - Review the Test Case ........................................................................................................................... 103
Step 2 - Part A - Run a Quick Test ...................................................................................................................... 104
Step 2 - Part B - View Generated Reports ......................................................................................................... 107
Tutorial 10 - Review .......................................................................................................................................... 107
Contents 7
Step 10 - Test Against the VSM ......................................................................................................................... 131
Review the Tutorial ........................................................................................................................................... 132
Glossary 139
8 Getting Started
Chapter 1: DevTest Portal
This section contains the following topics:
Open the DevTest Portal (see page 9)
Navigating the DevTest Portal (see page 10)
Note: For information about the server components that must be running, see Start the
DevTest Processes or Services in Installing.
http://hostname:1507/devtest
Log in to the DevTest Portal with your user ID and password. If you do not have one, log
in as a standard user. See your administrator for details.
Use the DevTest Portal homepage to access pages for major activities and the
corresponding documentation. You can expand any section of the navigation pane to
display links to relevant tasks. Click a link to display the UI for a selected task, typically a
tab on the Portal. Some links redirect you to the DevTest Console.
For links you will use most often, you can click the corresponding Quick Links option. For
related documentation, click the corresponding Getting Started link. The Getting Started
and Quick Links panes appear in the Home tab.
Note: The first time that you click a Getting Started link, a login dialog opens. Your login
to view the documentation persists throughout your session on the DevTest Portal.
10 Getting Started
Navigating the DevTest Portal
Details on the mapping of the Quick Links and Getting Started options to the navigation
menu options follows.
Create
Perform common create actions.
Notice the icon following the Virtualize using RR pairs. This icon indicates that
clicking the link redirects you to another UI.
API Test
Opens: API Test tab
Getting Started: How to create a test in Using CA Application Test
Quick Links: Create Tests
Virtualize Website (HTTP/S)
Opens: Virtualize Website (HTTP/S) tab
Getting Started: How to record and save a virtual service in Using CA Service
Virtualization
Quick Links: Create a Virtual Service
Virtualize JDBC
Opens: Virtualize JDBC tab
Topic: JDBC in Using CA Service Virtualization
Virtualize RR Pairs
Redirect: DevTest Console
Opens: Create Virtual Service on VSEasy tab
Topic: Create and Deploy a Virtual Service with VSEasy in Using CA Service
Virtualization
Manage
Manage test artifacts.
12 Getting Started
Navigating the DevTest Portal
API Test
Manage tests that were created with the DevTest Portal.
Getting Started: How to manage test artifacts, Manage API Tests in Using CA
Application Test
Quick Links: Manage Tests
Test: Current Status (Today)
Tests
View information about test cases and run test cases that were created with
DevTest Workstation.
Getting Started: How to manage test artifacts, Manage Tests in Using CA
Application Test
Quick Links: Manage Tests
Test: Current Status (Today)
Test Suites
View information about test suites and run test suites that were created with
DevTest Workstation.
Getting Started: How to manage test artifacts, Manage Test Suites in Using CA
Application Test
Quick Links: Manage Tests
Test: Current Status (Today)
Virtual Services
Opens tabs: http-rest, WebServicesModel, http
Getting Started: How to edit a virtual service in Using CA Service Virtualization
Quick Links: Manage Virtual Services
Monitor
Monitor tests or virtual services. When there are no tests or suites that meet
selection criteria, you can click "Create a Test" or "Execute a Test"
Monitoring Tests
The Monitor Test window lets you see API tests, test cases, and test suites that
have been run on CA Application Test.
Click the filter button to toggle the search options.
Opens: Monitoring Tests tab
Getting Started: How to monitor a test in Using CA Application Test
Quick Links: Monitor Tests
Virtual Services
Redirect: DevTest Console
Opens: Server Console, DevTest Network, where you can click VSE
Topic: Create and Deploy a Virtual Service with VSEasy in Using CA Service
Virtualization
Application Insight
Start common tasks with CA Continuous Application Insight.
14 Getting Started
Navigating the DevTest Portal
Analyze Transactions
Opens: Analyze Transactions tab
Getting Started: How to work with the shelf in Using CA Continuous Application
Insight
Quick Links: Analyze Business Transactions
Document Transactions
Opens: Document Transactions tab
Getting Started: How to document transactions for a manual test in Using CA
Continuous Application Insight
Manage Tickets
Opens: Manage Tickets tab
Getting Started: How to manage a ticket in Using CA Continuous Application
Insight
Quick Links: Manage Tickets
Explore Defects
Opens: Explore Defects tab
Topic: Working with Defects in Using CA Continuous Application Insight
Settings
The Settings tab has no Quick Links entries or Getting Started links.
Agents
Opens: Agents tab
Topics: See Agents.
Mainframe Agents
Redirects: DevTest Console, Server Console, DevTest Network
Topic: Mainframe Bridge in Agents.
Access Control
Redirects: DevTest Console, Server Console. Expand the Administration tab to
display Security options.
Topic: Access control (ACL) in Administering.
Reporting
Redirects: DevTest Console, Reporting
Topics: Reports in Using CA Application Test.
16 Getting Started
Navigating the DevTest Portal
The first few tutorials walk you through using DevTest Workstation to build simple test
cases. You become familiar with basic concepts such as projects, properties, data sets,
filters, and assertions.
The subsequent tutorials help you acquire deeper knowledge about how to set up test
steps to interact with and test several common technologies. These technologies
include Java objects, web pages, Enterprise JavaBeans (EJBs), web services, and
databases. You also learn how to stage a quick test.
To perform the tutorials, you must have DevTest Workstation installed and you must
have access to a registry.
Some tutorials use the Demo Server as the system under test. For information about
installing the Demo Server, see Installing.
Prerequisites
■ DevTest Workstation is installed and DevTest license credentials are entered.
■ You have reviewed the Glossary of Terms (see page 139).
20 Getting Started
Tutorial 1 - Projects, Test Cases, and Properties
The default configuration has the name project.config, and is created automatically for
a new project. The project.config file is located in the Configs folder in the Project panel.
The file extension is not shown. You can add the properties to the project.config file
and, if necessary can also create a configuration file.
2. Click Add Step, select Utilities, and select Output Log Message.
A step named Output Log Message is added to the model editor.
3. Right-click the Output Log Message step and select Rename.
4. Change the name to My Output Log Message.
5. Make sure that My Output Log Message is still selected. In the right pane, click the
arrow next to Output Log Message.
The Output Log Message tray opens.
22 Getting Started
Tutorial 1 - Projects, Test Cases, and Properties
2. Click Add Step, select Utilities, and select Output Log Message.
A step with the name Output Log Message is added to the model editor and the
Output Log Message tray opens.
3. In the log editor, delete the placeholder text.
4. Copy and paste the following text into the log editor:
The current value of config_prop is: {{config_prop}}.
The current value of MyOutputLogMessage_step_prop:
{{MyOutputLogMessage_step_prop}}.
Note: The log message does not change the values of config_prop or
MyOutputLogMessage_step_prop.
5. Close the second log message step by clicking the arrow at the upper left corner of
the window.
6. From the main application toolbar, click Save , or select File, Save, tutorial1.
24 Getting Started
Tutorial 1 - Projects, Test Cases, and Properties
1. In the ITR, click Execute Next Step to run the Output Log Message step.
2. To view the response, click the Response tab. Although you set config_prop to 42 in
the project.config file, you changed the value to 21 in the My Output Log Message
step, and the value did not change in the Output Log Message step. The value of the
MyOutputLogMessage_step_prop property also carried over from the My Output
Log Message step to the Output Log Message step.
3. To view the current and previous property values, click the Properties tab.
4. When you are done, close the tutorial1 and project tabs.
Review
In this tutorial, you took a first look at properties. You saw that properties are denoted
by using a special syntax, {{property_name}}. You can set properties by using a variation
of this syntax; {{property_name=value}}. After you set a property, use or modify it in
subsequent steps in a test case.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 1 - Properties.
■ DevTest Workstation is open.
26 Getting Started
Tutorial 2 - Data Sets
The first row specifies the names of the properties to which this data is assigned
(month, day, year). The remaining rows specify the data that is read and used in the
test case. Two of the rows include a property with the name yearglobal.
3. Save the file as dates.txt.
4. In the Project panel, right-click the Data folder in the My Tutorials project and select
Import Files.
5. Navigate to the folder where you saved the dates.txt file and select the file name.
6. Click Open. The dates.txt file now appears in the Data folder.
5. Click Save .
2. Click Add.
The Add step menu is displayed.
3. Select Utilities and select Output Log Message.
A step with the name Output Log Message is added to the model editor.
4. Right-click Output Log Message and select Rename. Change the name to DSstep1.
5. In the right pane, click the arrow next to Output Log Message.
The Output Log Message tray opens.
6. Delete the placeholder text.
7. Enter the following log message:
Date is: {{month}}/{{day}}/{{year}}
Note: The curly brackets are important. The test case runs correctly only if they are
included.
8. To close the Output Log Message tray, click anywhere in the model editor.
9. Click Save.
28 Getting Started
Tutorial 2 - Data Sets
1. Click Add.
The Add step menu is displayed.
2. Select Utilities and select Output Log Message.
A step with the name Output Log Message is added to the model editor.
3. Right-click Output Log Message and select Rename. Change the name to DSstep2.
4. In the right pane, click the arrow next to Output Log Message.
The Output Log Message tray opens.
5. Delete the placeholder text.
6. Enter the following log message:
Date is: {{month}}/{{day}}/{{year}}
7. To close the Output Log Message tray, click anywhere in the model editor.
8. Click Save.
6. Click File Location, then navigate to and select the dates.txt file in the
LISA_HOME\Projects\My Tutorials\Data directory.
7. Click the Test and Keep button.
If the test is successful, the Data Set Editor window returns a "Test successful"
message.
8. Click OK.
9. From the toolbar, click Start ITR, then select Start new ITR.
30 Getting Started
Tutorial 2 - Data Sets
9. From the toolbar, click Start ITR, then select Start new ITR.
Tutorial 2 - Review
In this tutorial, you:
■ Created a comma-delimited data set
■ Used the data set for running a simple test case
■ Learned how a test step accesses the data in the data set
For an introduction to filters and assertions, see Filters and Assertions in Using CA
Application Test.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 2 - Data Sets.
■ DevTest Workstation is open.
32 Getting Started
Tutorial 3 - Filters and Assertions
Note: The curly brackets are important. The test case runs correctly only if they are
included.
4. Click Save.
3. Click Add.
4. From the XML submenu, select Ensure Result Contains String.
5. The new assertion that is applied to DSstep1 is added to the Assertions tab.
The assertion editor opens.
6. In the assertion editor, do the following:
a. In the If list, select True.
34 Getting Started
Tutorial 3 - Filters and Assertions
7. Click Save.
5. Click the Properties tab and review the behavior of the properties.
36 Getting Started
Tutorial 3 - Filters and Assertions
6. Click the Test Events tab and review the events that were generated.
3. Click Add.
4. From the Utility Filters submenu, select Store Step Response.
The filter editor opens.
5. In the filter editor, set the property name to DSstep1_response_prop.
This property is where the step response is stored.
6. In the model editor, double-click DSstep2 and add the following text to the end of
the output log message:
The value of DSstep1_response_prop is: {{DSstep1_response_prop}}.
7. Click Save.
38 Getting Started
Tutorial 3 - Filters and Assertions
5. Click the Properties tab and observe where the DSstep1_response_prop property is
created and modified.
6. Click the Test Events tab and review the events that were generated.
40 Getting Started
Tutorial 4 - Manipulate Java Objects (POJOs)
Tutorial 3 - Review
In this tutorial, you:
■ Took a first look at filters and assertions.
■ Opened and modified an existing test case.
■ Learned how to add a simple assertion.
■ Learned how to add a simple filter.
■ Used the Interactive Test Run utility to validate that the assertion and filter worked
as expected.
More Information
DevTest provides filters and assertions to cover most of the situations that you
encounter in your test case development. If no appropriate filter exists, DevTest
provides a mechanism for developing custom filters and assertions through the
Software Developers Kit (SDK). See Using the SDK for more information.
First, you construct the object and review how to call methods on the object. Then you
incorporate the object into a simple DevTest model editor.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 3 - Filters and Assertions.
■ DevTest Workstation is open.
3. In the Local JVM Settings area, ensure that Make New Object of Class is selected.
4. In the field to the right of Make New Object of Class, type java.util.Date.
5. Click Construct/Load Object.
The Complex Object Constructor wizard appears. The first step shows the available
constructors.
6. Select the Date( java.lang.Long ) constructor.
42 Getting Started
Tutorial 4 - Manipulate Java Objects (POJOs)
7. Click Next.
8. Click Finish.
The Complex Object Editor opens.
Now you have a Java object to manipulate in the Complex Object Editor.
44 Getting Started
Tutorial 4 - Manipulate Java Objects (POJOs)
The type (class) of the currently loaded object, followed by the response from
calling the 'toString' method of the object.
The Constructor that was called. This icon is shown if multiple constructors
exist.
The input parameters (type and current value) for the enclosing method.
The return value (current value if the call has been executed) for the enclosing
method.
The contents of the right panel vary depending on what is selected in the left panel.
The setYear() method is added to the Object Call Tree. The right panel now displays
the Call tab and Docs tab.
The Call tab lists the argument information.
3. In the Value field for arg1, enter 104.
4. Click Execute.
46 Getting Started
Tutorial 4 - Manipulate Java Objects (POJOs)
48 Getting Started
Tutorial 4 - Manipulate Java Objects (POJOs)
4. Click Execute.
5. Click Save.
1. Click Show model properties on the test case toolbar. Or, you can select
Help, View Properties from the main menu.
2. Click Refresh .
3. Locate the Date_prop property.
4. Click Close.
50 Getting Started
Tutorial 5 - Run a Demo Server Web Application
Tutorial 4 - Review
In this tutorial, you:
■ Created a test step to manipulate a Java object of java.util.Date type.
■ Used the Complex Object Editor to manipulate the Java object.
■ Learned how to add inline filters to objects and save results into a property.
The LISA Bank application is a simple front end that is connected to a database table
containing financial account information. The application business logic consists of
Enterprise JavaBeans and web services. From the web application, you can view the
profile of the user, create an account, add addresses, and so on.
The goal of this tutorial is for you to become familiar with the application. This
application is used in subsequent tutorials as the system under test.
Prerequisites
■ The Demo Server is running.
52 Getting Started
Tutorial 5 - Run a Demo Server Web Application
54 Getting Started
Tutorial 5 - Run a Demo Server Web Application
6. To create two more accounts: Checking and Auto_Loan, repeat the preceding steps.
Set the initial balance of the checking account to $600.00. Set the initial balance of
the auto loan to $10000.00.
Do not use commas in the Initial Balance field.
56 Getting Started
Tutorial 6 - Test a Website
Tutorial 5 - Review
In this tutorial, you:
■ Logged in to the LISA Bank application.
■ Created new accounts.
■ Closed an account.
The HTTP/HTML Request test step enables you to make requests of a web server and
receive results in a test case. To verify that the pages work as expected, test a simple
website.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 5 - Run a Demo Server Web Application.
■ DevTest Workstation is open.
■ You have access to the demo server.
Tutorial Parts
■ Tutorial 6 - Part A - Record the Test Case (see page 57)
■ Tutorial 6 - Part B - Run the Test Case (see page 65)
■ Tutorial 6 - Part C - Modify Request Test Steps (see page 66)
58 Getting Started
Tutorial 6 - Test a Website
While you perform actions in the LISA Bank application, the request and response
information for each page visited are recorded.
2. Click Login.
The welcome page appears.
3. In the Accounts section, click the account number of the checking account.
The Account Activity window appears.
4. Click Deposit.
5. In the Deposit Money area, enter the password golisa, a description of the
transaction, and the amount for this deposit.
6. Click Deposit.
60 Getting Started
Tutorial 6 - Test a Website
The Account Activity window shows the updated balance and a record of the
deposit.
62 Getting Started
Tutorial 6 - Test a Website
After you stop recording, you can view details about the transactions.
The model editor is populated with a new test case, having all the transaction
information from the saved recording. Each test step in the test case represents an
HTTP request.
64 Getting Started
Tutorial 6 - Test a Website
The View tab shows the rendered pages while the ITR replays the deposit into the
checking account.
The Source tab shows the HTML code for the page that is captured in the step.
DevTest acts as the browser and sends the same HTTP requests to the web server.
4. Close the ITR utility.
You can edit and modify these test steps like the other test steps in DevTest. The
recorder uses the parameters that you entered during the recording as values for the
Post and Get parameters in the request.
To generalize your LISA Bank test, replace these hard-coded description and deposit
amount values (for example, "cash" and "1000.00") with properties from a data set. You
previously worked with data sets in Tutorial 2 - Data Sets.
In the LISA Bank5 test step from the recording results, the Host Name and Port
parameters are parameterized and added to the configuration. The values for
description and amount are hard-coded.
In this part of the tutorial, we use a numeric counting data set to parameterize the test
case so it deposits different amounts of money. When you then run the test case, it uses
deposit values different from the ones recorded.
66 Getting Started
Tutorial 6 - Test a Website
In the following procedure, you add a numeric counting data set. This type of data set
enables you to assign a number to a property. You can change the number by a fixed
value each time the data set is used.
6. Click the Test and Keep button to test the data set.
You see a success message that shows the first row of data in the data set:
7. Click OK.
You now use the ds_counter property (which you created in the data set) to specify
varying amounts of money for the deposit.
68 Getting Started
Tutorial 6 - Test a Website
3. Click OK.
The Test Monitor opens, but the test has not been started yet.
4. Click OK.
70 Getting Started
Tutorial 6 - Test a Website
Tutorial 6 - Review
In this tutorial, you used a numeric counting data set to provide input to the recorded
test.
You:
■ Copied a test case and added a numeric counting data set.
■ Modified the POST Parameters for the recorded deposit.
■ Staged a quick test.
This tutorial uses the Enterprise JavaBean Execution test step to call EJB methods in a
test case and test the response with an assertion. You test a simple EJB to verify that the
addUser and deleteUser methods work as expected.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 6 - Test a Website.
■ DevTest Workstation is open.
■ You have access to the demo server.
72 Getting Started
Tutorial 7 - Test an Enterprise JavaBean (EJB)
6. Click Save.
7. In the Project pane, right-click the config7 configuration and select Make Active.
The configuration now appears in purple.
74 Getting Started
Tutorial 7 - Test an Enterprise JavaBean (EJB)
2. Click Next.
The Complex Object Editor opens.
76 Getting Started
Tutorial 7 - Test an Enterprise JavaBean (EJB)
Important! You can only add User and Password once. To execute this tutorial more
than once, change the values that are associated with User and Password.
78 Getting Started
Tutorial 7 - Test an Enterprise JavaBean (EJB)
The parameters to the method are displayed in the Object Call Tree, next to the
Input Parameter icon. The return value of this method is the value of the
User field, "Lisa7," in the Object Call Tree.
10. The return changes to null and an error is produced because the user has
already been added.
80 Getting Started
Tutorial 7 - Test an Enterprise JavaBean (EJB)
82 Getting Started
Tutorial 7 - Test an Enterprise JavaBean (EJB)
Tutorial 7 - Review
In this tutorial, you:
■ Created a test case consisting of two EJB test steps.
The EJB object was loaded from the example application on the demo server.
■ Created an EJB test step and loaded an EJB.
■ Used the Complex Object Editor to manipulate EJB objects.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 5.
■ DevTest Workstation is open.
■ You have access to the demo server.
84 Getting Started
Tutorial 8 - Test a Web Service
86 Getting Started
Tutorial 8 - Test a Web Service
88 Getting Started
Tutorial 8 - Test a Web Service
Tutorial 8 - Review
In this tutorial, you:
■ Created a test case with the Web Service Execution (XML) test step.
■ Executed the addUser operation.
■ Viewed the request and response for this operation.
90 Getting Started
Tutorial 9 - Examine and Test a Database
You use the SQL Database Execution (JDBC) step to interact with a database in a test
case and test the response with an assertion. You examine the Users table from a Derby
database that is part of the application.
Tutorial Tasks
Prerequisites
■ You have completed Tutorial 5.
■ DevTest Workstation is open.
■ You have access to the demo server.
4. Click Save.
92 Getting Started
Tutorial 9 - Examine and Test a Database
2. Click the Test Connection button at the bottom of the step editor.
A message indicates that the connection is valid.
3. Click OK.
94 Getting Started
Tutorial 9 - Examine and Test a Database
2. Click the Test/Execute SQL button at the bottom of the step editor.
A message confirms a valid query and displays the number of rows returned.
3. Click OK.
The Result Set tab is displayed.
3. From the drop-down list, select the Fail the Test option.
If the last name that you selected is not found, then the test fails.
96 Getting Started
Tutorial 9 - Examine and Test a Database
4. Click OK.
5. Click Save.
98 Getting Started
Tutorial 9 - Examine and Test a Database
3. Click Add.
4. From the Database Filters submenu, select Extract Value from JDBC Result Set.
The filter editor opens.
5. In the Column field, enter 1. Or, you can enter the actual column name, which is
LNAME.
6. In the Row field, enter 3.
This field is zero-based. Therefore, the value 3 refers to the fourth row.
7. In the Property field, enter DBProperty.
8. Click Save.
Tutorial 9 - Review
In this tutorial, you created a test case to query a database. You used the Users table
from the Apache Derby database that accompanies the applications on the demo
server. You learned how to:
■ Connect to the database.
■ Execute a SQL query against the database.
■ Add assertions and filters.
Tutorial Tasks
Prerequisites
■ You have completed Tutorials 5 through 9.
■ DevTest Workstation is open.
■ You have access to the demo server.
You used many of these steps in tutorials 6 through 9. In this tutorial, you use all the
test steps to build a more realistic test case involving several layers of the application.
1. From the menu bar, click Stage a Quick Test on the test case toolbar.
To stage a quick test, the example test case can be open in the model editor. Or,
you can right-click on the test in the Project panel and can enter the parameters to
stage a quick test from there.
2. In the Stage a Quick Test dialog, complete the following required information:
■ Run Name: Enter a unique name (Tutorial10QuickTest).
■ Number of Instances: Enter a number of users to run the test concurrently (4).
■ Stage Instances To: Select the name of the coordinator server or stage it locally.
■ To restart the test, select If test ends, restart it.
3. Click OK.
The Test Run window opens, but the test has not started yet.
1. Click View, Reporting Console from the main menu, or click Reports on the
toolbar.
The Report Viewer opens.
You can right-click the graph for different menus. For more information about reports,
see the Reports section in Using CA Application Test.
Tutorial 10 - Review
In this tutorial, you tested the multi-tier-combo example using a quick test. You learned
how to:
■ Review a test case containing several types of test steps.
■ Configure and run a test in the quick test feature.
■ Examine a report that is generated from the test run.
Note: If you created the MyMobileTutorials project in a previous tutorial, skip to Step 3,
Create a Config File for an Android Simulator (see page 116).
For more information about adding assertions to your test step, see Add an
Assertion to a Mobile Test Step.
Note: If you created the MyMobileTutorials project in a previous tutorial, skip to Step 3,
Create a Config File for an Android Simulator (see page 116).
For more information about adding assertions to your test step, see Add an
Assertion to a Mobile Test Step.
Prerequisites
The following steps are prerequisites to completing this tutorial:
■ DevTest Workstation and VSE are installed.
■ You have reviewed the following topics:
■ Glossary (see page 139)
■ Introduction to Virtualization
■ Understanding CA Service Virtualization
3. To run the test case on the demo server, click Automatically Execute Test .
When the test completes successfully, you know that the demo server is available
and the test case runs correctly.
4. Close the ITR window.
5. Close the test case by clicking X on the editor tab.
6. Continue with "Step 5 - Create a Config File (see page 124)".
Each of the steps in your test case contains a field where you can specify an endpoint for
the step. By default, DevTest uses the {{ENDPOINT1}} property to define this endpoint.
By using a property and not hard-coding the endpoint, you can quickly change the end
point for each step by changing the project configuration for the {{ENDPOINT1}} value.
To confirm that the ENDPOINT1 value from the VSRecorder config file is being used:
1. Double-click the webservices test case in the Project panel.
The editor opens.
2. Double-click the Add User test step and verify that the Endpoint is on port 8001.
3. Continue with "Step 7 - Configure the VSE Recorder (see page 126)".
11. Select the Gateway option for the Recorder passthru style.
With these settings completed, you can start recording.
12. Click Next.
13. Continue with "Step 8 - Record the Test Case (see page 128)".
You can open and edit each of these files in DevTest Workstation.
7. To see the virtual service model and virtual service image files, select the Open the
service image and Open the generated virtual service model check boxes.
8. Click Finish.
DevTest closes the recorder and opens the selected files in DevTest Workstation.
9. Continue with "Step 9 - Deploy the VSM (see page 130)".
The virtual service is started and ready to process transactions, which are tracked in
the Txn Count column. The service initially shows that it has processed 0
transactions.
6. Run the test case and return to this window.
7. Continue with "Step 10 - Test Against the VSM (see page 131)".
Note: You can also stage and execute a test case or suite against the virtual service.
3. Right-click the webservices test case in the Project pane and select Stage a Quick
Test.
4. Enter 10 for the Number of Instances.
5. Clear the If test ends, restart it check box, and click OK.
6. Click Play with the Test Monitor window open and let the test run.
When you return to the VSE Dashboard after running the test case with 10
instances, you see the transaction count is 33.
Prerequisites
■ The following components are running: Enterprise Dashboard, registry, demo
server, broker, and portal.
The default capture level is Counts. To view the transactions later in this tutorial, you
must set the capture level for the relevant protocols to Full Data.
The following graphic shows the Adjust Captures for Protocol pane in the Agents
window.
In this procedure, you log in to the demo application, create an account, and log out.
The following graphic shows a set of transactions in the Analyze Transactions window.
The transactions are displayed in the List view. The transactions appear in reverse
chronological order.
The following graphic shows a path graph for one of the transactions.
asset
An asset is a set of configuration properties that are grouped into a logical unit. For
more information, see Assets in Using CA Application Test.
audit document
An audit document lets you set success criteria for a test, or for a set of tests in a suite.
For more information, see Building Audit Documents in Using CA Application Test.
companion
A companion is an element that runs before and after every test case execution.
Companions can be understood as filters that apply to the entire test case instead of to
single test steps. Companions are used to configure global (to the test case) behavior in
the test case. For more information, see Companions in Using CA Application Test.
configuration
A configuration is a named collection of properties that usually specify
environment-specific values for the system under test. Removing hard-coded
environment data enables you to run a test case or virtual service model in different
environments simply by changing configurations. The default configuration in a project
is named project.config. A project can have many configurations, but only one
configuration is active at a time. For more information, see Configurations in Using CA
Application Test.
conversation tree
A conversation tree is a set of linked nodes that represent conversation paths for the
stateful transactions in a virtual service image. Each node is labeled with an operation
name, such as withdrawMoney. An example of a conversation path for a banking system
is getNewToken, getAccount, withdrawMoney, deleteToken. For more information, see
Using CA Service Virtualization.
Glossary 139
coordinator
A coordinator receives the test run information as documents, and coordinates the tests
that are run on one or more simulator servers. For more information, see Coordinator
Server in Using CA Application Test.
data protocol
A data protocol is also known as a data handler. In CA Service Virtualization, it is
responsible for handling the parsing of requests. Some transport protocols allow (or
require) a data protocol to which the job of creating requests is delegated. As a result,
the protocol has to know the request payload. For more information, see Using Data
Protocols in Using CA Service Virtualization.
data set
A data set is a collection of values that can be used to set properties in a test case or
virtual service model at run time. Data sets provide a mechanism to introduce external
test data into a test case or virtual service model. Data sets can be created internal to
DevTest, or externally (for example, in a file or a database table). For more information,
see Data Sets in Using CA Application Test.
desensitize
Desensitizing is used to convert sensitive data to user-defined substitutes. Credit card
numbers and Social Security numbers are examples of sensitive data. For more
information, see Desensitizing Data in Using CA Service Virtualization.
event
An event is a message about an action that has occurred. You can configure events at
the test case or virtual service model level. For more information, see Understanding
Events in Using CA Application Test.
filter
A filter is an element that runs before and after a step. A filter gives you the opportunity
to process the data in the result, or store values in properties. Global filters apply to
each step in a test case or virtual service model. For more information, see Filters in
Using CA Application Test.
group
A group, or a virtual service group, is a collection of virtual services that have been
tagged with the same group tag so they can be monitored together in the VSE Console.
lab
A lab is a logical container for one or more lab members. For more information, see Labs
and Lab Members in Using CA Application Test.
magic string
A magic string is a string that is generated during the creation of a service image. A
magic string is used to verify that the virtual service model provides meaningful string
values in the responses. An example of a magic string is {{=request_fname;/chris/}}. For
more information, see Magic Strings and Dates in Using CA Service Virtualization.
match tolerance
Match tolerance is a setting that controls how CA Service Virtualization compares an
incoming request with the requests in a service image. The options are EXACT,
SIGNATURE, and OPERATION. For more information, see Match Tolerance in Using CA
Service Virtualization.
metrics
Metrics let you apply quantitative methods and measurements to the performance and
functional aspects of your tests, and the system under test. For more information, see
Generating Metrics in Using CA Application Test.
navigation tolerance
Navigation tolerance is a setting that controls how CA Service Virtualization searches a
conversation tree for the next transaction. The options are CLOSE, WIDE, and LOOSE.
For more information, see Navigation Tolerance in Using CA Service Virtualization.
network graph
The network graph is an area of the Server Console that displays a graphical
representation of the DevTest Cloud Manager and the associated labs. For more
information, see Start a Lab in Using CA Application Test.
node
Internal to DevTest, a test step can also be referred to as a node, explaining why some
events have node in the EventID.
Glossary 141
path
A path contains information about a transaction that the Java Agent captured. For more
information, see Using CA Continuous Application Insight.
path graph
A path graph contains a graphical representation of a path and its frames. For more
information, see Path Graph in Using CA Continuous Application Insight.
project
A project is a collection of related DevTest files. The files can include test cases, suites,
virtual service models, service images, configurations, audit documents, staging
documents, data sets, monitors, and MAR info files. For more information, see Project
Panel in Using CA Application Test.
property
A property is a key/value pair that can be used as a run-time variable. Properties can
store many different types of data. Some common properties include LISA_HOME,
LISA_PROJ_ROOT, and LISA_PROJ_NAME. A configuration is a named collection of
properties. For more information, see Properties in Using CA Application Test.
quick test
The quick test feature lets you run a test case with minimal setup. For more information,
see Stage a Quick Test in Using CA Application Test.
registry
The registry provides a central location for the registration of all DevTest Server and
DevTest Workstation components. For more information, see Registry in Using CA
Application Test.
simulator
A simulator runs the tests under the supervision of the coordinator server. For more
information, see Simulator Server in Using CA Application Test.
staging document
A staging document contains information about how to run a test case. For more
information, see Building Staging Documents in Using CA Application Test.
subprocess
A subprocess is a test case that another test case calls. For more information, see
Building Subprocesses in Using CA Application Test.
test step
A test step is an element in the test case workflow that represents a single test action to
be performed. Examples of test steps include Web Services, JavaBeans, JDBC, and JMS
Messaging. A test step can have DevTest elements, such as filters, assertions, and data
sets, attached to it. For more information, see Building Test Steps in Using CA
Application Test.
test suite
A test suite is a group of test cases, other test suites, or both that are scheduled to
execute one after other. A suite document specifies the contents of the suite, the
reports to generate, and the metrics to collect. For more information, see Building Test
Suites in Using CA Application Test.
think time
Think time is how long a test case waits before executing a test step. For more
information, see Add a Test Step (example) and Staging Document Editor - Base Tab in
Using CA Application Test.
transaction frame
A transaction frame encapsulates data about a method call that the DevTest Java Agent
or a CAI Agent Light intercepted. For more information, see Business Transactions and
Transaction Frames in Using CA Continuous Application Insight.
Glossary 143