Hello there,
If I run Test Suite from Jenkins at Linux server, in log I can see following outputs:
/PATH%Project.prj/Test Suites/Logging.groovy: 1 Groovy:unable to resolve class com.kms.katalon.core.annotation.SetUp
/PATH%Project.prj/Test Suites/Logging.groovy: 2 Groovy:unable to resolve class com.kms.katalon.core.annotation.SetupTestCase
/PATH%Project.prj/Test Suites/Logging.groovy: 3 Groovy:unable to resolve class com.kms.katalon.core.annotation.TearDown
/PATH%Project.prj/Test Suites/Logging.groovy: 4 Groovy:unable to resolve class com.kms.katalon.core.annotation.TearDownTestCase
/PATH%Project.prj/Test Suites/Logging.groovy: 13 Groovy:class com.kms.katalon.core.annotation.SetUp is not an annotation in @com.kms.katalon.core.annotation.SetUp
/PATH%Project.prj/Test Suites/Logging.groovy: 21 Groovy:class com.kms.katalon.core.annotation.TearDown is not an annotation in @com.kms.katalon.core.annotation.TearDown
/PATH%Project.prj/Test Suites/Logging.groovy: 29 Groovy:class com.kms.katalon.core.annotation.SetupTestCase is not an annotation in @com.kms.katalon.core.annotation.SetupTestCase
/PATH%Project.prj/Test Suites/Logging.groovy: 37 Groovy:class com.kms.katalon.core.annotation.TearDownTestCase is not an annotation in @com.kms.katalon.core.annotation.TearDownTestCase
If I go to the Logging TestSuite, to the Script mode I have:
import com.kms.katalon.core.annotation.SetUp
import com.kms.katalon.core.annotation.SetupTestCase
import com.kms.katalon.core.annotation.TearDown
import com.kms.katalon.core.annotation.TearDownTestCase
/**
* Some methods below are samples for using SetUp/TearDown in a test suite.
*/
/**
* Setup test suite environment.
*/
@SetUp(skipped = true) // Please change skipped to be false to activate this method.
def setUp() {
// Put your code here.
}
/**
* Clean test suites environment.
*/
@TearDown(skipped = true) // Please change skipped to be false to activate this method.
def tearDown() {
// Put your code here.
}
/**
* Run before each test case starts.
*/
@SetupTestCase(skipped = true) // Please change skipped to be false to activate this method.
def setupTestCase() {
// Put your code here.
}
/**
* Run after each test case ends.
*/
@TearDownTestCase(skipped = true) // Please change skipped to be false to activate this method.
def tearDownTestCase() {
// Put your code here.
}
/**
* References:
* Groovy tutorial page: http://docs.groovy-lang.org/next/html/documentation/
*/
But, I don’t even use Script mode for Test Suites, only “Main” mode.
Shall I really need that Script page to be filled with code above? Is this script added automatically by Katalon? Or maybe there is other option to hide these logs from execution?