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.
- Katalon Studio version 7.4.0 onwards.
- TestProject sample Project
- Basic understanding of Junit and TestNG.
- Junit/TestNG plugin.
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.
- Download a TestProject sample project.
- Import all the required jars(build.gradle) Here
- Add all your project file inside Include >> Script >> groovy.
-
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();
- Prepare TestNG.xml file by adding class name.
- Prepare the test cases by adding TestNG or Junit Keywords
- Run the test execution. Here
- Verify test execution result. Here






