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
answered on 31 Oct 2018, 02:51 PM
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.
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
answered on 06 Nov 2018, 12:58 PM
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.