Using the local data table to pass a value to a child test

6 posts, 0 answers
  1. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 13 May 2011 Link to this post

    Hi,
    I have a parent test that calls a child test as a step.
    The parent test has the local data table with one column called "Schedule Description"

    The child test has no data of its own, but I have set the test's property 'InhertitParentDataSource'.

    When I run the parent test it fails with

    '13/05/2011 15:38:17' - Error attempting to execute a Test As Step. Details:'13/05/2011 15:38:17' - System.NullReferenceException: Object reference not set to an instance of an object. at ArtOfTest.WebAii.Design.Execution.ExecutionContext.get_ActiveDataRows() at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteDataDrivenTest(Test test, BaseWebAiiTest codeInstance) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(Test test)'

    Presumably I haven't set something up correctly.

    Thanks

    Clive

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 13 May 2011 Link to this post

    Hello Clive,

    Thank you for contacting us.

    I've seen such an exception with the 2010.3 release but I believe we've addressed that with the new R1 version. Have you considered upgrading?

    Greetings,
    Konstantin Petkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 23 May 2011 Link to this post

    Hi,
    This had been working fine, so I don't think I should have to pay for an upgrade to fix it.
    Is there a fix for it that I can use with my existing installation?

    Clive
  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 25 May 2011 Link to this post

    Hello Clive,

    Please try the latest internal build (labeled 2010.3.1607) of the previous release. I looked at the source history and noticed a bug fix that can help and we've introduced in March.

    All the best,
    Konstantin Petkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  5. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 25 May 2011 Link to this post

    Hi,
    I've installed 2010.3.1607. but still no joy.

    Clive
  6. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 25 May 2011 Link to this post

    Hello Clive,
        I'm not sure the problem is at all related to data binding. Typically when you're trying use data-binindgs that don't exist you get an exception stating "column doesn't exist" or something along those lines. Try databinindg the child test itself and rerun it. If the same exception still appears then the problem is probably elsewhere (probably in a coded step).

    Best wishes,
    Stoich
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!