Cannot run a test cases pulled from repository
My project use costume name mapping, and I am running into the following issue :
1.User 1 create test cases
2. Commit into the repository (two files are committed manually into the repository.
1.User 2
2.Pull testcase from the repository
3. Run the testcase in local machine (testcase run successful)
4. Append new steps to the testcase
5.Save and commit changes to the repository (same two files from User1 are committed manually.
1. User 3 pull from repository
2. Run test cases (testcase (Fail)
Can anyone help me understand why the test case is failing for user 3.
Thanks
So, you've answered your question. When User3 did a NameMapping merge of files, it changed the mappings in some way so that the test case itself won't run properly. As noted in the message you received, the merging of the files resulted in some object mappings not resolving correctly requiring a manual review and potential correction. Since the manual review was not done and the file was checked into the repository un-checked, this is what caused your errors.
Solution: Go through your NameMapping file and work through correcting those mapped objects that need to be corrected so that the tests will run. As noted, this is not a problem with the repository but a process that needs to be followed when merging mapping files.
Check out the following article. https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/merging.html
At the end, there's information about why conflicts occur and what are suggestions on how to resolve them when they do.