How to carry out effective automated testing

Source: Internet
Author: User

In many cases, testers are launchingAutomated TestingI started to do this without thinking about it.
You can play back the script without considering it.ValidityBut it may not be effective if you do it.
Automated Testing does not play a role in the entire test, so even a small investment is wasted.
Resources. Therefore, before conducting automated testing, you must carefully consider some issues to ensure its effectiveness:

1. Is the tested system suitable for automated testing;
2. Where should the tested system perform automated testing;
3. Test Tools and framework used;
4. resources required for automated testing, including personnel, machines, and time;
5. resources currently available or available for application;
6. How to carry out automated testing without affecting daily testing work;

1. Is the tested system suitable for automated testing;
Many people may think that this problem is redundant and does not need to be considered. Actually, as a test supervisor
To solve this problem, we should consider the cost investment and
Results. Whether it is software, system, or website, the ultimate goal is to make profits.
To make profits, you must control costs and increase profits. Therefore, the cost investment must also be taken into account in the testing work.
How can we determine whether the system is suitable for automated testing? I personally think that the main consideration of the current tested project is long-term
Is it short-term? If the tested project requires continuous development and maintenance in the next six months or several years
Carry out a large number of regression tests repeatedly. In this case, if there is an automated regression testing system, it can save costs.
For short-term projects, such as one month or several months
It is very easy, and there is not enough time to do this, so there is no need for automated testing, the cost of effort
The automated test script made by the gas may only be used once or twice, which is not worth mentioning.

2. What kind of automated testing is suitable for the tested system;
Automated Testing covers a wide range of areas: unit testing, integration testing, interface testing, and GUI testing.
Automated execution. At the same time, different system conditions are different. Some of them are suitable for automated GUI testing,
Some may only be suitable for automated testing of interfaces. Therefore, you need to consider which of the following items should be tested?
For automated testing. For example, for search engines, the front-end is often relatively simple, just a text box and submit
Button, most of the logic processing is completed at the backend, this situation can be achieved through automated interface Testing
Get twice the result with half the effort; if the tested system has a lot of page operations, you can consider automated GUI testing;
Both of the above situations are not absolute. If the test resources are sufficient, you can perform automatic
Testing. In addition, the feasibility of automated testing also needs to be considered. For example, for a system
, Gui testing is the most suitable and effective, but it may be difficult to implement through various tools or scripts.
For automated GUI testing, you need to consider the flexibility and whether you can adjust the automated testing to interface testing or
Integration testing.

3. Test Tools and framework used;
Currently, there are many automated testing tools, such as mainstream paid qtp, winrunner, and silktest, open-source
Free Jemmy, watir, pywinauto, etc. How to Choose so many tool frameworks depends on the tested system.
At least, whether it is a C/S or B/S structure, the language in which the server and client are written and what is
Database and server type.

4. resources required for automated testing, including personnel, machines, and time;
Determine the testing tool and framework used, and determine the required resources. For example, several automated tests are required.
Trial engineers, test tools to be purchased, Test Machines (servers and clients), and development automation framework Institute
Required time;

5. resources currently available or available for application;
Determine the required resources, depending on which resources are currently available, if the resources are insufficient, you should apply in advance, such as recruitment
Hire testers and purchase configuration testing machines. Testers even need to learn new technologies in advance;

6. How to carry out automated testing without affecting daily testing work;
After you have considered the above issues, you need to develop an automatic testing plan.
The development of automated testing cannot affect the daily test items. After all, it cannot delay the daily test because of automation.
You must consider this. The entire company or project is often unable
It is specially allocated for a period of time so that some people cannot immediately see what is related to profit, so they must arrange
Well planned progress, more needs to be done by the entire test department.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.