Python移动自动化测试面试

download:Python移动自动化测试面试

从面试之前如何准备,到移动端自动化测试面试所需的各个方面的理论知识,再到如何提升面试自信、改善面试话术,每一个移动端自动化测试人员,这门课中都有你需要的东西,知己知彼,方能百战百胜

适合人群及技术储备要求
无论你是普通的测试工程师,还是测试开发、移动自动化测试工程师,这门课程都非常适合你

技术储备要求
知识涉及面比较广,对移动端自动化工具Appium有一定应用,会使用Python语言,具备一定计算机基础知识
函數操作
對條件字段做函數操作走不了索引。

select * from t1 where date? =‘2019-05-21’;
優化:改成範圍查询

select * from t1 where c>=‘2019-05-21 00:00:00’ and c<=‘2019-05-21 23:59:59’;
隱式轉換
操作符與不同類型的操作對象一同運用時,就會發作類型轉換以使操作兼容。

select user_name,tele_phone from user_info where tele_phone =11111111111; / tele_phone varchar /
實践會做函數操作:

select user_name,tele_phone from user_info where cast(tele_phone as singed int) =11111111111;
優化:類型統一

select user_name,tele_phone from user_info where tele_phone =‘11111111111’;
含糊查询
通配符在前面

select * from t1 where a like ‘%1111%’;
優化:含糊查询必需包含條件字段前面的值

select * from t1 where a like ‘1111%’;
範圍查询
範圍查询數據量太多,需求回表,因而不走索引。

select * from t1 where b>=1 and b <=2000;
優化:降低單次查询範圍,分屢次查询。(實践可能速度沒得快太多,倡議走索引)

select from t1 where b>=1 and b <=1000;
show profiles;
±---------±-----------±-----------------------------------------+
| Query_ID | Duration | Query |
±---------±-----------±-----------------------------------------+
| 1 | 0.00534775 | select
from t1 where b>=1 and b <=1000 |
| 2 | 0.00605625 | select * from t1 where b>=1 and b <=2000 |
±---------±-----------±-----------------------------------------+
2 rows in set, 1 warning (0.00 sec)
計算操作
即便是简單的計算

explain select * from t1 where b-1 =1000;
優化:將計算操作放在等號後面

explain select * from t1 where b =1000 + 1;
————————————————
版权声明:本文为CSDN博主「A000 编程猿275」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ghhbjk/article/details/114985340

Python移动自动化测试面试

上一篇:uni-app页面生命与vue生命周期


下一篇:[iOS初级教程之一]社会化分享实践