当前位置:网站首页>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
边栏推荐
- 10 statistical methods commonly used for "dry goods" data analysis, with key application scenarios attached
- Swin-transformer --relative positional Bias
- 《被讨厌的勇气:“自我启发之父”阿德勒的哲学课》
- Redis入门到精通01
- js 字符串截取方法汇总
- 联想YOGA 27 2022,超强配置全面升级
- C WinForm program interface optimization example
- Nodejs installation and introduction
- 3.10 haas506 2.0 development tutorial example TFT
- 「干货」数据分析常用的10种统计学方法,附上重点应用场景
猜你喜欢

Regular expressions (regular matching)

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

Brief introduction of Feature Engineering in machine learning

Swin-transformer --relative positional Bias

联想YOGA 27 2022,超强配置全面升级

Huaxing Securities: kitex practice under the original hybrid Cloud Architecture

简述机器学习中的特征工程

Pytorch learning (III)

正则表达式(正则匹配)

Full recharge, im+rtc+x full communication service "feedback season" starts
随机推荐
slice
Some interesting modules
TCP粘包问题
【社区明星评选】第23期 7月更文计划 | 点滴创作,汇聚成塔!华为FreeBuds 4E等酷爽好礼送不停
CTF流量分析常见题型(二)-USB流量
基于UDP协议设计的大文件传输软件
链表中环的入口结点-链表专题
TCP packet sticking problem
BeanUtils.copyProperties() 对比 mapstruct
Reading notes of "high EQ means being able to talk"
torch.roll
C WinForm program interface optimization example
Full recharge, im+rtc+x full communication service "feedback season" starts
全栈代码测试覆盖率及用例发现系统的建设和实践
com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
CTF flow analysis common questions (II) -usb flow
法国A+ 法国VOC标签最高环保级别
NBI visual platform quick start tutorial (V) introduction to editor functions and operations
Entry node of link in linked list - linked list topic
Lenovo Yoga 27 2022, full upgrade of super configuration