当前位置:网站首页>UI automated interview questions
UI automated interview questions
2022-06-11 20:28:00 【Youwanyong】
1、 Automated processes
Before writing test cases , The team will discuss the project system , Make an assessment , Whether it can be automated , Those that can be automated , Usually smoke test cases are converted into automated scripts .
The test framework used is python Of selenium+unittest modular , For any function , We will build a test project first , Use testcase To store test cases , Use report To store test reports , At the same time, some common data and modules are placed in public in , Open a browser , Connect to database, etc , After debugging the script locally , We can use jenkins To periodically upload to git The script in the .
2、 Common element positioning methods are ?
ID、Name、class Name、link Text、tag Name、partial Link text、xpath、css selector
3、 Reasons for inaccurate element positioning ?
Page element not loaded ;
Element attribute values are dynamic ;
Element attribute values are not unique ;
Involves another (iframe) frame , Need to switch
Need elements on another page , Need to switch windows .
3、 How to locate element attribute values is dynamic ?
We can choose the unique of this element , It is not a dynamic attribute value to locate , Or use xpath、css To perform hierarchy + Attribute
4、 How to check the execution results of automated scripts ?
Use assertEqual() perhaps assertIn() To add assertions
5、 How to determine whether it is a script problem or a version problem ?
. Indicates that the use case passes ;
E Indicates a script error ;
F Indicates that the assertion failed ;
6、 How to improve selenium Execution speed of ;
Increase network speed
To use less sleep wait for , Use both explicit and implicit waiting ;
7、 Use that method to determine whether the element is displayed ?
is_displayed() Show
8、css and xpath The difference between ?
The grammar is different ;
css Relatively fast ;
9、 The reason why the automation script failed ?
1、 The test environment is unstable ;
2、 The developer modifies the code without notifying the tester ;
3、 Development introduces new problems ;
边栏推荐
- Database introduction
- Current situation and future development trend of global and Chinese cogeneration system market from 2022 to 2028
- "Video version Mae" of hekaiming team, efficient video pre training! The effect is also very good when mask ratio is up to 90
- In 2021, the global revenue of Indian fragrant rice was about $12530 million, and it is expected to reach $21670 million in 2028
- Interface isolation principle
- 10 R vector operation construction
- Google proposed the super pre training model coca, and the accuracy of fine-tuning top-1 on Imagenet reached 91%! SOTA! On multiple downstream tasks
- What is the meaning of holding shares of financial products?
- 浅谈UGUI中Canvas RectTransform的Scale
- unity里面使用opencv,qt建立plugin(一)
猜你喜欢

Flutter doctor shows the solution that Xcode is not installed

WR | effect of micro nano plastic pollution in Jufeng formation of West Lake University on microbial flora and nitrogen removal function of Constructed Wetland

LNMP架构源码编译安装图文讲解(附带搭建论坛实验)

银泰百货与淘宝天猫联合打造绿色潮玩展,助力“碳中和”

ICML 2022 | 基于结构化数据的异常检测再思考:我们究竟需要怎样的图神经网络?...

Database introduction

A brief talk on shutter button

28. JS implementation mechanism

2022Redis7.0x版本持久化详细讲解

Babbitt yuancosmos daily must read: the secondary market of digital collections is full of chaos. After 00, it will become a new leek. Supervision is imminent
随机推荐
WR | effect of micro nano plastic pollution in Jufeng formation of West Lake University on microbial flora and nitrogen removal function of Constructed Wetland
黑圆圈显示实现
On scale of canvas recttransform in ugui
Chrome V8 source code 48 The secret of weak type addition,'+'source code analysis
A mechanics informed artistic neural network approach in data driven constructive modeling
Current situation and future development trend of tropical forage seed market in the world and China from 2022 to 2028
Object storage of CEPH distributed storage
What is the essence and process of SCM development? Chengdu Automation Development Undertaking
10 R vector operation construction
STC hardware only automatic download circuit V2
里氏替换原则
【计算机推免】哈尔滨工业大学物联网与泛在智能研究中心面向全国高校推免生招收2023级研究生(硕、博、直博生)
Tensorflow --- creation and reading of tfrecord file
In 2021, the global ceramic substrate revenue will be about US $409.7 million, and it is expected to reach US $657.3 million in 2028
27. this指向问题
moderlarts第一次培訓
VS2010 cannot open when linking sql2008 database
Comp3411 -prolog language
Detailed tutorial on installing MySQL database in Linux environment (including uninstallation and password reset process)
C deep copy