Skip to content

katalon-studio-samples/Katalon-Migration-TestProject

Repository files navigation

Introduction:

This project demonstrates how katalon studio helps users to use their existing TestProject based project into Katalon Studio. it conatins some of the test cases for Web Mobile and API test migration.

Requirement

TestProject

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 uses OpenSDK with Junit 5 for building and execution of the test cases.

How to migrate:

  • Download a TestProject sample project.

image

  • Import all the required jars(build.gradle) Here

image

  • Add all your project file inside Include >> Script >> groovy.

image

  • Users have to fix all the errors.

  • Change Junit 5 annotation to TestNG/Junit 4.(KS does not support Junit 5 for now).

        @BeforeAll >> @BeforeClass
        @AfterAll >> @AfterClass
    
  • Add @Test Annotation before the method "void execute()".

  • Initialise Katalon Webdriver inside the @BeforeClass.

    For Web based application:

        WebUiBuiltInKeywords.openBrowser("");
    WebUiBuiltInKeywords.maximizeWindow();
    driver = DriverFactory.getWebDriver();
    

    For Mobile:

        String dirName = RunConfiguration.getProjectDir():
    MobileBuiltInKeywords.startApplication(dirName+"/App/APIDemos.apk", false);
    driver = MobileDriverFactory.getDriver();
    

image

  • Prepare TestNG.xml file by adding class name.

image

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

image

  • Verify test execution result. Here

image

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published