This is a migrated thread and some comments may be shown as answers.
Using the local data table to pass a value to a child test
5 Answers 36 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clive
Top achievements
Rank 1
Clive asked on 13 May 2011, 03:39 PM
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

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 13 May 2011, 04:00 PM
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 >>

0
Clive
Top achievements
Rank 1
answered on 23 May 2011, 04:44 PM
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
0
Konstantin Petkov
Telerik team
answered on 25 May 2011, 08:35 AM
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 >>

0
Clive
Top achievements
Rank 1
answered on 25 May 2011, 02:26 PM
Hi,
I've installed 2010.3.1607. but still no joy.

Clive
0
Stoich
Telerik team
answered on 25 May 2011, 03:46 PM
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 >>

Tags
General Discussions
Asked by
Clive
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Clive
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or