Ask a Question

Executing Keyword tests via COM integration

mortenb
Not applicable

Executing Keyword tests via COM integration

Hello!



I have been struggling some days now with getting a COM integration with Testcomplete 7 to work as I'd like.



What I have accomplished so far is creation of the IntegrationObject, opening a projectsuite and runnning script routines. When I try to run keyword tests however, the integration always says the item could not be found.



When I have my integrationobject and have opened the correct projectsuite, I have tried both



integrationObject.RunProjectTestItem("MBS SmokeTest", "InstallMBS");



and



integrationObject.RunProjectItem("MBS SmokeTest", "InstallMBS");










I am 100% sure that the projectname and projectitemname parameters are correct, but both of these statements results in COMException with the text: Unable to find the specified element. Project: MBS SmokeTest, ProjectTestItem: InstallMBS

Are you even supposed to be able to run Keyword tests from the COM integration?






























1 REPLY 1
YMinaev
Staff

Hi,



I guess that your project does not contain the "InstallMBS" test item. Most probably, it just contains the "InstallMBS" keyword test. Use the RunTestByName method.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: