Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
In my previous Welogs on eCATT , I discussed topics starting from "Introduction to eCATT" to "Executing a Test Case using eCATT ". This Weblog will go a step further and discuss how to create a Test Case for a Web DynPro Application. This is one of the major features of eCATT that allows users to test business processes that cross system boundaries. The scenario for Test is as follows : Scenario The goal is to create a Test Case for a Web Dynpro Application that is on java Stack . The application is for Purchase Order Creation. The application will be tested for different set of data . The url is : http://:/webdynpro/dispatcher/local/PO/CreatePO Procedure: The first step towards creating a Test Case for a Web Dynpro Application is to create a RFC destination in SAP . Tcode : SM59 RFC Destination : WEBDYNPRO2 , Type : G Target Host : Service : Now , create a System data Container assigning HTTP RFC destination created above . Tcode : SECATT After creation of Test Data Container , Create Test Script . ( the creation of the same has been discussed at length in my previous weblogs ) In pattern option under UI control Group select WEBDYNPRO command . Entering System data Container and Target System . The Application in our case is “/webdynpro/dispatcher/local/PO/CreatePO” Recording starts . The application starts in the browser . Entering appropriate Header Info in the fields . Adding item details . Creating Purchase Order . The PO is created in SAP and the PO number is reflected in top right corner . Now , click “Stop Recording” Option . Below we can see a WEBDYNPRO command is created for each page of application. Now Parameterize the Input values Creating Test Data Container . 2 Variants for are created . The Company code data is different in both cases . For Test Variant 1 : Company Code is 1000. For Test Variant 2 : Company Code is 3000. Now Creating Test Configuration and attaching Test Data Container . Executing Test Configuration . Examining Log we see that : PO can be created with var1 ( Company Code :1000 ) PO cannot be created with var2 ( Company Code :3000 ) Thus we were able to successfully Create a Test Case for a "Web Dynpro Application" deployed on Java Stack using eCATT.
10 Comments