Ask a Question

Facing issue with COM calling keyword with parameter

SOLVED
Tarzan1990
Occasional Contributor

Facing issue with COM calling keyword with parameter

Hi there,

 

I'm facing issue calling keyword with parameters via COM services 

If anyone can help quickly would be of great help

 

IntegrationObj.RunProjectTestItem(ProjectNameProjectTestItemName)

has only provision to pass keyword name, how to pass parameter ? is there any better alternative ?

 

Thanks

https://support.smartbear.com/testcomplete/docs/reference/project-objects/automation/integration/run...

3 REPLIES 3
AlexKaras
Community Hero

Hi,

 

I would ask Support via the https://support.smartbear.com/testcomplete/message/ form.

And I would appreciate it if you update this thread with their reply.

 

Personally I have no better idea at the moment than try the GetObjectByName method (https://support.smartbear.com/testcomplete/docs/reference/project-objects/automation/integration/get...) to get the reference to the keyword test object, set its parameters and then run this keyword test. But this is just a quick idea that I did not verify.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Tarzan1990
Occasional Contributor

Hi  @AlexKaras

 

I'm not talking about the project variables. I wanted a solution for the keyword test item's parameter

 

Thanks

Hi,

 

I'm not talking about the project variables.

Obviously. But the idea was to obtain a reference to the Keyword Tests collection, then obtain a reference to the required keyword test, then obtain a reference to its parameters, set parameter's value and run this keyword test.

As I said, this is just a rough idea based on quick look through the documentation without any real code examples.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: