Ask a Question

What is the best way to reuse Keyword Test

SOLVED
sam649
New Contributor

What is the best way to reuse Keyword Test

Hi,

My main project contains a utility project which contains many Keyword Tests. I would like to reuse these Keyword Tests inside my testing projects. However, I don't want to import the Keyword Tests to my testing projects because I don't want to pollute my testing projects with Keyword Tests of the utility project.

So, my question is: is there a way to call the Keyword Tests from another project without importing them?

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: What is the best way to reuse Keyword Test

Turning them into scripts won't help.  You'll still need to teach the main project that the utility scripts exist, and that still means sharing.

 

I think a clean way to do it would be to make a folder in the main project called Shared Tests or Utilities or something and put them all in that folder.  


Marsha_R
[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

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: What is the best way to reuse Keyword Test

You can share them this way without copying them to every project.

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/project-items/sharing...


Marsha_R
[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
sam649
New Contributor

Re: What is the best way to reuse Keyword Test

Thanks Marsha for your reply,

The problem with that sharing is that my testing project will get polluted with Keyword Test files from the other project. So, it could look messy if I have a lot of Keyword Tests to share. So, is there a way to avoid sharing, and can still use the Keyword Test? I am thinking of converting all Keyword Tests to scripts. With scripts, I don't have to share it inside my testing project. Would you think whether it could be a good solution, best practice...?

Marsha_R
Community Hero

Re: What is the best way to reuse Keyword Test

Turning them into scripts won't help.  You'll still need to teach the main project that the utility scripts exist, and that still means sharing.

 

I think a clean way to do it would be to make a folder in the main project called Shared Tests or Utilities or something and put them all in that folder.  


Marsha_R
[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

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: