当前位置:网站首页>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
边栏推荐
- Practical application of "experience" crawler in work "theory"
- Some interesting modules
- Compare the audio librosa library with the Mel spectrogram in the torchaudio library
- com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
- Swin-Transformer(2021-08)
- Ambient light and micro distance detection system based on stm32f1
- TCP粘包问题
- 「经验」爬虫在工作中的实战应用『实现篇』
- MySQL 索引测试
- 删除排序链表中的重复元素 II[链表节点统一操作--dummyHead]
猜你喜欢
PC端微信多开
dtd建模
Full recharge, im+rtc+x full communication service "feedback season" starts
年复一年,为什么打破数据孤岛还是企业发展的首要任务
Nodejs 安装与介绍
sqlserver SQL Server Management Studio和Transact-SQL创建账户、创建访问指定数据库的只读用户
屏幕显示技术进化史
Swin-transformer --relative positional Bias
联想YOGA 27 2022,超强配置全面升级
Reading notes of "high EQ means being able to talk"
随机推荐
华兴证券:混合云原生架构下的 Kitex 实践
Construction and practice of full stack code test coverage and use case discovery system
TCP packet sticking problem
Is it safe to open an account for goucai? Is it reliable?
[Collection - industry solutions] how to build a high-performance data acceleration and data editing platform
PC端微信多开
Courage to be hated: Adler's philosophy class: the father of self inspiration
MySQL recursion
商业智能BI与业务管理决策思维之四:业务成本分析
go之web框架 iris
How to seamlessly transition from traditional microservice framework to service grid ASM
Word——Word在试图打开文件时遇到错误的一种解决办法
Brief introduction of Feature Engineering in machine learning
Four tips tell you how to use SMS to promote business sales?
领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!
BeanUtils.copyProperties() 对比 mapstruct
法国A+ 法国VOC标签最高环保级别
PC wechat multi open
How to use AI technology to optimize the independent station customer service system? Listen to the experts!
3.10 haas506 2.0 development tutorial example TFT