1. You should write your code as per the coding standards so that the code will be maintainable and understandable.
2. Proper comments should be added to the code
3. Don't write long ( in terms on number of lines) scripts or functions. You should break down a big functionality to few small functionalities and write functions to accomplish those small functionalities.
4. Avoid hard coding.. Use parameters and supply the data.
5. Try to make functions generalized by applying parameterization. Don't write functions in such a way that the function will be useful with particular data only. Replace the hard coded values with parameters.
6. Use proper error handling
7. Identify the navigation and verification points in all the test cases that are to be automated and identify the common navigation and verification. So that once you develop the common functions you can call them from other scripts/functions/ test cases.
8. Design a framework to organize your functions (navigation, verification, etc.)
9. Take help from developers in designing the framework or in coding.
Subscribe to:
Post Comments (Atom)
1 comment:
Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the TV de Plasma, I hope you enjoy. The address is http://tv-de-plasma.blogspot.com. A hug.
Post a Comment