Forum Discussion
Please refer "Adding an existing keyword test" in Creating and Recording Keyword Tests. Hope that is what you are looking for.
Additionally, you can do the same with NameMapping... you can add an existing NameMapping file to a project so that you can use it in both.
- Lagencie7 years agoFrequent Contributor
When adding the existing Namemapping am I able to manipulate the namemapping - as for the Hybridmanager there are a few things different than with the datamanager, even tho the test is the same, 1 or 2 items are different and when I change it it changes it in both namemappings.
Same for tests ... is there something like a hardcopy, which does not break my existing test when I add / remove something?
- tristaanogre7 years agoEsteemed Contributor
Your request was to make test cases and namemapping global for both projects. That means that they are shared between the two projects. If you want to avoid having changes in one impact the other, then you don't want global test cases and name mapping, you want each project to have their own.
To be truthful, the BEST practice is the former... it's better to not have duplicated code/namemapping if you can avoid it because if something DOES change, with shared files, you only need to change it once. What you're going to need to do is make your test cases and, perhaps, your NameMapping conditional (there is a conditional option in NameMapping) so that, depending upon what project you're running from, the tests are "smart" enough to account for it.
- jose_pjoseph7 years agoContributor
You can create a new blank keyword test in the second project and copy and paste the required (or all) keyword test steps from an existing test in the first project. But as tristaanogre said, it can become a maintenance nightmare pretty quicky.