Environment construction |
Python |
Focus on bloggers: hunter-gatherer Internet Software testing Industry technical Articles dedicated blog 78442921 |
|
|
|
|
|
|
|
" Learning Route" |
77651056 |
|
1. Learn the basics of language |
Many people do not learn the language, straight up to engage in selenium, I think it is a kind of putting the cart before the horse, |
|
|
No language foundation, want to learn selenium, want to do a good job of automation, but also go to a detour, to arrive at the destination longer. |
|
|
I recommend you to "Python core programming", which I suggest to buy paper books |
As for the content, you learn to complete the backbone section, the last few chapters on the network programming, threading and process, you can not see, when encountering such problems, you can add to this knowledge
|
|
|
|
2. It is necessary to learn some of the front-end knowledge: |
HTML (Web page structure, various tags) |
|
|
Xpath (basic positioning to understand, the contents of the axis can be left behind to learn) |
|
|
CSS (easy to understand) |
|
|
JavaScript (easy to understand) |
|
|
Firebug (Developer tools) use (this is often used, must be familiar with, can be in selenium learning gradually in depth) |
|
|
Basic knowledge of the network |
|
|
|
|
3. Write your own code |
Find a website, first practice the basic elements operation |
|
|
The basic positioning method is familiar, is to a formal website to practice |
|
|
|
|
4. Perform the test and leave the script phase |
Learning is Python's doctest and UnitTest. |
|
|
Learn how to extract common parts of your code and leave tests and operations out |
|
|
|
|
5. parameterization, configuration, logging, simple frame construction |
Use a table or configuration file for parameterization |
|
|
Learn how to log, write your own log module, and add logging in use cases |
|
|
|
|
6. Auto-Execute, send report automatically |
The learning of Jenkins |
|
|
To report automatically, learn the Smtplib module, which allows your reports to be sent to anyone's hands in the form of an email. |
|
|
|
|
|
|
|