Automated testing comes from knowing

Source: Internet
Author: User
Tags appium

Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source. Ethanol Link: http://www.zhihu.com/question/22211535/answer/20638960 Source: Know

Thanks to the invitation, I have written many articles about automated testing. Here a little bit, as the extension of the topic of knowledge supplement.
Useless automated testing, in this article I discussed some of the necessary factors for the success of automated testing and the main reason for the failure of automated testing-that is, the cause of people.
Automated tests for death, this article discusses the pitfalls of new learning testing techniques and some common error rhythms
From the Longmen Biaoju to see the automated test, this text said some crazy, the conscientious may understand.
To get back to the point, newcomers Learning automation is a tough process because there are more cases of automated test failures than successful cases, at least many people think so.

Many teams have tried automated tests, but they are generally tasted, and few non-pure technical teams can continue on the road to automated testing.

Automated testing is a broad concept, in general, all the alternatives to manual testing are automated tests, and we generally say unit testing is a kind of automated testing, unit testing many people call "millisecond-level automated testing."

Automated testing is difficult and, in a sense, more difficult than performance testing. Performance testing can rely on a lot of things, such as LR, and automated testing tools in many cases just a semi-finished, such as selenium webdriver, you need to spend a lot of time to write use cases, and maintain these use cases, this process is long and difficult, Especially for some non-development experience of the test students, the process is very painful, the daily work content seems to be self-abuse, and self-abuse after a period of time confidence basically collapsed, from this talk about automatic color change, so the fault is due to automated testing strategy and technology, and not from itself to find problems.

But practitioners of automated testing tend to be luckier than performance tests. The simplest example is that the average performance tester leaves the tool largely inactive, while the automated testers can use their own language knowledge and code knowledge to create their own tools, to say the truth, this is a very fulfilling thing, ethanol itself is writing tools, From simple CLI tools to complex web tools, everything is a blessing for previous automated testing practices.

Automated testing is difficult, so why should we insist on automation?
    • Unit testing is the most basic and fundamental way to ensure the quality of code, unit testing is a kind of automated testing, so the importance of automation is self-evident;

    • Integration testing is well suited to use automated means in many cases, the most obvious example being the integration test in rails;

    • When your unit tests and integration tests are not done, and even if you do not, the UI-level automated tests can play the role of firefighters, despite their high cost, maintainable UI test code is the Gospel of regression testing and an important means of improving test productivity;

    • Automated testing can develop a team, if a team can be automated testing, then their development level must be not low, and if these people to do development, the quality of the code is rather higher than the average developer, the reason is easy to understand, testers believe that what has not been tested is not credible, If the code is not tested, then the code is inherently untrustworthy, and untrusted code needs to be overwritten with unit tests, so this can fundamentally improve the quality of the code.

So how does automated testing go about learning? Ethanol here gives a very smooth circuit diagram.
    • Learn a scripting language, Ruby Python or JavaScript. Of course, if you believe in elegance, the pursuit of beauty, you can learn ruby, learning materials here

    • The process of learning a language is long and tedious, and you can learn more efficiently by using the Selenium Webdriver API. In the learning of automated testing, but also a language, and every step is a sense of accomplishment. Selenium's learning materials are the webdriver Practical Guide, the book Boulevard to Jane, and covers Java Ruby and Python, both as a desk book or as a technical recipe is a good choice.

    • Finally you can learn a little bit about mobile development, Appium is a good choice, you can use Appium to test iOS and Android mobile apps. Appium's tutorial here Appium-Tags

Of course, in addition to the bulkhead self-study, you can join some of the QQ group to learn to communicate with others, like-minded people to learn the effect will be better.

You can refer to why we need to test this article in Automation to get more help.

Automated testing comes from knowing

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.