Calculated field not being populated

2 posts, 0 answers
  1. Rohit
    Rohit avatar
    10 posts
    Member since:
    Oct 2012

    Posted 05 Dec 2012 Link to this post

    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
  2. Plamen
    Plamen avatar
    8 posts

    Posted 06 Dec 2012 Link to this post

    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.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top