Copying passed test case to new project - results in failed build

4 posts, 0 answers
  1. nuthan
    nuthan avatar
    5 posts
    Member since:
    May 2018

    Posted 29 Oct 2018 Link to this post

    Hi,                                                                                                                                                                                                                                                               I am not able to copy passed test case under new project. If I copy passed test case under new project and execute test case build gets failed                                                                                           eg:- attached screenshot
  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1051 posts

    Posted 31 Oct 2018 Link to this post

    Hi Nuthan,

    The error you have faced is due to missing elements in the Elements repository in the new project. The reason is that the elements are referenced in coded steps only and thus, there are no associated elements to the test. 

    To resolve the issue you need to re-add the elements in the test. Further details on the case along with a solution can be found here

    I hope this will be helpful for you.

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. nuthan
    nuthan avatar
    5 posts
    Member since:
    May 2018

    Posted 01 Nov 2018 in reply to Elena Tsvetkova Link to this post

    Hi,                                                                                                                                                                                                                 Thank you for a reply. But I am not able to understand how to add the item to a repository.                                                                                                                                                                                                     Steps I performed:- 1. copy test to new project 2. click on execute 3. test did not start execution but I  got the error for drilling list item . 4 clicked  step which as drillinglistitem and clicked on add element + symbol but not solved my issue..  I have seen a link you sent but not able to understand how to proceed
  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    1051 posts

    Posted 06 Nov 2018 Link to this post

    Hello Nuthan,

    The article I shared describes in details what are the possible reasons for the compilation errors you have faced. The case on your end, is that the missing elements from the compilation error are only referred in coded steps. This is how these are no longer associated with any step or test and thus are not copied into the new project. 

    The reason why the compilation error didn't appear in the initial project, is that the elements exist in the repository and can be used although they are associated with other steps. 

    To solve the errors and be able to execute the test from the new project, you will need to add the elements manually in the Elements repository. The easiest way is to execute the test to a certain step using Run->To Here from the step context menu and once the recorder is attached to the browser, highlight each of the missing elements and add these to the repository. That way the element will be available and can be used in the coded steps as well. 

    In case this solution is not convenient enough for you, you could share your initial requirements and intents why you need to separate that single test in a new project.

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top