How to write software test scripts for new testers

As a novice in software testing, you will consider how to write good scripts. Test scripts are computer-readable instructions that automate the execution of a test process (or part of a test process). It can be created (recorded) or automatically generated using test automation tools, or programmed in a programming language or a combination of the above three methods.
  At the same time, you must first understand the scripting language of the automated test tool, understand what information it captures (that is, commands), organize these commands (parameterization and programming), and program everything according to the rules of this automated test script. accomplish. Finally, the more difficult step is to make such a program have a flexible mechanism that can be reused in similar projects.
  Therefore, under the premise of manual testing experience, it is still necessary to analyze whether the conditions for automated testing are met:
  (1) It is used frequently and repeatedly
  (2) It is relatively easy to automate
  (3) It is difficult to reproduce manually
  (4) There is a higher risk if there is no testing before the program is released
  The perfect automated test is:
  1. Make a perfect test plan; 2. Analyze test requirements; 3. Design test cases ; 4. Build test environment; 5. Write test scripts; 6. Analyze test results and record test problems; 7. Track test bugs; 8. Write a work log...
  In fact, the core of automated testing is to simulate manual operations, parameterize specific operations, and repeat the same operations. Similarly, different automated testing tools use different languages, so specific problems should be analyzed in detail. For example, when using QTP for automatic testing, the scripting language is vbscript, which supports IE and Firefox, and is in the form of software interface; UI automation The test tool TestWriter supports C#, java language, can test the web and mobile phones, and there are more that will not be introduced, such as selenium and so on.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326443326&siteId=291194637