Shared object repository

In the Katalon Forum I have found several posts asking how to share artifacts developed in a Katalon Studio project with others.

  1. Drunda Nibel wants automated code sharing
  2. how to create jar libraries from custom keywords
  3. Sharing test cases or keywords to multiple projects
  4. Sharing methods between tests
  5. Is it possible to share test case between different projects?
  6. sharing of test cases
  7. Is there any way to share test listeners and custom keywords code to multiple projects?

I suppose that many of the questioners above do not know what Git is and how it can help them.

Here I would define a word artifacts of a Katalon Studio project includes the following stuff:

  • Test Cases
  • Test Suites
  • Test Objects
  • Custom Keywords
  • Test Listeners

If you have a single Web Application and 2 or more people work together to test it, then the best solution is, as Vinh Nguyen mentioned in “Sharing test cases or keywords to multiple projects”, to create a Katalon Studio project and put it into a remote Git Repository. In the following figure, Alice and Bob share all artifacts of the project X via a Git remote repository. They will fully version-control the project and put tags to versions. The access to the Remote repository will be well administrated by the hosting services (GitHub, BitBucket etc)

Sharing project by remote Git repository

Perfect solution, isn’t it?

However, what would happen if your team has multiple Web applications to test and therefore you have created 2 or more Katalon Studio projects? It is quite likely, you would want to reuse some artifacts across projects.

In my humble opinion, among the types of test artifacts in Katalon Studio, only Custom Keywords is designed to be portable across projects. All the other types (Test Cases, Test Suites, Test Objects, Test Listeners) are not. I would not discuss this point here. I think this design decision is reasonable. I would be happy if only I can safely reuse my custom keywords across projects.

Here comes the new feature “Import/Export Keywords” comes in.

1 Like