littlecowk35 / eic-quan-ly-cong-van

Automatically exported from code.google.com/p/eic-quan-ly-cong-van
0 stars 0 forks source link

Design test BusinessUtil method #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are three parts:
BusinessUtli contains method need to test
Cotrolller contains an action get two input value
+Name of class need to test
+Method on class need to test
View creates form with dynamic input depend on method need to test

Original issue reported on code.google.com by ntanh...@gmail.com on 23 Jul 2014 at 8:56

GoogleCodeExporter commented 9 years ago
Q:How to get information about method, fields of a class
A: Using java.lang.reflect

Original comment by ntanh...@gmail.com on 23 Jul 2014 at 8:58

GoogleCodeExporter commented 9 years ago
Design testing portlet follow model

Original comment by ntanh...@gmail.com on 24 Jul 2014 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago
Source code of portlet testing code version 1

Original comment by ntanh...@gmail.com on 24 Jul 2014 at 10:35

Attachments:

GoogleCodeExporter commented 9 years ago
Algorithms:
1.Choose class need to test
2.Get all method of choosed class
3.Choose the method need to test
4. Build the client interface based on the choosed method
   4.1 Get the number of parameter of method
   4.2 Get types of parameters
   4.3 Draw a form contains the number of input as the number of parameter
5. Get the input value of parameter. Invoke the method with these values
6. Show the testing result

Original comment by ntanh...@gmail.com on 24 Jul 2014 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by ntanh...@gmail.com on 14 Aug 2014 at 1:28