cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform the Unit Test where the product code is made to read the data from the SAP Table?

Urvesh
Explorer
0 Kudos
77

I have the product code stored in the Class called ZUKI_ABC. Inside this class, there is a method called 'READ'. This READ method is responsible to read the Data from the SAP Table. 

Now I created the Local Test Class for performing a Unit Testing. But I want to know How can I write my Testing Methods to verify the results. Another question is, what Input data and expected data should I consider to verify the product code and its expected results?

Accepted Solutions (0)

Answers (1)

Answers (1)

MBartsch71
Participant
0 Kudos

There are different approaches to address this issue. You can use DAO's to mock the database access. You can also use the SQL Testdouble framework.