Monday, September 24, 2012

Reusable UI

One of the objectives of this project is to build a reusable test UI, which is not only available for the TPC test, but also for users' self-defined tests.

To achieve this objective, I use properties files of Java.According to the Java API, Properties are configuration values managed as key/value pairs. In each pair, the key and value are both String values. The key identifies, and is used to retrieve, the value, much as a variable name is used to retrieve the variable's value.

I let uses to browse the system and choose the properties files. In each properties file, a property called 'testClassName' is required. The 'testClassName' is the name of the java class which implement the test function. Program searches the default directory to find the java class file and run the test.

No comments:

Post a Comment