Some thoughts on the beginner's learning automation

Source: Internet
Author: User

Oneself before in order to learn automation test add a few automated test group, in the group and many Daniel exchanges, also and many novice (rookie) exchanges. Because oneself is also a novice of automatic test, want to summarize the problem that is encountered in the Automation test study work, also hope that if have want to learn automation of children's shoes, can study before reading this sentiment, may be useful to your study. What I'm talking about here is a lot of the automation test novice encountered, there are technical aspects of the work encountered in the automation of the problem (very realistic ... )

NO1. is it difficult to learn automation? automated testing is not difficult if you are simply using recording playback for automated testing, this automated test of recording playback using the tool (e.g. selenium using seleniumide) does not require you to understand the code, I don't need you to do it like a performance test. Also for analysis (performance testing I think the most is not the use of tools, is the analysis of test results, and give a reasonable performance optimization scheme). Some of these recordings can be used for better reproduction of bugs, or for testing smoke tests under regression tests. Then some novice will be questioned, recording playback is automated, writing scripts are also run automation, why do you want to write code?

1. The limitations of recording playback are too large. recording playback is just a process of a user's operation or a business implementation process. in my actual work example, a client's account will have a variety of status (normal, loss, partial freeze, all frozen, only pay, not paid ...), if you want to test the account of different status of the business, do you want to record multiple times? They are just accounts of the difference, if you write a script, get a data-driven to be done.

2. From reason 1, we can see that recording playback is only a fragmented case, as an automated test project, there is no good automated testing framework, just a bunch of recorded playback of the box, then such an automated test there is still the meaning of it? Re-record if you have a problem? The original intention of automation is to free repetitive manual tests, and repeat the recording is useless work.

3. There is a good test framework to write scripts that can enhance the business logic of testing, and the various needs of the business to connect more closely, and better improve the business needs of personnel and testers to work together.

As can be seen from the above, it is very simple to use recording playback only for automated testing, but the effect is not so good, as our company also uses Testwriter for automated testing, the actual effect is not very obvious. That leads to another question: Why is automation made, and it's tall? Department boss let's do it? finish the first question first.

So what's hard about writing an automated script? As a development transfer test means no difficulty ... Don't spray, but as a novice without a development experience without code experience, writing an automated test script is difficult? Not difficult!!! from my own perspective, I am learning objective-c, but I am writing scripts in Java, Java I am also learning now. Let's take a look at what the automation script needs to use to develop the language.

This is my study of automated test Selenium reference book information, of course, from the development point of view this stuff is not enough, for people without language basis, these things to learn (to office workers every night 2-3 hours of study time, do not tell me to squeeze the time to study) up to one months. Pay attention!!! often in the group to see a novice so ask, this line of code how can make a mistake ah, this how can error ah, I press the code found on the Internet how to error ah, and so on, this is a reason, the language base is not good or no language base forced to write scripts. even the most basic grammar do not understand, how to write high-quality code, writing code is not like learning a tool to use, tool use you can directly take a case to run, while using the side of learning, practice practice, but the code is different, do not understand the most basic grammar, Fuzzy know this line of code is why is it useful? A change of scene, a change of logic and then blind. So do not be anxious, must master the most basic language foundation, it is best to learn a thing after each auxiliary to do some exercises, code is knocked out, not to see.

NO2. Why is automation doing it on the tall? Department boss let's do it? often there are small partners in the group said, Ah, the automation has not detected a few problems, the eldest brother picked me up; Gee, our boss said that automation is very powerful let me learn to do; Gee, does this automation replace manual testing, and can all kinds of test cases write scripts to execute them? Some of the small partners in the learning of automation may have seen some Daniel said what kind of projects can be automated, but there is a vague concept, that through these questions directly reflect what we can have to recognize: Do automation must know why do.

1. Consider whether the project is suitable for doing.

2. Realize that automation and manual testing are not contradictory, not who can replace who.

3. Automated testing is typically used for regression testing and smoke testing.

The above three points can solve the problem of small group of friends, even if the department boss asked you, you can say so.

NO3. How to automate tests for beginners. Just say one sentence, learning is gradual, no matter how long you lead the above requires you to start the automation, should step by step to learn, do not take time pressure as an excuse. I am in the group of those who ask the most basic questions of the novice feel very uncomfortable, blind bear break stick, do not climb on the want to run, so learning is not solid, do it will be very bad. Taking learning Selenium as an example

1. Learn the Code

2. Learning Seleniumapi (which is a test framework that encapsulates many methods)

3. Learn the construction of automated test projects ...

No learning heart, do anything is difficult, above is some of my spit groove and feelings, do not spit unpleasant ... If people do not have a dream, what is the difference with salted fish!!!

Some thoughts on the beginner's learning automation

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.