Showing results for 
Search instead for 
Did you mean: 

Best name to use in code

Occasional Contributor

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?

Community Hero

Re: Best name to use in code

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.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Occasional Contributor

Re: Best name to use in code

Thanks Smiley Happy

New Here?
Join us and watch the welcome video:
Top Kudoed Authors