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

Multi project reference not working for data driven

2 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 21 Nov 2019, 01:34 PM

Hi,

I am using multiple test studio project in same solution(Visual studio Project). I have linked the project 1 DLL to project 2.

I can able to call the tests from project 2 to project 1. But If am using with data binding for those method system will shows the Object reference error while executing the codes. Below I have attached the screen shots.

Please help me to solve this issue.

 

 

2 Answers, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 25 Nov 2019, 02:29 PM

Hi Saravanan,

I analyzed the solution scenario and tested it on my end with the same result. 

I am not familiar with the exact backend logic that is implemented in the testing framework and this is why consulted with the engineering team on this. It turns out that this kind of initialization of the test is not supported and it is expected to be missing the data. The data object is actually "null" as a result and I would not recommend you to do it in this way.

The best approach, if applicable to your test scenario, is to have both tests in the same project. Then you can add the data and use it in the coded step, as you have done in your first project. If you want to execute steps from the second test, you can use the Test as Step feature from the Step Builder, or the following code sample.

this.ExecuteTest("RelateivePathFromProjectRootFolder\\TestName.tstest");

I remain available to continue discussing this topic in more details, if necessary, or if you have additional questions.

Thank you for your understanding.

Regards,
Plamen Mitrev
Progress Telerik

 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Saravanan
Top achievements
Rank 1
answered on 26 Nov 2019, 05:32 AM

HI Plamen Mitrev,

 

Thanks for the update.

Tags
General Discussions
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Saravanan
Top achievements
Rank 1
Share this question
or