Hi,
I am developing a small tool that helps in automation testing. There is a requirement like, to read from an xml file the variable name, variable data type and its value, then using these values declaring and initializing variable in my java class dynamically. Please suggest me ways of doing this. Can i accomplish this using Reflection api of Java. I tried googling it, but was not able to find any concrete examples for this.
Thanks,
Kranthi
I am developing a small tool that helps in automation testing. There is a requirement like, to read from an xml file the variable name, variable data type and its value, then using these values declaring and initializing variable in my java class dynamically. Please suggest me ways of doing this. Can i accomplish this using Reflection api of Java. I tried googling it, but was not able to find any concrete examples for this.
Thanks,
Kranthi