You are on page 1of 30

ASG (Allen Systems Group, Inc) - SmartTest R5.

Online Program Testing


Developer Initial Setup Document

6/21/2013

Page 1 of 30

16:01 A6/P6

The objective of this document is to assist team members with getting setup to test Online programs using ASG (Allen Systems Group, Inc) -SmartTest R5.0. The process of testing Online programs using SmartTest is comprised of the following three main steps. 1.0 Compile your program using the Via soft compile/analyze job function. 2.0 Execute Online program using SmartTest tool 3.0 Utilization of basic SmartTest commands 1.0 Compile your program using the Via soft compile/analyze job function

On the ISPF Primary Option Menu type =N.T.C Depress <ENTER> Key

6/21/2013

Page 2 of 30

16:01 A6/P6

Enter all pertinent information. Depress <ENTER> Key Note: Since this same panel is used for both batch and online programs include both batch and online load library names.

6/21/2013

Page 3 of 30

16:01 A6/P6

The screen requires you to enter the plan name (if program accesses DB2 tables). Enter DB2 plan name in the Member Name field and verify correct DB2 Bind Library name. Depress <ENTER> key. Note: The plan name can be obtained by scanning your environment bind control PDS (i.e. APPL.DEV4.BINDCNTL).

6/21/2013

Page 4 of 30

16:01 A6/P6

It is important for you to use the Via soft compile/analyze job function when you compile. This will facilitate the appropriate update to the AKR file. Enter SV on the command line to choose the Via soft compile/analyze job function. Verify that job card information is correct and Depress <ENTER> key.

6/21/2013

Page 5 of 30

16:01 A6/P6

Include and/or verify correct AKR data set name (i.e. APPL.DEV4.AKR, APPL.IMPL.AKR, etc) Note: The AKR data set is where the version of your source will reside that enables you to see your lines of code during the SmartTest session. After you have completed or inserted the AKR dataset name depress <ENTER> Key

6/21/2013

Page 6 of 30

16:01 A6/P6

Depress <ENTER> Key You have not completed the 1st step of compiling your program using the Via soft compile/analyze job function.

6/21/2013

Page 7 of 30

16:01 A6/P6

You should now proceed to the active queue to verify the successful completion of the compilation of your program. On the command line type =P.S.DA depress <ENTER> Key.

6/21/2013

Page 8 of 30

16:01 A6/P6

2.0 Execute Online program using SmartTest tool


After verification of a successful compilation of you Online program it is now time to access the SmartTest tool to begin testing.

On the ISPF Primary Option Menu type =P.SMRT Depress <ENTER> Key

6/21/2013

Page 9 of 30

16:01 A6/P6

Depress <ENTER> Key

6/21/2013

Page 10 of 30

16:01 A6/P6

Type ENV on command line and depress <ENTER> Key

6/21/2013

Page 11 of 30

16:01 A6/P6

Type in all of the Application Load Library names referenced at the bottom of this screen. Type L on the command line and depress <ENTER> key

6/21/2013

Page 12 of 30

16:01 A6/P6

Enter the libraries referenced above. Note: Make sure you include the quotation characters at the beginning and end of he library names. Upon completion depress <PF3> Key.

6/21/2013

Page 13 of 30

16:01 A6/P6

Choose option 2 (CICS) and depress the <ENTER> Key *****This is the first diff. With batch and all diff starts from here*****Chilla*********

6/21/2013

Page 14 of 30

16:01 A6/P6

Choose option 1 and depress the <ENTER> Key

6/21/2013

Page 15 of 30

16:01 A6/P6

Some developers have encountered problems with exceeding the maximum storage while testing some of the Online programs in this environment. Change the value of the Maximum storage field from 204800 to 20480000 and depress <ENTER> Key

6/21/2013

Page 16 of 30

16:01 A6/P6

Choose option C to connect to CICS and depress <ENTER> Key

6/21/2013

Page 17 of 30

16:01 A6/P6

Depress <ENTER> Key

6/21/2013

Page 18 of 30

16:01 A6/P6

Type in USERID and PASSWORD and depress <ENTER> Key Note: After depression of <ENTER> Key WAIT!!! The following SmartTest message should appear in the lower left corner of your screen

ASG2733I SmartTest-CICS is active.

6/21/2013

Page 19 of 30

16:01 A6/P6

After the appearance of message ASG2733I SmartTest-CICS is active on your screen enter Transaction code in top left corner of your screen and depress <ENTER> Key.

6/21/2013

Page 20 of 30

16:01 A6/P6

You are now ready to begin testing your program with the ASG SmartTest R5.0.

6/21/2013

Page 21 of 30

16:01 A6/P6

Line SmartTest line commands can be utilized at this point. Type BR (Break Point) on a line with a COBOL action verb. See BR in 1st and 2nd position of line 006455.

6/21/2013

Page 22 of 30

16:01 A6/P6

Observe break point insertion on line 006455. List of basic commands will be covered in section 3.0 Utilization of Basic SmartTest commands.

6/21/2013

Page 23 of 30

16:01 A6/P6

Type CAN on the command line and depress the <ENTER> Key.

6/21/2013

Page 24 of 30

16:01 A6/P6

A message will appear acknowledging the TEST SESSION CANCELLED Depress <PF3> Key

6/21/2013

Page 25 of 30

16:01 A6/P6

Depress <PF3> to exit from SmartTest.

6/21/2013

Page 26 of 30

16:01 A6/P6

If you encounter this screen during your 1st attempt to exit SmartTest change the process option to the following: OLD Log ----Process Option NEW Log ----Process Option List ---D Punch ------D D PD List ---PD Punch ------D

Upon completion of changes depress <PF3> Key

6/21/2013

Page 27 of 30

16:01 A6/P6

Depress <ENTER> Key to exit SmartTest tool

3.0 Utilization of basic SmartTest commands


Now that you are able to compile and execute your program with the SmartTest facility you will need to know some basic commands. Command BR D K ZD ZH ZO Action Break Point Delete Keep Zoom Data Zoom Data Hex Zoom Off Description Set break points in source code Delete a break point Keep displayed field contents on the screen Display field content (non-HEX format) Display field content (HEX format) Turn off Zoom Data

You can obtain more information from the drop down menu available during your SmartTest session.

6/21/2013

Page 28 of 30

16:01 A6/P6

Choose the VIEW item from the horizontal menu

6/21/2013

Page 29 of 30

16:01 A6/P6

Get familiar with menu selection items

6/21/2013

Page 30 of 30

16:01 A6/P6