Forum Discussion

tcsalex's avatar
tcsalex
Occasional Contributor
8 years ago

Best name to use in code

What is the best attribute to write automate script?

 

I could see two things one is full name and another one is mapped name. If I go with mapped name, always I need to worry about mapped objects if I use it in a different system.

 

For example, I created a test case in my local and loaded in the repository, One of my colleague wanted to execute the same test cases. so we clone the repository and loaded the test case in a new system. If we run the script, I could see the object identification issue.  In this case, how can resolve the object naming issue and have common for all the users to execute the test cases?

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Best thing to use in code, if you're using NameMapping, is the Alias.

     

    If you're cloning a repository, supposedly the NameMapping file is included in it... if it is not, there's your problem.  If you're mapping components, that is an essential piece to be included in your code repository.