What are principles of good testing scripts for automation?

Answer Posted / siddesh c

Document the automated tests
- Create reusable and maintable tests
- Build a framework and create testscripts based on it
- Set programming conventions and follow it. It will be useful to debugging and better understanding the testscripts.
- Always isolate the data from the script. Never hardcode the data in the script.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Rcognize the Objects in the Web Page Dialog Using QTP

2005


What do you think holds testers back to do automation? Is there a way to overcome it?

491


Explain me how do you send enter/tab keys in webdriver?

529


Do you know what is the purpose of deselectall() method?

585


What are the advantages of test automation?

578






Define sdlc in testing.

583


Is automation testing a black box testing or white-box testing?

515


how to map requirements& test cases in quality center ???

2056


Explain me what is the difference between setspeed() and sleep() methods?

586


When is automation testing useful?

551


WHAT IS TEST SCRIPT AND HOW DO YOU CREATE IT?

1776


8. How we test web based application

1824


Tell me how can you switch back from a frame?

554


Can we do automation testing without a framework? If yes, then why do we need a framework?

700


What kind of tests should not be automated?

552