Table of contents
1.
Introduction
2.
Upload Test Scripts From Git Repository To Katalon TestOps
3.
Creating a Test Suite
4.
Updating a test suite
5.
Deleting a Test Suite
6.
Viewing Test Scripts
7.
Frequently Asked Questions
7.1.
What do you mean by a Test Suite?
7.2.
What happens if I delete a test suite by mistake?
7.3.
How do I sync the latest version of my Git repositories?
7.4.
Which are the two most popular automation tools for testing?
8.
Conclusion
Last Updated: Mar 27, 2024
Easy

Introduction to Organizing Tests in Katalon Studio

Author Lokesh Sharma
1 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

"For every minute spent in organizing, an hour is earned."

Welcome Ninja! We hope you are doing well.

Organizing stuff is an essential aspect of one's daily routine. Unorganized large systems can not work efficiently. A systematic scheme of work is the foundation of early success.

Introduction to Organizing Tests In Katalon Studio

It is no surprise that testing in Katalon may involve a large number of test scripts. Therefore, proper organization of test scripts becomes crucial. This step is necessary because a project may have multiple components. And each element may have different types of test scripts. So to find the required tests quickly and maintain a history of changes and updates done, test scripts are organized.

In this blog, we will discuss how we can organize the test scripts and learn to view them as per our requirements.

Upload Test Scripts From Git Repository To Katalon TestOps

For collaborative work and proper version control, test scripts are stored in GitHub. We organize our tests in Katalon TestOps and then push them to GitHub. When we need our test scripts for execution, we upload them from GitHub again.

So let us first learn about uploading test scripts from Git to TestOps.

You must have some tests first to upload :). GitHub supports integration with several platforms such as BitBucket, Azure Repos, GitLab, etc. You can have a project in any of these repositories.

 

Now follow the below steps to upload the test scripts successfully.

  1. First of all, make sure that you are signed in. Then open the project you are working on.
     
  2. Go to Script Repositories section inside the Configurations section. Click on Create Git Script Repository to create a new repository. You will be adding tests in this repository.
     
  3. You need to tell Katalon from which source you are bringing your project. A source-type drop-down list will appear where you can choose your version control tool. For example, GitHub, GitLab, BitBucket, etc.
     
  4. Now comes the time to link your Git repository to this repo. To do that, enter the URL of your GitHub repository in the Repository URL field.
     
  5. You will need to fill in two essential fields now. Your source repository username and your Personal Access Token. Make sure you fill these fields carefully. Personal access tokens are an alternative to passwords. A PAT provides an easy way to login credentials. You can get your PAT from your source repository account.
     
  6. Now it might be possible that you already have some test execution results present at the exact location with the same name as the ones being uploaded. You may not want to replace these results. So, to merge the results, tick the checkbox that declares, "Link existing test execution results with test cases having the same paths and names ."
     
  7. Last but not least, click Connect. This step will be followed by TesOps asking you to enter your project name and choose your branch. You may then describe your project if you want to.
     
  8. Click Create
     

It's done!! Congratulations, you have the test scripts successfully created in your TestOps repository.

Grouping similar items based on their properties is the foundation of efficient organization. We advise you to group similar test scripts as one test suite.

For example, you may group the test scripts related to user authentication or form acceptance testing.

So we will now look at test suites' creation, updating, and deletion. 

Creating a Test Suite

Follow the given steps to create a test suite.

  1. Inside your project, open Test Suites inside the Test Management tab. This tab is the place that stores all your test suites. 
     
  2. To add a new test suite, click the + Test Suite button. A dialog box will appear. It will ask you to give a name to your test suite, choose the repository it belongs to and finally add a new test case.
     
  3. Click Add. It adds the target test case to your test suite. Remember, you can only add one test case at a time.
     
  4. Click Create. Congratulations Ninja! You have successfully created a test suite.
     

Updating a test suite

Due to various reasons, you may want to change the name of your test suite. Adding or removing test cases is also a frequent activity. 

Follow the below steps to update your test suite.

  1. Open the Test Suites section again. Then click the TestOps tab. All of your created test suites will be visible to you. Select the test suite you want to update.
     
  2. You will see an Edit button in the top right corner of the screen. Click it.
     
  3. You can now change the test suite's name. You may add or remove test cases by clicking Add and Remove.
     
  4. Finally, click Save to confirm the changes and update the suite.
     

Deleting a Test Suite

You can delete unnecessary test suites if you want to remove them from your repository.

The steps are simple. Follow the instructions, and you can delete the test suite.

  1. Go to Test Management and Test Suite to view all the available test suites.
     
  2. Open the test suite you want to delete.
     
  3. You can find the delete button at the top right corner of the screen, next to the Edit button. 
     
  4. Click the button and confirm to delete the test suite.
     

Good going, Ninja! We have successfully uploaded test scripts to our TestOps repository and created test suites.

We will now learn to view the uploaded test cases and the suites created.

Katalon TestOps copies the folder-based view style of your script repository. This mirroring is done so you get a familiar environment to work in. 

Before moving on to the steps, we would like to give you a suggestion. Whenever you upload new test cases or test suites from GitHub, TestOps fetches the data and then displays it on the screen. However, this may take some time. In this case, we advise you to refresh your script repository.

Go to the Script Repositories page inside the Configurations tab. After selecting the script, click the "Refresh Test Suite Collection" button present at the top right corner of the screen. This step will refresh your test suite and all the test cases.

Viewing Test Scripts

Follow the below steps to view the uploaded test scripts:

  1. Go inside the Test Management folder. You can view the test cases and test suites here.
     
  2. Open the Test Cases page. Here you will find the Uploaded Data folder.
     
  3. The Uploaded Data folder, as the name suggests, stores all the uploaded data and folders. You can find your required test cases here.
     
  4. By clicking on a test case, you can view all the run results of the test, if any. Information such as Last execution, number of executions, Last updated, etc., is available for each test case.
     
  5. Now, go to the Test Suites page. Here you can see the information about every test suite that you click. It tells you the total number of test executions for the selected test suite. It also shows us when the data was last updated and executed.
     

Fantastic! Now you have done it all. You know how to upload test scripts, create and manage suites, and view test cases. Now it all comes down to your management skills. We suggest you structure your data as neatly as possible. This methodology will boost your efficiency and save you a lot of time.

Check out most important Git Interview Questions here.

Frequently Asked Questions

What do you mean by a Test Suite?

A test suite is a collection of test cases. By suite, we mean that the test cases inside it have similar functionalities. They might be related to the same part of the application which is to be tested.

What happens if I delete a test suite by mistake?

Do not worry. You do not lose any data even if you delete the wrong test suite. Katalon automatically creates a shell test suite that stores the data of your deleted test suite.

How do I sync the latest version of my Git repositories?

To sync the updated version of your Git repository to your testOps, you can refresh the TestOps. This method to refresh has been discussed earlier in this article. 

Which are the two most popular automation tools for testing?

Selenium and Katalon are the two most popular automation tools. However, selenium is faster than Katalon because of differences in its scripting language.

Conclusion

Hey Ninja! We hope you enjoyed reading this article. We believe you will now be able to easily manage test scripts and cases in Katalon TestOps. 

Before ending our discussion, let us summarize everything we learned in this article. We started by understanding the need for a proper organization of test cases. We then learned to upload test scripts from GitHub. We discussed the creation and management of test suites. And finally learned how to view test cases, suites, and execution results in Katalon TestOps.

In the end, we also discussed some frequently asked questions along with their brief answers.

We sincerely hope the above discussion helped you understand how to organize tests in Katalon Studio.

If you wish to learn more about Katalon and its various testing divisions, you can refer to blogs on web services test designmobile test designwebUI testing, and projects.

Visit our website to read more such blogs. Make sure you enroll in our courses. You can take mock testssolve problems, and interview puzzles. Also, you can check out some exciting interview stuff- interview experiences and an interview bundle for placement preparations. Do upvote our blog to help fellow ninjas grow.

Keep Grinding! 💪

Happy Coding! 💻

 

Live masterclass