Getting error "GROOVY:UNEXPECTED CHAR: 0X0 @ LINE 1 COLUMN 1

Getting error "GROOVY:UNEXPECTED CHAR: 0X0 @ LINE 1 COLUMN 1 when trying to run test cases

Path specified as
C%%Users%jbuckner%Katalon Studio%Krispy Kreme%PreSell.prj/Libs/TempTestCase1579103459698.groovy: 1 Groovy:unexpected char: 0x0 @ line 1, column 1.
Latest plugins responses: []
/C%%Users%jbuckner%Katalon Studio%Krispy Kreme%PreSell.prj/Libs/TempTestCase1579103459698.groovy: 1 Groovy:unexpected char: 0x0 @ line 1, column 1.
/C%%Users%jbuckner%Katalon Studio%Krispy Kreme%PreSell.prj/Libs/TempTestCase1579103459698.groovy: 1 Groovy:unexpected char: 0x0 @ line 1, column 1.
/C%%Users%jbuckner%Katalon Studio%Krispy Kreme%PreSell.prj/Libs/TempTestCase1579103459698.groovy: 1 Groovy:unexpected char: 0x0 @ line 1, column 1.

hi

should there be / instead of % like
C:/Users/jbuckner/Katalon Studio/Krispy
not sure what you are doing :slight_smile:

This is what is showing

hello,

are you able to show 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.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(’’)

WebUI.maximizeWindow()

WebUI.navigateToUrl(‘https://kkd-qa.kktestkitchen.com/’)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_OK’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Sign In Join Rewards’))

WebUI.setText(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_signin_email’), ‘jbuckner+RegOrder@sagepath.com’)

WebUI.setText(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_Password’), ‘sage123’)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_singin_Submit’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/button_John’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_My Card_1’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Add Funds’))

WebUI.selectOptionByValue(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/select_Amount’),
‘35’, true)

WebUI.setText(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_Amount_ctl00plcMaintxtCvvCode’),
‘111’)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_SignIn Submit’))

not_run: WebUI.delay(5)

WebUI.verifyElementVisible(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/div_Funds added successfully’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Order Now’))

WebUI.switchToWindowUrl(‘https://kkd-qa.kktestkitchen.com/shop/order-start?sn=45’)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/img_1’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Change’))

WebUI.setText(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_Deliver To_txtPickupAddress’),
‘High Point’)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_Search For Closest Store_ctl00plcMain_7db9be’))

WebUI.rightClick(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Pickup Here’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_Time_ctl00plcMainbtnSubmitForm’))

WebUI.selectOptionByValue(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/select_123456789101112131415161718192021222_146fc0’),
‘1’, true)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Add’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/img’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_442_ctl00plcMainbtnCheckout’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/input_Credit Debit Card_payment-type’))

WebUI.scrollToElement(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/span’), 0)

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/span’))

WebUI.click(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/a_Place Order’))

WebUI.verifyElementText(findTestObject(‘Object Repository/Page_Krispy Kreme - Doughnuts Coffee Drinks/h1_Your Order Has Been Placed’),
‘JUSTIN, YOUR ORDER HAS BEEN PLACED!’)

It happens for all my scripts

hi,

odd for me,
something related to KS, not sure
try to clean your project
Project --> Close And CleanUp

1 Like

It worked for me. Thanks for the help. :slight_smile: