Skip to main content

TestProject migration

This article demonstrates how Katalon Studio helps users migrate their TestProject project to Katalon Studio. The article also contains some of the test cases for Web, Mobile and API test migration.

Note:
  • Please note that the use case presented here is a suggestion only and should be implemented with caution. It has not undergone quality assurance testing and is not officially supported by our platform.

TestProject is an end-to-end automation tool that provides capabilities to automate Web, API, and Mobile applications. It is an open-source friendly tool built on top of Selenium and Appium. TestProject employs OpenSDK with Junit 5 for building and execution of test cases.

Migrate TestProject to Katalon Studio

You can refer to this demonstration video of the steps below.
  1. Download a TestProject sample project.download a TestProject project
    Here is a sample repository for the sample project: https://github.com/katalon-studio-samples/salesforce-katalon-sample.git
  2. Open Project Settings in Katalon Studio, import all required .jar files (build.gradle). You can refer to: Gradle Settings in Katalon Studio.import .jar files in Katalon Studio project settings
  3. Add all your project files inside Include > scripts > groovy.add projects Katalon Studio Test Explorer
  4. Resolve conflicts:
    • Change JUnit 5 annotation to TestNG/JUnit 4 (Katalon Studio currently doesn't support JUnit 5):

      @BeforeAll needs changing to @BeforeClass, @AfterAll needs changing to @AfterClass.

    • Add @Test annotation before the method void execute() and initialize Katalon Webdriver inside the @BeforeClass:resolve @Test and @BeforeClass conflict

      For Web based application:
      WebUiBuiltInKeywords.openBrowser("");
      WebUiBuiltInKeywords.maximizeWindow();
      driver = DriverFactory.getWebDriver();
      For Mobile application:
      String dirName = RunConfiguration.getProjectDir():
      MobileBuiltInKeywords.startApplication(dirName+"/App/APIDemos.apk", false);
      driver = MobileDriverFactory.getDriver();
    • Prepare TestNG.xml file by adding a class name:add class name to TestNG.xml

    • Prepare the test cases by adding TestNG or Junit Keywords.

  5. Run the test execution. You can refer to Execute tests with Katalon Studio overview.
  6. Verify test execution result. You can refer to View test results and execution logs in Katalon TestOps.verify test result with TestProject project
You have successfully migrated and executed test cases from a TestProject project.