This is a migrated thread and some comments may be shown as answers.

Setting a value to text box

9 Answers 457 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bhagyashree
Top achievements
Rank 1
Bhagyashree asked on 05 Aug 2016, 12:22 PM

Hi,

I am new to Telerik test studio.

 

For a registration page, am entering the email field and also extracting the input value, it is passing and while script execution also it is visible that the value is being entered in the field. But when register button is clicked, it displays error that email field is not entered.

 

How come it is not being passed, when it is visible in the application while running that it is being entered.

 

Please help

 

9 Answers, 1 is accepted

Sort by
0
Abdul
Top achievements
Rank 1
answered on 08 Aug 2016, 08:05 AM

Same Issue here. I was able to pass and enter the value in text field but when I clicked on Login button, application is not accepting the entered value and instead considering as there is no value in text field and throwing validation error

 

@Telerik Team ... Please help us on this

0
Chris
Top achievements
Rank 1
answered on 08 Aug 2016, 09:47 PM

Do you have some type of server/asynchronous validation that may be preventing you from proceeding passed the Register button click? Reason I ask is maybe the return call from the verification has not came back yet (maybe to see if that email is available/exists) and maybe you have to do a "Wait" for the call to come back. Not too sure if this will help but would like to know how you got around this issue...

 

 

0
Chris
Top achievements
Rank 1
answered on 08 Aug 2016, 09:50 PM
Also make sure the element/text field you're checking the value for is the correct one; you may be targeting the wrong element which could explain why it's acting like a value doesn't exist... ?
0
Nikolay Petrov
Telerik team
answered on 10 Aug 2016, 08:30 AM
Hi Bhagyashree,

Thank you for your interest in Test Studio.

Depending on the application after recording the step with text input the one have to check from test step properties - "SimulateRealTyping" option. This will trigger if any events are attached to the input.

Let me know if that works for you.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul
Top achievements
Rank 1
answered on 11 Aug 2016, 12:24 PM

Well, the element is identified properly by telerik but only during run time after we set the value and click on run, value was not identified by application and instead giving us notification to enter the value in field although its there (Strange !!!)

Also I am giving wait statement before and after setting the value in text field. I don't think that would cause any problem while setting value in field.

"SimulateRealTyping" option is also NOT helping. It's entering character by character of string value in text field but after run, notification again pops up asking us to enter the value in field.

 

Attached the screenshot for understanding scenario

 

0
Chris
Top achievements
Rank 1
answered on 11 Aug 2016, 09:50 PM

That is strange. Looks like your validation message is looking for a number... is that a general error message? maybe the value type is somehow being saved as a string rather than an integer... ?

0
Nikolay Petrov
Telerik team
answered on 16 Aug 2016, 08:26 AM
Hello Abdul,

After you enter the value, where do you click to trigger the validation of the text? Try to enable this "Click" step property "SimulateRealClick". It will trigger the event responsible to this value validation as well.

The entered values always are interpreted as strings first. The developer in the background application logic have to parse it to a number explicitly. In this case I think the value is not taken at all - that's why the validation can't pass.

Is it possible to reproduce this on a public facing application? If so - share the link, please.

Let me know if this solves the issue.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 25 Aug 2016, 01:37 PM

Hi Nikolay,

 

I tried with the provided workaround and made the developers look into this, but still no go.

Even they do not have solution to this

 

Can i create a support ticket to fix this issue right away so that i can share my screen and explain you more. Unfortunately i am not allowed to share the credentials or application related things outside network

 

Thanks

0
Nikolay Petrov
Telerik team
answered on 30 Aug 2016, 10:46 AM
Hi Abdul,

Next thing to try is to record a "Click" step - outside the element and place it in the test before the validation step. The purpose of this step will be to loose the focus of the input element. This will trigger events that will set its value to the entered one and the validation step should pass.

Try this - if it does not work and you want to add more specific details as video of application log - open a ticket, please.

Let me know if this helps.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Bhagyashree
Top achievements
Rank 1
Answers by
Abdul
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Nikolay Petrov
Telerik team
Abdul Khader
Top achievements
Rank 1
Share this question
or