NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using COM server to call tests in TestComplete

Solved!
Go to solution

Hi,

 

I'm using the COM adapter to call tests in TestComplete.  I could always successfully call and run the first test using the Sequence Call, but when I try calling the second test with another Sequence Call I get the message "Cannot launch another instance of this application" and ""Create New Object" in automation call failed.
Server execution failed [Error Code: -17502] "

 

I then tried using the Step Load and Unload option in the Run Option and I got a different message "IntegrationObj = null"

 

My 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

Get property result

 

Thank you for the assistance.

 

0 Kudos
Message 1 of 4
(3,580 Views)

It sounds like the COM server you are using does not support the creation of multiple instances of the server. One alternative is that you can do the Create in your root sequence (storing the reference in a local variable) and pass the object reference as a parameter to your subsequences and have them use that rather than creating new instances. For the specific requirements of the COM server you are using, you might want to contact the developer of that server. I'm not familiar with TestComplete.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 4
(3,562 Views)
Solution
Accepted by topic author ph2

Thank you Doug, I will try that.

0 Kudos
Message 3 of 4
(3,560 Views)

Hi,

 Can you please help me in connecting testcomplete with teststand for running testcomplete script tests on teststand.

It will be really helpful.

0 Kudos
Message 4 of 4
(765 Views)