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

Calculated field not being populated

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rohit
Top achievements
Rank 1
Rohit asked on 05 Dec 2012, 04:21 PM
Hi, I'm trying to run a test on a webpage which contains a calculated field. It is calculated as product of other 2 user fields when user enters the numeric value in the input fields.
For e.g. User enters numeric value in field A & B and Field C is calculated as product of A and B and auto populated. It runs fine on the website. But when i run the teststudio test case, it enters value in field A & B, but Field C is not auto populated, This causes the test case to fail. How can I cause the the field to auto populate correctly and pass the test case.

Thank You,
Rohit Pillai

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 Dec 2012, 06:20 PM
Hello Rohit,

It seems to me that the problem is probably that an event associated with these field controls is not getting fired. There are several possible workarounds for this.

    1. Settings the text property to a certain value is very different from a real user typing into these fields, so the first thing I'd like you to try is enabling the 'SimulateRealTyping' property for the two "Enter Text" steps in the Step Properties
    2. If your application is taking time to perform calculations or communications after entering the text, you can try to overcome this by adding an AJAX timeout to each "Enter Text" step.
    3. You can also try recording a "Tab" press after the typing action.
    4. If it still doesn't work - you might have to manually fire the event as seen in this article.

If these suggestions do not resolve your issue, we will need more information about your test scenario. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace using FiddlerCap and send it to us in a zip file. A Jing video demonstrating the issue may also help us to better understand what is happening. If you deem that information too sensitive for this forum, you can create a support ticket and attach it there. Thanks for providing the information we need to best assist you.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Rohit
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or