In reply to dave_59:
Let me try to clarify more clear here. What I want to implement is described as below.
The my_parse function is defined in the base test. and then for example, I have four (maybe more in the future) child test. and the first child test will call this function with two parameters, one is int a and the other is string b. the second will call this function with three parameters (one is int a, one is int b and another is string c). The third will call it with four parameters ( let's say all is string xxx) an the fourth will call it with one parameter only which is int a. (and fifth, sixth, and so on in the future created, will call this function with parameters that is different type and different number.)
What this function defined in base test is to assign the specific data to these parameters. the first parameter with string type will be assigned to "AA" and the second one will be assigned to "BB". Meanwhile the first parameter with int type will be assigned to 1 and the second will be assigned to 2. and so on ....
So I want to have this function in the base test which can parse how many parameters and what type of each of them and then do the assignment.