Preliminary Study on Automated Testing Based on Python3 Interface

愿你我相遇,皆有所获! 欢迎关注微信公众号:【伤心的辣条】 免费领取一份216页软件测试工程师面试宝典文档资料。以及相对应的视频学习教程免费分享!

What is automated testing?

In simple terms, automated testing is the act of assisting manual testing with the help of tools, which can be regarded as automated testing.

What are the automated testing tools?

Commonly used automated testing tools include:

  • QTP: Mainly used for regression testing and testing new versions of the same software

Robot Framework: This is a functional automated testing framework based on python, and it is also a framework used by many companies. It has good scalability

  • Selenium:
    This is an open source framework. Because it supports multi-platform, multi-browser, multi-language (Java, Python, Ruby, PHP, JS, etc.), it breaks through many test tools and is currently the most used A framework.
  • Loadrunner: This is a tool for performance testing, including stress testing, load testing, and concurrent testing
  • Jmeter: It's also a performance testing tool. It's lightweight and free is the reason why many people use it.

What does automated testing include?

In the original "Scrum Agile Software Development" pyramid, the lowest level is unit testing. Unit testing is the solid foundation of automated testing strategies, and therefore the bottom of the pyramid structure; the middle level is service/interface testing, which is to transition user interfaces and programs. Designed as a unit, it is believed that all application programs are composed of various services/interfaces. Service/interface refers to a collection of programs that realize a specific function, and services/interfaces are reflected in response to input.

By testing the service/interface instead of testing the user interface, time and cost can be greatly reduced. In Lisa Grispin's Agile Testing "Agile Development", the original pyramid was supplemented with the "hat structure" of manual testing. In this structure, it is believed that no matter how good the automated testing is, some manual testing is always required. , Such as exploratory testing or user satisfaction testing, so manual testing is added at the top of the pyramid with a cloud-like structure.

Why do automated testing

In the current Chinese testing industry, manual testing accounts for 70%. Relative to development, the threshold of testing is low, and the salary is relatively lower than that of development. Therefore, automated testing is done to improve our own technology. The depth of the level, on the other hand, is to solve the current lack of more efficient testing technology in China, and finally to improve their competitiveness in the market. It is impossible to get a high salary without advancing with the times.

What type of project is suitable for automated testing?

As shown in the figure above, generally speaking, you only need to meet the following conditions to develop automated tests:

  • Product requirements are stable and infrequent changes. If automated testing is executed in frequent changes in requirements, it will greatly increase the cost and time of automated maintenance, and automated testing will lose its value.
  • Long project cycle
    The demand stability requirements of automated testing, the design of automation frameworks, script development and debugging all require time. If the project cycle is short, there is not enough time to support this process, and automated testing is unnecessary.
  • The development of the tested system is relatively standardized, and the testability is strong mainly due to these considerations:
    the architecture difference of the tested system, the adaptability of the test technology and tools, and the ability of the testers to design and develop an automated test framework that adapts to the differences

Selenium learning and use

Through the above understanding of automated testing, if you choose selenium as a tool for automated testing, before learning selenium, if you do not have any language programming foundation, it is recommended that you can learn the following programming languages: python, ruby, Java , Choose one of three, recommend python3 as the language for introductory learning, because the introductory of python will be easier to understand than other languages.

After you have learned the basics of python3, you can start to build a selenium test environment;

Then you need to be familiar with the syntax of the webdriver API, mainly for positioning and operating the various elements of the page, and then you can start automated testing slowly

Finally: test the welfare

In the technology industry, you must improve your technical skills and enrich your practical experience in automation projects. This will be very helpful for your career planning in the next few years and the depth of your testing technology.

In the interview season of the Golden 9th and the Silver 10th, the job-hopping season, organizing interview questions has become my habit for many years! The following is my collection and sorting in recent years, the whole is organized around [software testing], the main content includes: python automation test exclusive video, Python automation details, a full set of interview questions and other knowledge content.


For software testing friends, it should be the most comprehensive and complete interview preparation warehouse. In order to better organize each module, I also refer to many high-quality blog posts and projects on the Internet, and strive not to miss every knowledge point. Friends relied on these contents to review and got offers from big factories such as BATJ. This warehouse has also helped many learners of software testing, and I hope it can help you too!

May you and I meet and you will find something! Welcome to follow the WeChat public account: [Sad Spicy Article] Receive a 216-page software test engineer interview book for free. And the corresponding video learning tutorials are free to share!

Guess you like

Origin blog.csdn.net/weixin_50829653/article/details/112844747