NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting Multiple Sequences

Hi,

 

I would like to know if it's possible to insert multiple sequences, rather than just one sequence at a time in the sequence pane.  I create libraries of sequence calls and some of these libraries contain up to 2000 individual sequences, which I call  test functions.  Rather than copying the sequence names from a Word document and pasting them when I Insert Sequence one at a time, I would like to insert all of the sequence references at one time.  This could save me a considerable amount of time in defining the set of sequence names.  Thank you.

0 Kudos
Message 1 of 6
(2,988 Views)

I would really appreciate it if anyone knows anything about this.

0 Kudos
Message 2 of 6
(2,948 Views)

I'm not sure that i fully understand your request here:


@peterlakey wrote: ...I would like to know if it's possible to insert multiple sequences, rather than just one sequence at a time in the sequence pane....

If these 2000 sequences already exist in another sequence file, why create and add them to your current sequence file? Could you use a template step that references a sequence from the other file to allow users to easily add test functions without creating duplicate sequences?

 

If there's no way around adding all of the sequences to the current file, a custom tool that uses the API to generate a template sequence file that contains all of the sequences should be possible to make. This example is probably a good starting place.

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
Message 3 of 6
(2,941 Views)

Thanks for the response.  Let me try to clarify my inquiry.  I have a large set of what I will call test function references - they are just names.  These references are linked to software requirements.  I maintain these references (names) in either a Word document or Excel document.

Test_Function_1

Test_Function_2

….

Test_Function_2000

What I am trying to do is import these references into TestStand so they all show up in the Sequence pane in TestStand.  Prior to this I had to manually create 2000 TestStand sequence by selecting Insert Sequence and naming them 1 by 1.  I would like to export the list of 2000 references from Word or Excel to an appropriate format and have then all read into TestStand so that the sequence names show up there and I can write test code for each of them in TestStand.  I just don't want to manually create 2000 sequence names.

0 Kudos
Message 4 of 6
(2,932 Views)

Yeah, this should be completely possible using the API methods mentioned above. Here's one potential option:

  1. Create a sequence file that uses the property loader step to read in all of your test function names from excel and store them in an array
  2. Use the TestStand API to create a new sequence for each name and insert them into the target sequence file
  3. Add the sequence file as a custom tools menu item so it's easily accessible
https://www.linkedin.com/in/trentweaver
0 Kudos
Message 5 of 6
(2,923 Views)

Thanks very much.  I'll give this a try.  I figured it was achievable using the TestStand API I just didn't know how to do it.

0 Kudos
Message 6 of 6
(2,920 Views)