NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

.seq file generation from an external program

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

Message Edited by dug9000 on 12-11-2008 10:11 AM
0 Kudos
Message 21 of 31
(2,463 Views)

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.

Message Edited by SPM on 12-11-2008 10:33 AM
0 Kudos
Message 22 of 31
(2,455 Views)

Steve,

 

Yes you can save your sequence file in XML format and take a look at it using the "Sequence Flie Properties".

With warm regards,

David D.
Message 23 of 31
(2,444 Views)

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!

With warm regards,

David D.
0 Kudos
Message 24 of 31
(2,413 Views)

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.

 

0 Kudos
Message 25 of 31
(2,411 Views)

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.

With warm regards,

David D.
0 Kudos
Message 26 of 31
(2,380 Views)

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

  • SequenceFile
  • PropertyObjectFile
  • Types
  • Common

In addition, the schema for XML reporting can be found in <TestStand>\Components\NI\Models\TestStandModels and consists of two files

  • Report.xsd
  • PropertyObject.xsd

 

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.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 27 of 31
(2,352 Views)

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.

 

0 Kudos
Message 28 of 31
(2,345 Views)

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

0 Kudos
Message 29 of 31
(2,240 Views)

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

0 Kudos
Message 30 of 31
(1,857 Views)