How to get started with automated testing

 

What is automated testing?

Automated testing, as the name suggests, automates testing work instead of repetitive manual labor.

 

Why automate testing ?

Why do automated testing , the answer starts with the benefits of automated testing and the cost of human testing:

a. Save the cost of testing

After all, automated testing does liberate manpower (manpower cost is the biggest cost of IT companies), allowing machines to perform some repetitive work day and night.

b. Improve test efficiency ( higher manual cost )

For example , the stress test and load test of 12306 , it is unrealistic to find so many people to test at the same time, and it can be simulated by machine.

3. What kind of products are suitable for automation ?

In short, it is measured from the perspective of input-output ratio. As long as the automation output is greater than the input product, we can consider automation.

4. What skills are needed to learn automated testing?

My understanding is as follows:

( 1 ) Establish automated thinking

Just like Xiao Ming in the example, being able to find problems and solve them in an automated way is automatic thinking. Just like when we learn a martial art, automated thinking is the secret of martial arts, and the programming language is the weapon we use. The choice of language determines whether the weapon is easy to use, and the most important thing is to understand the essence of martial arts secrets, that is, to establish automation Thought.

( 2 ) Test-related knowledge reserve

For example, if you are a web tester, you must understand js , css , html , and xpath . If you are a mobile app tester , you must have the foundation of Android development and iOS development, and be able to debug apps . If you are a C/S tester, you must be very knowledgeable. Familiar with TCP and IP protocols

( 3 ) Master a development language

Learn a programming language, such as java , Python , ruby , c# , etc. It is recommended for beginners to start with Python , which is relatively simple,

( 4 ) Be good at learning and know why

The IT industry is changing too fast. Every once in a while, some new things will appear, and some things that were popular will gradually decline, and no one can predict. Nokia used to be the overlord of mobile phones, relying on Saipan to dominate the world, but it didn't want to make progress and ended up selling itself to survive . Qtp used to be very popular , selenium used to be very popular , and now appium is also very popular . The software industry has changed from desktop software to web , and from web Migrating to mobile, no one knows what's next. And as practitioners in the software industry, we cannot let ourselves go down just because those very popular things are not popular. The most core ability of a person is the ability to learn. If you are good at learning, you don’t have to worry about these changes, because you can Pressure-free migration, you have mastered the principles of selenium , and learning appium is a piece of cake, because appium uses the selenium WebDriver protocol. If you can do it, you can also build wheels and transform appium , after all Now many functions need to be improved.

To summarize how newcomers learn automated testing:

( 1 ) Able to identify and solve problems

( 2 ) Continuous learning and adapting to changes

( 3 ) Test foundation + certain development ability

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326564950&siteId=291194637