12-11-2008 10:11 AM - edited 12-11-2008 10:11 AM
Hi Luca,
It sounds like you have more than one translator installed from the examples. You should probably just remove all of them, but the one you created. Also, you probably need to restart the sequence editor whenever you change these dlls if you aren't doing so already.
Also, the idea of the translators is that you will have to define your own format and write the code in the translator to convert that to a sequence file using the TestStand API.
Hope this helps,
-Doug
12-11-2008 10:28 AM - edited 12-11-2008 10:33 AM
Hi, all,
The very simplest way to proceed is going to be to import the XML format that TestStand supports already and that Dr. Doiron posted. Is it possible to export an existing sequence file in that format, so that we can reverse-engineer the XML schema?
Thanks,
- Steve.
P.S. PLEASE PLEASE PLEASE, NI, document the XML schema! Thanks, -S.
12-11-2008 10:46 AM
Steve,
Yes you can save your sequence file in XML format and take a look at it using the "Sequence Flie Properties".
12-12-2008 09:05 AM
Hello Steve,
I reread my last message and I'm not sure it's clear. I meant to say, you can absolutely save in the XML format using the "Sequence File Properties" and then open with another program to view the XML code.
Happy Holidays everyone!
12-12-2008 09:17 AM
David,
Thanks for the info. I took a look at the XML file for one of our scripts, and it's, uh, challenging. I think we may have to re-open the option of emitting our own script format and writing a translator, or using a Java-ActiveX bridge like JACOB .
Any thoughts on the tradeoffs between these?
Thanks,
- Steve.
12-15-2008 08:12 AM
Hello Steve,
Unfortunately I do not know enough about using a bridge like that to give you an informed answer. I can tell you that it's most likely not offically supported. That doesn't mean it won't work, just that we don't have the resources to dedicate to that use case to support it officially.
I would recommend the translator if you must remain solely in Java.
12-17-2008 09:59 AM
SPM,
What sort of documentation were you looking for on the XML schema? Documentation for the XML schemas of the following can be found in <TestStand>\Components\Schemas\Files
In addition, the schema for XML reporting can be found in <TestStand>\Components\NI\Models\TestStandModels and consists of two files
If this documentation is not enough, please let me know what you would like to see, or what you need, and we'll do our best to provide it.
12-17-2008 10:48 AM
Hi, Josh,
The <TestStand>\Components\Schemas\Files directory isn't in TestStand 4.1. The schemas document the structure of the XML, but not its semantics (except by what I can guess.)
- Steve.
12-29-2008 03:28 PM
Hi, I'm trying to use the VC-XMLTranslator in the TestStand 4.1\Examples. I modified the XMLTranslator.cpp file to import other step type from xml and it works but i cant figure out how to add information into the steps. eg I want to add a SequenceCall step so i add this code in the XML file :
<Step name="CallAcknowledge" type="SeqCall">
</Step>
and it works , now how can i tell him which sequence file it has to call? i tried this way:
<Data dataProperty="SeqName" type = "string">
<Value>
"Acknowledge"
</Value></Data><
Data dataProperty="UseCurFile" type = "bool"><Value>
true
</Value></Data>
<Sequence name="Acknowledge">
</
Sequence>
but it's not working and it seems the only values i can modify are the ones in the Propriety Browser but for a SequenceCall i need values in the Module window 😞
does anybody know how to do it or anybody has a dll based on the example to transalte more steps from XML?
thank you
regards
Luca
10-27-2009 08:52 AM
Hi,
I generates my .seq file from an external program. I used a model based testing program called MaTeLo from All4tec.
All4tec develops the product MaTeLo to help in testing activities. MaTeLo offers a huge gain of engineering productivity by providing a tool chain for modeling tests, automatically derive test plans and calculate quality indicator of the system under test as test coverage, reliability.
With this product, you can automatically generate several test cases for TestStand in few seconds. So you can exploit 100% bandwidth of your test bench for execute a huge different number of .seq files.
I advise you to look this product.
I think that MaTeLo is a very interesting and productive solution for what you want to do.
Mike