NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Splitting a test in two

You probably will have to ask the question first part or second part, unless you can automatically detect that you can proceed to the second part. Then you call the relavant sub sequence depending which part you need to run. That's the easily bit.

 

The fun bit would be to generate a result which is the combined results of the two runs. This is going to depend how you have have stored your original results so that you can reload them to either add the second part of the results or do an extra report generation.

 

I might be inclined to store the results in a database and then maybe retrive the two results off line with some sort of database query to generate a single report.

 

Or you could in the Cleanup, store the first parts' ResultsList in say StattionGlobals or possible in a database (not sure about the database), then on the second part during the Cleanup of the MainSequence, retrieve them from StationGlobals and stitch the two together then generate the report as normally which will be the complete set of results (part 1 and part 2).

 

Regards

Ray Farmer

 

 

Regards
Ray Farmer
Message 11 of 14
(1,085 Views)

Yeah

 

Ray called it the fut bit, i called it crazy !

My idea was the same

In this thread you will find an answer how to save the hole result list object as binary to file drive

later you can reload it and add it to your "second" sequence.

http://forums.ni.com/ni/board/message?board.id=330&thread.id=18207

 

While driving home i thought an other solution could be to add some Batch feature to your sequence file(s)

a master sequence file calls your Sequence once in a batch. when it enters step 5 it send a message to the master.

the next step should be a Messagebox or WaitForNotifiy to proceed with step 6.

When the master receives the notofication it instances a new Execution of your sequnce in the batch. and so on ....

Now there are n - Execution hanging in the Messagebox or WaitForNotify  so bring them to finalize by enter a button or sending a notification by the master.

Thats it.

 

Now its time to end! I am going to holiday tomorrow 🙂

See you in next week

 

Juergen

 

 

 

 

 

   

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 12 of 14
(1,071 Views)

Hi ,

 

Just an idea.

Slave.seq should be your stuff.

Master.seq is calling Slave.seq and both files must be in same folder

 

Master should be started by TestUUT (F5)

 

Any feedback would nice

 

Regards

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Download All
0 Kudos
Message 13 of 14
(1,006 Views)

 

"... I am not sure how to marry up the data from the two partial tests as the current file name scheme is "modelNumber_[serialNumber]_yyyymmdd_hhmmss.html"."

 

Have you considered setting the Report Options to "append". This would have the disadvantage that requires you to drop the timestamp from the report file name, but the advantage is that no further time consuming database work would be needed... You would be done.

 

Another suggestion is to include the Pass/Fail "status" as part of the report file name.

 

 

Hope this helps, 

Eugene

0 Kudos
Message 14 of 14
(989 Views)