当前位置:网站首页>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
边栏推荐
猜你喜欢

嵌入式软件开发新趋势:DevOps

Four tips tell you how to use SMS to promote business sales?

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

Regular expressions (regular matching)

Swin-Transformer(2021-08)
![Delete duplicate elements in the sorting linked list ii[unified operation of linked list nodes --dummyhead]](/img/dd/7df8f11333125290b4b30183cfff64.png)
Delete duplicate elements in the sorting linked list ii[unified operation of linked list nodes --dummyhead]

法国A+ 法国VOC标签最高环保级别

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

sqlserver SQL Server Management Studio和Transact-SQL创建账户、创建访问指定数据库的只读用户

VMware16安装Win11虚拟机(最全步骤+踩坑)
随机推荐
NEON优化2:ARM优化高频指令总结
《Go题库·15》go struct 能不能比较?
German agbb VOC hazardous substances test
视频内容生产与消费创新
ANSI/UL 94 5-V级垂直燃烧试验
mysql 递归
CODING 正式入驻腾讯会议应用市场!
「经验」爬虫在工作中的实战应用『理论篇』
Coding officially entered Tencent conference application market!
MySQL modify data type_ MySQL modify field type [easy to understand]
基于 actix、async-graphql、rbatis、pgsql/mysql 构建 GraphQL 服务(4)-变更服务
PC wechat multi open
Personally test the size of flutter after packaging APK, quite satisfied
德国AgBB VoC有害物质测试
Tensorflow2 ten must know for deep learning
Small program container technology to promote the operation efficiency of the park
Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
音频 librosa 库 与 torchaudio 库中 的 Mel- spectrogram 进行对比
DTD modeling
sqlserver SQL Server Management Studio和Transact-SQL创建账户、创建访问指定数据库的只读用户