# groovy.lang.MissingPropertyException

**URL:** <https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883>\
**Category:** Integrations\
**Tags:** integrations, katalon-studio\
**Created:** [February 22, 2019, 12:04pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883 "2019-02-22T12:04:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![purshottam.sharma](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@purshottam.sharma](https://forum.katalon.com/u/purshottam.sharma)\
**Post date:** [February 22, 2019, 12:04pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/1 "2019-02-22T12:04:54Z")

</div>

Hi ,

I am trying to create the custom keyword where we can write the data into excel sheet but when i am running the code i am getting below error.

**Reason:**  
**groovy.lang.MissingPropertyException: No such property: Out for class: java.lang.System**  
**Possible solutions: out, out0, env, err, in0, in**

Please find the below code and suggest what changes required

package com.excel

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 com.kms.katalon.core.annotation.Keyword  
import com.kms.katalon.core.checkpoint.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  
import com.kms.katalon.core.testcase.TestCase  
import com.kms.katalon.core.testdata.TestData  
import com.kms.katalon.core.testobject.TestObject  
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS  
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI  
import org.openqa.selenium.Keys as Keys  
import internal.GlobalVariable  
import org.apache.poi.ss.usermodel.Cell  
import org.apache.poi.ss.usermodel.Row  
import org.apache.poi.xssf.usermodel.XSSFSheet  
import org.apache.poi.xssf.usermodel.XSSFWorkbook

public class ExcelData  
{  
@Keyword  
public void printstate()throws IOException  
{  
System.out.println(“hello…”)

```
}
@Keyword
public void demoKey(String name)
{
	FileInputStream fis = new FileInputStream("D:\\katalon\\Data.xlsx");
	XSSFWorkbook workbook = new XSSFWorkbook(fis);
	 
	XSSFSheet sheet = workbook.getSheet("Sheet1");
	
	System.Out.println("hello")
	int rowCount = sheet.getLastRowNum()-sheet.getFirstRowNum();
	Row row = sheet.createRow(rowCount+1);
	Cell cell = row.createCell(0);
	cell.setCellType(cell.CELL_TYPE_STRING);
	cell.setCellValue(name);
	FileOutputStream fos = new FileOutputStream("D:\\katalon\\Data.xlsx");
	workbook.write(fos);
	fos.close();
	
  }

```

}

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [February 22, 2019, 12:10pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/2 "2019-02-22T12:10:34Z")

</div>

![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/85af3eb685c913edb45ba02ef5a8d1c50c22a16e.png)

```auto
system.out.printLn(...

```

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [February 23, 2019, 5:58pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/3 "2019-02-23T17:58:28Z")

</div>

Just to be cautious.

The correct syntax is:

`System.out.println("Your text here !");`

Regards !

---

<div class="post-metadata">

**Author:** ![nitesh.kolamkar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nitesh.kolamkar](https://forum.katalon.com/u/nitesh.kolamkar)\
**Post date:** [April 28, 2020, 1:22pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/4 "2020-04-28T13:22:42Z")

</div>

Hi Team,

I am also getting a same issue when trying to acces an radio button , i tried many ways but getting below issue please help  
Reason:  
groovy.lang.MissingPropertyException: No such property: checked for class: Script1587984141192  
at Emms-1230-brandfilterissue.run(Emms-1230-brandfilterissue:54)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:169)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:142)  
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:91)  
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)  
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)  
at TempTestSuite1588068187447.run(TempTestSuite1588068187447.groovy:36)  
**My code 👎**

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.driver.DriverFactory  
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 plp.Resources  
import org.openqa.selenium.WebDriver  
import org.openqa.selenium.TimeoutException;  
import org.openqa.selenium.WebDriver.Timeouts;  
import org.testng.Assert  
import org.openqa.selenium.WebElement as WebElement  
import com.kms.katalon.core.webui.common.WebUiCommonHelper as WebUiCommonHelper  
import org.openqa.selenium.Keys as Keys

WebDriver driver=DriverFactory.getWebDriver();

Resources.clickonMobilecategory()  
Thread.sleep(2000)

WebUI.click(findTestObject(‘Object Repository/PLPpage/Mobiles\_color’))  
Thread.sleep(2000)

WebUI.click(findTestObject(‘Object Repository/PLPpage/mobiles\_brand\_apple’))  
Thread.sleep(2000)

[//WebUI.click](https://WebUI.click)(findTestObject(‘Object Repository/PLPpage/radiobutton\_high-to-low’))  
[//WebUI.waitForElementNotPresent](https://WebUI.waitForElementNotPresent)(findTestObject(“Object Repository/PLPpage/radiobutton\_high-to-low”), 5)  
[//Thread.sleep](https://Thread.sleep)(2000)

[//Thread.sleep](https://Thread.sleep)(2000)

//boolean visible= WebUI.verifyElementVisible(findTestObject(‘Object Repository/PLPpage/radiobutton\_high-to-low’))  
//println(visible)  
WebUI.waitForElementClickable(findTestObject(‘Object Repository/PLPpage/radiobutton\_high-to-low’),30)  
boolean click=WebUI.verifyElementClickable(findTestObject(‘Object Repository/PLPpage/radiobutton\_high-to-low’));  
println(click)

//WebElement element = WebUiCommonHelper.findWebElement(findTestObject(‘Object Repository/PLPpage/radiobutton\_high-to-low’),30)  
[//WebUI.executeJavaScript](https://WebUI.executeJavaScript)(“arguments[0].click”, Arrays.asList(element))

println(checked)

WebUI.click(findTestObject(“Object Repository/PLPpage/radiobutton\_high-to-low”));

object Xpath :- //ul[@class=‘items grayCheck’]/li[2]  
URL:- [https://www.emi.in/mobile-phones](https://www.emi.in/mobile-phones)

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 28, 2020, 10:03pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/6 "2020-04-28T22:03:59Z")

</div>

> [@nitesh.kolamkar](#):
>
> groovy.lang.MissingPropertyException: No such property: checked for class: Script1587984141192  
> at Emms-1230-brandfilterissue.run(Emms-1230-brandfilterissue:54)

What is `Emms-1230-brandfilterissue`? Is it your test case? Could you share the code?

The message is saying that something named `checked` is missing. Any typo?

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 9:34am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/7 "2020-12-03T09:34:55Z")

</div>

@kazurayam  
I got the same issue:  
Reason:  
groovy.lang.MissingPropertyException: No such property: get for class: Script1606987724779  
at test1.run(test1:60)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:393)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:384)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:363)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:355)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:251)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1606987823860.run(TempTestCase1606987823860.groovy:25)  
.

I use a keyword for input email with timestamp and then I want to verifiy if that specific email is added with a get method like:

WebUI.verifyElementText(findTestObject(‘Object Repository/Page\_Sales Funnel - [TexasLending.com/input\_Email](http://TexasLending.com/input_Email) Address\_email’), get.class(email))

I tryed like:  
WebUI.verifyElementText(findTestObject(‘Object Repository/Page\_Sales Funnel - [TexasLending.com/input\_Email](http://TexasLending.com/input_Email) Address\_email’), email.get(0))

Same error.

but for me Test1 is the name for my testcase.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 3, 2020, 9:43am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/8 "2020-12-03T09:43:33Z")

</div>

@costea.georgian89

It is not recommended to append questions to years-old posts. You should make a new Post for your case.

I need more information about your case. Please have a look at the following guidance.

> [@\[TIP\] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919):
>
> My test is BROKEN! NOTHING WORKS! HELP ME! Relax. We get it. We really do. There are some pretty smart and clever people on this forum, but you must realize, they are not magicians or wizards or gods. They cannot see your code, they can’t see your errors and they don’t even know what your AUT is meant to do even though it might seem perfectly obvious to you. So please relax and follow the advice below, before you start writing your post. The advice below will tell you the exact information …

When you copy&paste code fragments in the post, please use triple back ticks to make CODE BLOCK, like

 ![スクリーンショット 2020-11-30 11.00.05](https://europe1.discourse-cdn.com/katalon/original/2X/6/63701330ef286bf65f069ed910c3609a272043c4.png)

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 9:52am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/9 "2020-12-03T09:52:40Z")

</div>

@kazurayam  
Oki Doki thank your answers and sorry.  
I post here because was like my problem and I want thinking here will be more visible, I already made a post for 1 week and no answers and I need to resolve this error soon as possible.

My code

```auto
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.navigateToUrl('https://www.texaslending.com/')

WebUI.click(findTestObject('Object Repository/Page_TexasLending.com - When you think of m_ec7bcf/img_Simplify your search. Select your loan._410ce5'))

WebUI.delay(2)

WebUI.click(findTestObject('Object Repository/Page_Refinance Home Current Mortgage Rates_4ab5ec/img_Blog_do-not-smush'))

WebUI.delay(2)

WebUI.setText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_What is your current loan balance_fie_eccf68'),
	'653')

WebUI.click(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/img_What is your current loan balance_vc_si_5c602b'))

WebUI.delay(2)

WebUI.click(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/div_We currently do not loan in this area'))

WebUI.delay(2)

WebUI.delay(2)

WebUI.setText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_Zipcode_zip'), '75065')

WebUI.delay(2)

WebUI.click(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/img_We currently do not loan in this area.__d583fb'))

WebUI.delay(2)

WebUI.click(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/img_How did you hear about us_vc_single_ima_7c4a04'))

WebUI.setText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_First Name_fname'), 'test')

WebUI.setText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_Last Name_lname'), 'test')

WebUI.setText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_Email Address_email'), CustomKeywords.'email.email.populateEmail'())

WebUI.verifyElementText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_Email Address_email'),	populateEmail.get(0))

WebUI.click(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_Phone Number_field27977902'))

WebUI.setText(findTestObject('Object Repository/test2/Page_Sales Funnel - TexasLending.com/input_Phone Number_field27977902'),
	'1234567890')

WebUI.click(findTestObject('Object Repository/test2/Page_Sales Funnel - TexasLending.com/img_I agree to the Terms and Conditions and_928f25'))

WebUI.closeBrowser()

```

And my keyword which I use:

```auto
package email

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.annotation.Keyword
import com.kms.katalon.core.checkpoint.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
import com.kms.katalon.core.testcase.TestCase
import com.kms.katalon.core.testdata.TestData
import com.kms.katalon.core.testobject.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 org.openqa.selenium.Keys as Keys
import internal.GlobalVariable

public class email {
	@Keyword
	def populateEmail(){

		String myEmailAddress = "test" + System.nanoTime() + "@itest.com";
		return myEmailAddress;
	}
}

```

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 3, 2020, 9:56am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/10 "2020-12-03T09:56:21Z")

</div>

It seems you have changed your code already. The error log you posted above lost its value. I need the error log emitted by the latest version of your codes.

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 9:57am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/11 "2020-12-03T09:57:42Z")

</div>

Sorry here is the error message which I got after finish the execution:  
=============== ROOT CAUSE =====================

# For trouble shooting, please visit: [https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html](https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html)

12-03-2020 11:33:55 AM Test Cases/test1

Elapsed time: 56.276s

Test Cases/test1 FAILED.  
Reason:  
groovy.lang.MissingPropertyException: No such property: email for class: Script1606987724779  
at test1.run(test1:60)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:393)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:384)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:363)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:355)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:251)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1606988034113.run(TempTestCase1606988034113.groovy:25)

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 3, 2020, 10:09am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/12 "2020-12-03T10:09:23Z")

</div>

You uses many Test Objects in the `Object Repository`. I need them as well to reproduce your case on my side.

Is it possible to make a zip of your project and share it here?

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 10:13am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/13 "2020-12-03T10:13:07Z")

</div>

@kazurayam  
Here is a google drive link:

> **[Velocify.zip](https://drive.google.com/file/d/1T1EJ_i5llM3rBijbTKNCZ4RmUGNljq6N/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 10:35am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/14 "2020-12-03T10:35:17Z")

</div>

@kazurayam The test case is to add a different email every time and that I added the timestamp and then I want to check if this email is inputted because I will go to a DB page where I should search for this specific email inputted.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 3, 2020, 11:15am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/15 "2020-12-03T11:15:37Z")

</div>

I tried to run the test case in the project you zipped. The Test Case ran without error. Do you have any issue still?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 3, 2020, 11:19am UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/16 "2020-12-03T11:19:58Z")

</div>

Let me add an advice. The class name `alabal.alalbala` looks odd. It is not compliant to the Convention.

[Code Conventions for the Java Programming Language, 9 Naming Convention](https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html#:~:text=Class%20names%20should%20be%20nouns,such%20as%20URL%20or%20HTML)

> Class names should be nouns, in mixed case with the first letter of each internal word capitalized. Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).

So `alabal.Alalbala` would be better.

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 12:25pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/17 "2020-12-03T12:25:11Z")

</div>

@kazurayam

Check this sorry:

> **[Velocify (2).zip](https://drive.google.com/file/d/1BI_kMDXuhTUMII_eHgjVnW1t_oMlm8_s/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 3, 2020, 1:17pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/18 "2020-12-03T13:17:28Z")

</div>

I looked at Velocify (2).zip

When I executed the test1, I saw an Exception:

```auto
Reason:
groovy.lang.MissingPropertyException: No such property: email for class: Script1606987724779
	at test1.run(test1:60)
...

```

This Exception is thrown at the line #60 of test1 script:

```auto
WebUI.verifyElementText(findTestObject('Object Repository/Page_Sales Funnel - TexasLending.com/input_Email Address_email'),	
    email.get(0))

```

The cause is quite obvious. In the test1 script, you do not have a variable **`email`** defined.

I have no more words to say. I do not know what you meant by `email.get(0)`.

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 2:20pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/19 "2020-12-03T14:20:45Z")

</div>

@kazurayam I want to see if katalon input the specific email from keyword and then I want to get to verify.  
I am newbie here so if you can help me will be more than nice:)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 3, 2020, 2:32pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/20 "2020-12-03T14:32:15Z")

</div>

Note: I have not downloaded your code. I am looking at the code you placed in your posts above.

The email package and class do not appear to be imported into your test case. And I’m not sure what the hierarchy/structure is either, but you need something like this in your test case:

```auto
import email

```

In my code, I make my keywords static, which means I don’t need to say `@Keyword` and the methods are available to use like a global method:

Test Case

```auto
import static email

```

email package:

```auto
public class email {
	static def populateEmail(){

		String myEmailAddress = "test" + System.nanoTime() + "@itest.com";
		return myEmailAddress;
	}
}

```

But that still doesn’t explain what `email.get(0)` is meant to do. I don’t see a list/array called `email` anywhere.

---

<div class="post-metadata">

**Author:** ![costea.georgian89](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/costea.georgian89/32/15253_2.png) [@costea.georgian89](https://forum.katalon.com/u/costea.georgian89)\
**Post date:** [December 3, 2020, 2:36pm UTC](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883/21 "2020-12-03T14:36:28Z")

</div>

@Russ_Thomas  
I was found in another post where use get(0)) to return the input value and I was thinking maybe I can use the same method to get the specific email inputted, how I said I want to verify if this email is inputted.  
And thank you for the code

[Next page](https://forum.katalon.com/t/groovy-lang-missingpropertyexception/19883.md?page=2)
