Text field does not get the complete value from Global Variable

Hi,
I have a weird problem, I have global variables for username and password in my profile section.
When i choose the profile and run my tests, i get error on my login page because some characters get missing from the input value. For example if there is an email like abc@test.com, i will see abc@tst.com or ab@test.co.It is always random in case of missing characters.

I have already tried waiting for page load, waiting for element visible, adding custom delay, using send key instead of set text, adding execution time between each steps…
I have also tried giving direct input by set text.
But there are always some tests that fails because of this problem.
My tests were working fine and from last one month i am facing this problem.

Please give me an idea to solve this problem.

Hi Bilal not sure if this will help but I had similar problem which I fixed as follows:

1. Open Katalon then create & open a new test case

2. Open the test case in script view

3. Paste the following code into the test case & save

4. Run the test case

5. To view the output click on the ‘Console’ view

6. Edit //WebUI.sendKeys(findTestObject(‘Your_Test_Object’), PhoneNumber) to work with your test object

//Sends single character & pauses for 500 milliseconds

String phoneNbr = ‘555-123-1234’

for (i = 0; i < phoneNbr.length(); i++) {

String PhoneNumber = phoneNbr.charAt(i)

println('Send: ' + PhoneNumber)

//WebUI.sendKeys(findTestObject('Your\_Test\_Object'), PhoneNumber)

Thread.sleep(500)

}

1 Like

Thanks a lot. It worked for me

Glad I could help :wink: