Ask a Question

Migration

SOLVED
MarkSchofer
Frequent Contributor

Migration

I am so full of questions

I have a big long script(I have many) and I copy it from one project directory to another project directory. (Script Directory)

Do I lose all all the object mappings when I do this.

I realize there is a file already for mapping in each so I don t want to copy that as well.
Must I copy the entire project file.

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Migration

Well, no, they are not lost, but there is always the chance that something is mapped differently or not mapped at all in the destination project.

 

You can try running the moved tests in their new home and see if you get a small number of Object Not Found messages and just fix them or a large number and then you need something else.

 

The thing to do then is merge the name mapping files.

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...

 

I highly suggest backing up both the source and destination name mapping files in some separate directory, just to account for human failure (been there done that never want to recreate a name mapping file from scratch again!!).

 

Create an empty project, copy the two name mapping files into the directory there, add one as the name mapping for that empty project, then follow the merge instructions.  Take that merged name mapping and use it for the destination project.  It should be what you need. 

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: Migration

Well, no, they are not lost, but there is always the chance that something is mapped differently or not mapped at all in the destination project.

 

You can try running the moved tests in their new home and see if you get a small number of Object Not Found messages and just fix them or a large number and then you need something else.

 

The thing to do then is merge the name mapping files.

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...

 

I highly suggest backing up both the source and destination name mapping files in some separate directory, just to account for human failure (been there done that never want to recreate a name mapping file from scratch again!!).

 

Create an empty project, copy the two name mapping files into the directory there, add one as the name mapping for that empty project, then follow the merge instructions.  Take that merged name mapping and use it for the destination project.  It should be what you need. 

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

MarkSchofer
Frequent Contributor

Re: Migration

This is such a rich and energetic response.  Thank you very much as I shall refer back to this.   Luckily much of what I do is BETA and making mistakes right now is a nice learning experience.  There is quite a bit here I did not know.  Thank you very much.

Marsha_R
Community Hero

Re: Migration

You're welcome!  And thanks! It's good to know when a post is helpful.  

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: