05-20-2011 09:17 AM
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!
Solved! Go to Solution.
05-20-2011 10:09 AM
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
05-20-2011 10:42 AM
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,
05-20-2011 11:51 AM
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
05-20-2011 12:47 PM
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?
05-20-2011 02:28 PM
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
05-20-2011 02:51 PM
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,
05-20-2011 03:58 PM
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
05-20-2011 04:22 PM
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.