当前位置:网站首页>Introduction to Po mode "suggestions collection"
Introduction to Po mode "suggestions collection"
2022-06-30 19:16:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
PO Model introduction
1. What is? PO Pattern
PO The model is :Page Object Model Abbreviation Page object model
effect : Is to separate the test page from the test script , That is, encapsulate the page into a class , For the test script to call ;
Layering mechanism , Let different layers do different types of things , Make the code structure clear , Increase reusability .
PO The design pattern is Selenium One of the best design patterns in automated testing , It is mainly reflected in the encapsulation of interface interaction details 2. Don't use PO There are several situations in the design :
- Poor reusability , Poor scalability , Poor readability , Bad maintenance ,UI Projects with frequent interfaces are troublesome to maintain .
3.PO The advantages and disadvantages of the model
advantage :
Improve the readability of the code
Reduced code duplication
Improve code maintainability , Especially for UI Projects with frequent interfaces
shortcoming :
The project structure is complicated , Because it is modularized according to the process Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/132245.html Link to the original text :https://javaforall.cn
边栏推荐
- slice
- Electron 入门
- 小球大小随机,随机运动碰撞
- Business Intelligence BI and business management decision-making thinking 4: business cost analysis
- MySQL transaction concurrency and mvcc mechanism
- Ambient light and micro distance detection system based on stm32f1
- 「杂谈」如何改善数据分析工作中的三大被动局面
- Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
- 拓维信息使用 Rainbond 的云原生落地实践
- How to improve the three passive situations in data analysis
猜你喜欢

MySQL transaction concurrency and mvcc mechanism

Dlib库实现人脸关键点检测(Opencv实现)

华兴证券:混合云原生架构下的 Kitex 实践

Small program container technology to promote the operation efficiency of the park

Brief introduction of Feature Engineering in machine learning

ANSI/UL 94 5-V级垂直燃烧试验

Personally test the size of flutter after packaging APK, quite satisfied

Redis入门到精通01

The cloud native landing practice of using rainbow for Tuowei information

云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
随机推荐
拓维信息使用 Rainbond 的云原生落地实践
js 字符串截取方法汇总
亲测flutter打包apk后大小,比较满意
Evolution of screen display technology
Courage to be hated: Adler's philosophy class: the father of self inspiration
详解单例模式
Vs common shortcut key commands
Four tips tell you how to use SMS to promote business sales?
Regular expressions (regular matching)
开发那些事儿:如何在视频中添加文字水印?
屏幕显示技术进化史
PC端微信多开
Is it safe to open a mobile stock account? Is it reliable?
《Go题库·15》go struct 能不能比较?
VMware16安装Win11虚拟机(最全步骤+踩坑)
CODING 正式入驻腾讯会议应用市场!
MySQL 索引测试
Coding officially entered Tencent conference application market!
屏幕显示技术进化史
VS 常用的快捷键指令