shpongle2634 / java-JExcelUnit

Eclipse Plug which is JUnit testing tool using MS Excel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating Excel Issue

shpongle2634 opened this issue · comments

After analyze project, created Excel must have a set consist of some data validations.
Data Validation must help user write right Test data.

##Issue from Overloading Features
But, There are some issues because of constructor and method overloading.
Constructor or Method can call same method prototype but, it can have different parameters.
Even Same Parameters but different order.

Think about cases.
Let Class A has 2 method, doA(String s, int i) and doA(int i, String s).
There's no logical problem.

The Excel file for testing, We have to restrict the value because of parameter Counts and Type on Method Parameter column.

but Conditional Data Validation referencing by Name so, if method cell has "doA" value,
To restrict cell's value , we have to choose the concrete Method doA(String s, int i) and doA(int i, String s).

I think there're some solutions.
We can offer the selection for specific method to Users. and then restrict related cells.
but it can be make too long cells. Maybe, Hidden Sheet could be the best solution.

Simply, One Name can have one more names. So, it can solve this problem with cell's Comment.
it help a cell contain Simple name and Concrete info.

If Class has some methods that have same name but different parameters, The Named Name string will be Method name added Parameter Types. and It will reference its Parameter Type List. So, it can have data validation.