Multi project reference not working for data driven

3 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    3 posts
    Member since:
    Nov 2019

    Posted 21 Nov 2019 Link to this post

    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. Plamen Mitrev
    Admin
    Plamen Mitrev avatar
    214 posts

    Posted 25 Nov 2019 Link to this post

    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!
  3. Saravanan
    Saravanan avatar
    3 posts
    Member since:
    Nov 2019

    Posted 25 Nov 2019 Link to this post

    HI Plamen Mitrev,

     

    Thanks for the update.

Back to Top