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

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

3 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
nuthan
Top achievements
Rank 1
nuthan asked on 29 Oct 2018, 08:55 AM
Hi,                                                                                                                                                                                                                                                               I am not able to copy passed test case under project. If I copy passed test case under project and execute test case build gets failed                                                                                           eg:- attached screenshot

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 31 Oct 2018, 02:51 PM
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!
0
nuthan
Top achievements
Rank 1
answered on 01 Nov 2018, 11:38 AM
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 3. test did not start execution but I  got the error for drilling list item . 4 clicked  step which as 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
0
Elena
Telerik team
answered on 06 Nov 2018, 12:58 PM
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!
Tags
General Discussions
Asked by
nuthan
Top achievements
Rank 1
Answers by
Elena
Telerik team
nuthan
Top achievements
Rank 1
Share this question
or