NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

create step type for a COM step

Solved!
Go to solution

Hi,

 

I'm using the COM adapter to interface with TestComplete.

My current setup is I have a Master sequence file that contains two calling sequence files ( one for each test).

The individual called sequence file have 4 steps as listed:

 

Get Property: Create new object

Calling a method to open project

Call method to run test, and pass parameter to TestComplete

Get property result

 

My problem is if I want to pass a different parameter in the Call method to run test Step, I have to create another sequence file to do this.

 

Is there a way to create a single Step Type to call method, run the test and pass parameter to TestComplete?  and how will it affect the other steps in this sequence file (e.g. Create new object, open project, Get property resut)?

 

Thanks!

0 Kudos
Message 1 of 9
(4,065 Views)

Why do you have to create another sequence file? why can't you just create another step? And I'm not sure exactly what you mean by "pass a different parameter" different than what?

 

-Doug

0 Kudos
Message 2 of 9
(4,063 Views)

Hey ph_here,

 

You don't have to create a new sequence for this.  Just use the sequence parameters to change the data.  So basically in the "Call method to run test step" pass the parameter as Parameters.MyValue.  Then when you call the sequence you just pass a different value as the parameter.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 9
(4,060 Views)

Jigg,

 

I tried to copy the same called sequence file step  in the Master file, when I changed the sequence parameter tab in the Calling sequence file, it overwrites the parameter value.  And my other called sequence file step in the Master file doesn't work anymore.

 

Can I send you my screen captures?

 

Thanks,

 

ph

0 Kudos
Message 4 of 9
(4,056 Views)

Yes attach screen captures here.  I think in order to completely understand I need to define what I think you are talking about:

 

You have a sequence file with a sequence in it.  That sequence has 4 steps using the COM adapter as described in your first post.  From your MainSequence (located in a different file) you are calling this sequence with the 4 steps.  And you are worried that you have to create 2 of those sequences (with the 4 steps) because each time you call it you have to change a parameter going to one of the steps.  Am I correct?

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 9
(4,053 Views)

Jigg,

 

Thanks for your help.  Please see attached file.

 

Yes, I have to create another sequence file(with the 4 steps) if I need to pass a different parameter value to TestComplete via COM.

 

note: the parameters that are used by the 4 steps are all in the Parameter tab.

 

Regards,

 

ph

0 Kudos
Message 6 of 9
(4,047 Views)

Correct me if I'm wrong but it seems that you want two steps in "aess handle test2.seq" that are both calling "unit4 forward.seq".  You just want parm1 to change.  Is that correct?

 

If that is the case then just copy the SequenceCall_F step and repaste it.  Drag it to the location you want and then right click on it and select Specify Module.  In there you should see a list of parameters, the same ones in "unit4 forward.seq."  Just change parm1 to the value you want it to be.  You will have to unselect use default.

 

Is this what you are looking for?

 

Thanks,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 7 of 9
(4,041 Views)
Solution
Accepted by topic author ph2

Jigg,

 

Yes, I think it worked!!  Thank you so much!

 

Question: to chaange the param1, one needs to specify module and change the value in Edit Sequence Call window under the parameter table.

Is there a way to build a easier user interface like the Synchronization->Wait -> Wait Step Configuration window,  where you can just put in the parameter value, and that's it.

 

Thanks,

 

ph

 

 

 

0 Kudos
Message 8 of 9
(4,036 Views)

Newer versions of TestStand allow for that.  It was introduced in TestStand 4.0 where you could just have a pane and enter values like that.  Glad it worked.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 9 of 9
(4,030 Views)