To record a test case, call Transaction SCAT and enter test case Zuser_creat. Do not choose Enter. Choose Test Case → Record Transaction. Enter Transaction SU01, and choose Record/Enter. The system runs Transaction SU01. Enter the user name TESTZ and choose Create. Enter the user’s title first name ZEBRA and the last name TEST. Select the Logon data tab, enter init as the initial password, and repeat the password, profile select sap_all then choose Save. Go back a screen and In the dialog box displayed, select End recording. A message is displayed stating that the recording has ended. Enter the test case title User maintenance. In the field Component, enter BC-SEC-USR. Save the test case. In the field package class, enter $TMP. Choose Save to save the attributes. To save the test case functions, go back.
Entering parameters for a test case
To define parameters for a test case, call Transaction SCAT. Enter the test case name Zuser_creat. Select Functions and choose Change. Double-click on TCD. Then double-click on program SAPLSUU5 screen 0050. (first appearance of this program) The first screen of Transaction SU01 is displayed. (If you backed out, enter the procedure name again and double-click on TCD.) Double-click on the user name field. In the field Param. name, enter an "&", and choose Copy/Enter. Choose Next screen and double-click the last name. In the field Param. name, enter an "&" and choose Copy/Enter. Go back until the Save folder appears, and choose Save.
Creating and using an external variant for the test case
To export the default parameters into a frontend file, in the test case, select Goto → Variants → Export Default. Note: The default file name is
Open the file, with excel and edit and add another couple of user, and save the text file
To execute the test case using the external variant from file, from the initial CATT screen, enter the test case name and choose Execute. In the field Variants, select External from file and choose Choose. Select the file created above, and choose Open. Under Processing mode, select Errors, and choose Execute. Note: When you use this method, the file must be imported each time the test case is executed (file remains only on PC).
No comments:
Post a Comment