Multilevel data binding 3 levels - 3rd Level is not finding data

1 Answer 67 Views
Test Configuration Test Execution
HemoSonics
Top achievements
Rank 1
Iron
Iron
HemoSonics asked on 03 Oct 2022, 07:43 PM

I have a test A, which has a single vairable that it uses in its data.  This variable is not in Test B or Test C.

Test A calls Test B, Test B has its own data (FILENAME, ISDEFAULT), but Inherit Parent Data Source is false in Test B.

Test B Calls Test C, and Test C has Inherit Parent Data Source set to true and the same data columns as Test B (FILENAME, ISDEFAULT).  In TestC.  When I run my test, the FILENAME variable is empty. 

It seems like Test C is using Test A's data, and not Test B's. 

Any suggestions?  Is this scenario something that is not possible?

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 04 Oct 2022, 09:50 AM

Hello Terry,

Thank you for the thorough explanation of your findings.

When there are multi level nested tests and the 'InheritParentDataSource' property is enabled for any of them, these tests inherit the top level test data no matter of their nest level. So, in the described case it is expected that the second level testC will not have the FILENAME variable defined because it is not present in the data for testA

With this in mind, you might need to rearrange how the data is organized in order to accomplish the scenario in question. 

I hope this information helps you sort out your doubts and remain available to continue te discussion if you have any further questions. Thank you for your cooperation in advance.

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
HemoSonics
Top achievements
Rank 1
Iron
Iron
commented on 04 Oct 2022, 01:34 PM

Well, that is unfortunate.  This seems like it should be designed differently, as the way I was trying to use the feature seems more intuitive.  OK.  I will rearchitect my code, so that it will work.
Elena
Telerik team
commented on 05 Oct 2022, 08:57 AM

Hi Terry,  

Thanks for getting back to me. I understand your point of view, but have to admit that this is only a matter of adjustment of the nested tests and data based on how the product is designed to work with these. As you find inheriting the data from the upper level test more intuitive for yourself, there is always the other side where other people find the current implementation of inheriting the top level data completely convenient. 

I will be happy to assist you in setting up the tests and data if you encounter any difficulties. So, don't hesitate to contact us again in you case you need additional assistance. 

Thank you for your understanding and cooperation.

Regards,
Elena

Tags
Test Configuration Test Execution
Asked by
HemoSonics
Top achievements
Rank 1
Iron
Iron
Answers by
Elena
Telerik team
Share this question
or