hi all,
how to write unit test case?
i have a selection-screen which contain some select-options and parameter options.
for example if i have a
select-options: s_orderno for vbak-vbeln.
and i have to validate the s_orderno we have to check the order values in vbak.
so how can we write a unit test case for this validation?
Request clarification before answering.
Soemthing like this.
Test case Heading: Check if the entered Order exist in the system.
Test Case 1: Order No which exist in SAP is entered on selection screen.
Expected Result: Order no should be validated with VBAK. And if record exist, it should continue the process.
Actual: Result: Process continued.
Test Case 2: Order which does not exist in SAP is entered on selection screen.
Expected Result: Error message 'Pls enter valid Order' should be displayed in selection screen.
Actual Result Result: Error message is displayed.
Are you looking for something like this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prashanth,
We create all test cases as i have suggested. Expected result is what is expected from that case.
In each case you need to provide test data used to perform the test. Based upon this data and test, expected result is derived.
and actual result column is filled when you use this test case and test your code.
Expected result is theoritical but Actual result is the outcome of the test.
Usually develoeprs do not prepare test cases. These are provided by Functional Consultant which we as developers use during testing of the programs.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.