I am working on a report as a new employee in my company, this report is for me to learn about Katalon and automation itself. This report is a web-based report and how the program works is as such:
The Script:
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys
WebUI.openBrowser(‘’)
login stuffs
WebUI.click(findTestObject(‘Object Repository/52/52.002/Page_Operasional Perum Jamkrindo/input_Password_Submit’))
WebUI.delay(3)
WebUI.click(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/a_SIE’))
WebUI.click(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/a_PUSAT’))
WebUI.click(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/a_PENERBITAN SERTIFIKAT’))
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_12345678910111213141516171819202122232425262728293031’),
‘1’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_JanFebMarAprMeiJunJulAguSepOktNovDes’),
‘5’, true)
WebUI.setText(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/input_Periode Sertifikat_tglAwalProdukUnitB_f68dd7’),
‘2021’)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_123456789101112131415161718192021222_566da4’),
‘30’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_JanFebMarAprMeiJunJulAguSepOktNovDes_1’),
‘5’, true)
WebUI.setText(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/input_S_tglAkhirProdukUnitBank_Year_ID’), ‘2021’)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_BULANJANUARIFEBRUARIMARETAPRILMEIJUN_14387c’),
‘04’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_TAHUN2022202120202019201820172016201_ccbfbf’),
‘2022’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_-- Semua Bank Non bank --BANK AGRONI_5ceedb’),
‘15’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_-- Semua Kanwil --Kanwil 1 (Medan)Ka_7d99a3’),
‘3’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_-- Semua Wilayah Kerja --DKI Jakarta_f691fe’),
‘2’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_-- Semua LOB–KBG dan SuretyshipKons_a3a03b’),
‘3’, true)
WebUI.selectOptionByValue(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/select_-- Semua Produk --BRIGUNA BRICustoms_f4eb36’),
‘52’, true)
WebUI.switchToWindowTitle(‘:: :: PERUM JAMKRINDO :: ::’)
WebUI.click(findTestObject(‘Object Repository/52/52.002/Page_PERUM JAMKRINDO/input_Peruntukan_submit01’))
WebUI.closeBrowser()
What I find puzzling is when the test case is being run, item number 12 and 15, which is the set text does not input the correct numbers, even though I have recorded the number according to the test scenario provided by my company. More puzzlingly, my test case does not show any errors whatsoever, because in the Log Viewer it runs the supposed number, but in the “simulated browser” (I don’t know what it’s called), the browser running the test case, it does not input the supposed number.
What should I do? Thanks in advance.