05-13-2010 03:13 AM
I want to automate around 1000 odd test cases using labview. I have a configuration file to set the hardware channels for my inputs.
for e.g Input A = 1!CH1
What is the best way to manage configuration file.The information will be used by all the test cases.I am planning to have OOP design pattern.
05-13-2010 03:39 AM
05-13-2010 03:46 AM
Configuration file will be used in 1000 odd test cases so I want to know what is the best way to do this? I can have a text file that will have a list of Inputs which will be displayed in User Interface where user can change the hardware channels , this information that is Input and its channel no will be stored in the same text file. Now I want to access the configuration file in the 1000 test cases so what is the best way to do this?
05-13-2010 11:28 AM
Here is an example of using Config File VIs. You can open the file with a text editor and modify values if you wish. Or you could write a vi to create the file with its 1000 keys and values.
Create two vi's. In the first vi, use the write loop in my example to create the file. In the second vi, use the GetKeys and read loop to read the values.
05-13-2010 11:44 AM
uttara wrote:I want to automate around 1000 odd test cases using labview. I have a configuration file to set the hardware channels for my inputs.
for e.g Input A = 1!CH1
What is the best way to manage configuration file.The information will be used by all the test cases.I am planning to have OOP design pattern.
Could you share your domain model with us so we can comment appropriately?
Even some SSD's will help.
Lacking that, I believe the "Information Expert" design pattern says the class that aggregates the I/O realted classes should now about the config so implementing an I/O class hierachy where the Parrent class has a "Get config from file" method, you could implement over-ride VI's such that they each know how to get their config based on what the aggregate desides is appropriate for each instance. In the interest of "Low Coupling" the more you can handle with the over-ride VI's the better.
Trying to speak LVOOP so correct my if that is wrong.
Ben
PS For those interested in learning OOP/D, I recomend Craig Larman's book "Applying UML and Paterns" ! Maybe someday I will write a LVOOP adendum for that book... after I get the model railroad running on live steam.
05-18-2010 11:50 PM
05-19-2010 12:34 AM
If the file/configuration is not going to change I would store these settings in a Dictionary, WORM or Variant attribute database.
Now you can lookup these settings by name, without any File IO.
Ton
05-21-2010 03:25 AM
I would like to know the file structure for any ATE.I am interested in developing an application that will be user interface used for automated testing.I have say 'x' no of products each unique and each has say 1000 odd test cases.For each product I am thinking of developing a project and the VIs that will be used to generate test cases and a library of these VIs will be stored in user.lib
The 1000 test cases can be any where on the local PC and a path setting facility can be provided.Also path for storing the results can be taken from user.Is this a right way?