06-05-2006 02:01 AM
Dear all,
I have the following queries with respect to customization of TestStand using C#
Please help me to get rid of these problems
Query 1: Is there any way to convert an XML file (Contains Step name, variables, dlls name, function name and parameters) into a sequence file? I have seen the Sequence Builder tool in NI example directory but this does not copy the Locals, Parameters values it just simply copy the step details alone.
Query 2: Do we need TestStand Development license for Creating Sequence file dynamically?
Query 3: How to create Property Loader dynamically?
Query 4: How to use Force Fail/Force Pass/Skip during sequence file creation
Query 5: Say for eg. I have a sequence file with the 3 steps. Step2 and Step3 should execute only if Step1 has passed (precondition) also it has to execute step1 before execution of step2 and step3. How can I do that?
Any helps appreciated,
Thanks and Regards,
Madhu Sri
06-05-2006 03:11 AM
Hi Madhu Sri,
Query 1: The example you mentioned uses a text file, therefore you will require a xml routine to read in you data. TestStand will not do this. The steps you take to create a Local/Parameter is very similar to the steps you take to create Steps with in your Sequences. The TestStand Programmer's Help - Writing an Application with the API should help.
Query 2: If you are intending to create your sequences at runtime on your target system, then you will require a development license.
Query 3: Creating a PropertyLoader step is the same as creating a Test Step. It also depends on where to are going to clone a step, similar to how its done in the Sequence Builder example or whether you are going to use the Type Palettes. If you are going to do the latter then you will have to do some extra actions getting a reference to the Type Palettes. There are examples on the NI Web to do this as well as creating Data Types which you might need for your locals and parameters.
Query 4: You will need to set the Step Property TS.Mode. This is a string and will require to be set to "Fail"/"Pass"/"Skip" before the step is executed.
Query 5: The order you insert steps into the Sequence will determine the order of executions. So Step 1 will be at index 0, Step 2 will be at index 1, Step 3 will be at index 2.
Hope this helps
Regards
Ray Farmer
06-05-2006 07:50 AM
06-05-2006 08:03 AM
Hi,
Q1: In your SeqEditor, Menu Item Help, select TestStand Programmer Help
Q2: Yes, Basicaly if you are creating sequence files then you need a development license
Q3: OK, I'll try and get one to you later today.
Q4: If you are trying to set the Mode while the step is executing, ie in the steps code module, then that change will not take affect until the next time the step is invoked. Theyfore you have to set the mode before the step is invoked because its at that point that the engine checks the state of the step's mode.
Q5: Ok, not sure I know what your question is now, so I 'll have to re-read the original.
Regards
Ray Farmer
06-06-2006 01:37 AM
Dear Ray
I dont find the TestStand Programmer Help, may be it comes with Licensed TestStand Version. Could you please send me the document or help file.
If you have some sample code for converting XML into Sequence
06-06-2006 01:37 AM
Dear Ray
I dont find the TestStand Programmer Help, may be it comes with Licensed TestStand Version. Could you please send me the document or help file.
If you have some sample code for converting XML into Sequence file
06-06-2006 01:37 AM
Dear Ray
I dont find the TestStand Programmer Help, may be it comes with Licensed TestStand Version. Could you please send me the document or help file.
If you have some sample code for converting XML into Sequence file please
06-06-2006 01:37 AM
Dear Ray
I dont find the TestStand Programmer Help, may be it comes with Licensed TestStand Version. Could you please send me the document or help file.
If you have some sample code for converting XML into Sequence file please send
06-06-2006 01:38 AM - edited 06-06-2006 01:38 AM
Dear Ray
I dont find the TestStand Programmer Help, may be it comes with Licensed TestStand Version. Could you please send me the document or help file.
If you have some sample code for converting XML into Sequence file please send it Us.
Thanks
Srini
Message Edited by MadhuSri on 06-06-2006 01:38 AM
06-06-2006 01:38 AM - edited 06-06-2006 01:38 AM
Dear Ray
How to make a step as skipped thru coding.
ie. for Pass/Fail test in certain cases i would like to make the step as skipped instead of Pass/Fail. if i return true the step status would be passed if i return false the step status would be failed. what should i do to make the step status as skipped thru coding.
Thanks
Madhu
Message Edited by MadhuSri on 06-06-2006 01:47 AM