程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Object wants to break up with me because my Python technology is not as good as his

編輯:Python

It was a few years ago , Sounds ridiculous , But it did happen to me . Because the University Studies IT major , So I entered a good company after graduation , Doing software testing , Another girl joined me , Because they are new people, they are arranged to train together , Once you come and go, you will become familiar , They also help each other at work , learn from each other , Then it's natural to be together . After being together, we are basically tired of being together every day , Learning together , Common progress .

But a few months later, I found that she gradually alienated me , Began to deliberately avoid me . Because we all want to develop in the direction of automated testing , So we studied after work at that time python, I should have studied together before , But during that time, she studied by herself every day , You won't let me be there yet , I didn't say anything , After a while, she broke up with me , Although I had a hunch , But I still want to know what went wrong , Don't ask don't know this question is true let me a little speechless , It turned out that she met a person with several years' experience in automated testing on the Internet , She had been chatting with this man all that time , This man is in python They helped her a lot , They have met in private , People are several years older than her , Then the two of them fell in love , I was abandoned .

After experiencing this incident, I silently swore in my heart that I must learn automated testing well , Now I have been in the industry for six years , I have not let myself down , In the field of automated testing, we have also gained a firm foothold , Next, I will share with you my experience and testing resources from my six-year career , I hope this doesn't happen to everyone , There are a lot of free resources at the end of the article .

1. Learn the programming language first , Then touch the automation tools

  • It is suggested to start with Python Starting with , because Python Good scalability 、 Ease of development and popularity , And it has the advantages of free and open source . Anyone can download Python, And start rapid development and release Python Code , Let's learn Java.
  • At the same time, in this learning process , Forget that you're trying to test , Put yourself in the role of development , Settle down to learn programming systematically , Your language level , It directly determines the level of Automation .

2. Lay the foundation , Then start learning automated testing tools

  • incomprehension http agreement , You won't understand loadrunner、fiddler、soapUI These tools ; incomprehension HTML, You won't understand firebug. So the foundation is laid , Only with half the effort .

3. According to their own qualifications , Set goals

  • Assess your level , Combined with learning ability, set the goal of each stage , To estimate what kind of resources you want to invest ( Including time 、 Energy and money ) To learn . Know what you can figure out , Which stage should I ask Daniel , The more you learn, the more confused you will become .

4. Choose a good entry point , Design the most suitable scheme

  • Interface automation :Python+Unittest+HtmlTestRuner+Jenkins and Java+Httpclient+TestNG+Jenkins
  • web automation :Python+Webdrver+HtmlTestRunner+Jenkins,Java+Webdriver+TestNG+Jenkins
  • APP automation :Robotium+Java+TestNG+Jenkins,Appium+Java+TestNG+Jenkins,Appium+Python+HtmlTestRunner
  • Auxiliary test scripts : With Shell,Python To simplify repetitive work , Filtering logs, etc

5. Learn to draw inferences from one example , Pay attention to hands-on practice

  • Novices on the road are easy to be disturbed by other people's opinions , I want to learn everything I see , It's hard to learn and digest . Look at a target to drill , The code architecture 、 Use case management 、 You can draw inferences from one instance , Of course, the most important thing is not to talk on paper , We must practice it .

6. Don't be limited to tools , Multi use open source

  • There are many automated testing tools , Large companies tend to use open source frameworks and tools , Then customize your own test plan . Try more Webdriver, Appium Wait to build your own automated test project , Then master the overall working principle of Automation , Prepare for building your own tool platform in the future , After all, automation , It's not as simple as using a few tools
  • Automated testing is the ultimate route to learning , Start with language , I said before I finished the automation test , master Python perhaps Java Language , It is suggested to start from Python Starting with , Basic language knowledge , grammar 、 function 、 modular 、 Input and output 、 object-oriented programming , scripting 、 Standard library 、 Multithreading 、 Third party Library , External data processing ,unittest、pytest The test framework 、 A parameterized 、 Data driven ;

Web End to end automation stage

  • Front end Foundation : Master front-end skills and Document The object operation ;
  • Web automated testing : Mastery is based on Python+Selenium Of Web Automated testing skills

Learning gains

  • 1. Master complete Selenium+WebDriver application ;
  • 2. Master Keyword Driven and PO Patterns are two mainstream design patterns of automated testing framework ;
  • 3. Build a complete keyword driven system independently /POM+Excel+UnitTest+BeautifulReport+Yaml+ Distributed + Multithreading Automation UI The test framework ;
  • 4. Achieve more advanced WebUI Automatic distributed test architecture construction and operation , Multithreading can efficiently realize the batch operation of use cases

APP Automation phase

  • Comprehensive mastery Python+Appium Of APP Automated testing skills ,
  • Implement a complete automated testing framework ;

Learning gains :

1. Fully integrated with open source APP The system explanation is based on Appium Of APPUI Automated testing techniques ;

2. Master complete Appium application ;

3. master ADB Commonly used instructions ;

4. master Monkey Instruction application , Independent research and development to achieve Monkey Script ;

5. Master mixing APP Embedded H5 Element positioning and operation of the page ;

6. Build a complete keyword driven system independently /POM+ Excel+UnitTest+BeautifulReport+Yaml+ Distributed + Multithreading Automation UI The test framework ;

7. Achieve more advanced APPUI Automated distributed framework building , Realize synchronous management and multi terminal concurrent test

Interface automation phase

  • master Python Interface automation test skills ;
  • Implement a complete automated testing framework ;

Learning gains

1. Fully integrated with enterprise class Flask The explanation of interface framework is based on Requests Interface automation test skills of Library ;

2. Master complete interface automation test skills , master HTTP Protocol principle ;

3. Master the test implementation of associated interface ;

4. Build a complete keyword driven system independently +Excel+UnitTest+BeautifulReport+Yaml+ Distributed + Multithreaded automated interface testing framework ;

5. Realize more advanced automatic test of mass interfaces ;

Advanced automation testing PyTest And CI

  • PyTest frame
  • Continuous integration
  • Interface and UI Framework integration

Learning gains :

  • 1. Master the mainstream PyTest The test framework is applied in all directions , And upgrade the original framework ;
  • 2. master PyTest+ Allure The implementation of the ;
  • 3. master Jenkins Continuous integration , Combined with the test framework, the enterprise level automatic test is realized ;
  • 4. The original independent WebUI、APPUI、 The interface automation test framework forms a set of automation test framework that completely belongs to you ;

To help you learn better , I've prepared one for you 13G Super practical dry goods learning resources , The content involved is very comprehensive , Official account , Program yuanmuzi Can receive .

  Include , Software learning Roadmap ,50 Video of class for many days 、16 It's a real assault project ,80 More than one software for testing ,37 A test document ,70 A software testing related problem ,40 Test experience level article , Thousands of test questions to share , also 2021 Software testing interview Dictionary , There's also a selection of resumes for software testing jobs , I hope that's helpful ……


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved