How to copy a module to a different project

Ask general questions here.
jchou
Posts: 26
Joined: Tue Apr 24, 2012 11:19 pm

How to copy a module to a different project

Post by jchou » Wed Oct 17, 2012 1:53 am

I need to copy or move some existing modules from one project to a different project. Is there a way to do it? If so, what would be the right way to do it?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to copy a module to a different project

Post by odklizec » Wed Oct 17, 2012 7:32 am

Hi,

I would suggest to use menu Project >> Add >> Existing Item... where you can select an existing file (or files) you want to add to your actual project.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

jchou
Posts: 26
Joined: Tue Apr 24, 2012 11:19 pm

Re: How to copy a module to a different project

Post by jchou » Wed Oct 17, 2012 10:24 pm

Have you tried what you suggested? How about the repositories of the module? Copy the whole repository file of the other project?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to copy a module to a different project

Post by odklizec » Thu Oct 18, 2012 7:58 am

Hi, yes, I tried this action;)

When you import a module, you should receive an error "The Repository reference for recording "xyz.rxrec" is unresolved". Clicking this error should invoke the "Repository Project Reference Missing" dialog, where you can select what should happen with the original repository:
- link repository - linking allows sharing one repository among multiple projects
- copy repository - copies the original repository to the project to which you imported the module
- embed repository - embeds the repository directly to the module

My preferred action is to Copy the repository. After copying the repository it's a very good idea to clean it up from unused elements. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration