Python自动化测试基础必备知识点一
python自动化测试基础必备知识点一
一、自动化测试的概念
性能系统负载能力稳定性过载操作下的系统瓶颈自动化测试,使用程序代替人工,可以提高测试效率性,自动化测试能自动化使用代码模拟大量用户,让用户请求多页和多用户并发请求收集参数,并对系统负载能力进行统计生成报告。
二、Python自动化测试基础必备知识点
1.Python中的标识符(变量,类,方法等取的名字)
(1)必须是字母,数字或者下划线组成
(2)数字不能开头
(3)对大小写敏感(区分大小写)true与True
age=20_age=20
2.python中的关键字
'False','None','True','and',
'as','assert','async','await',
'break','class','continue','def',
'del','elif','else','except','finally',
'for','from','global','if','import',
'in','is','lambda','nonlocal','not',
'or','pass','raise','return','try',
'while','with','yield']
3.python中的注释方法
age=10#单行注释
'''age=10
aa=10
'''多行注释
4.Python行与缩进
a=10
b=20
defsum(a,b):
returna+b#符合要求
returna+b#不符合要求
print(sum(10,20))
5.多行语句
长语句以\来实现多行语句
toal=item_one+\
item_two\
item_three
如果语句中包括{}[]或者()就不需要使用多行连接符号
toal=['a','c']
以上就是Python自动化测试基础必备知识点一,希望能对大家有所帮助。更多Python学习教程请关注IT培训机构:千锋教育。

猜你喜欢LIKE
相关推荐HOT
更多>>
python中mat是什么意思?
python中mat是什么意思?本文教程操作环境:windows7系统、Python3.9.1,DELLG3电脑。python的numpy库提供矩阵运算的功能,因此我们在需要矩阵运...详情>>
2023-11-10 23:22:48
python上下文管理的使用场景
python上下文管理的使用场景本文教程操作环境:windows7系统、Python3.9.1,DELLG3电脑。1、上下文管理的使用场景凡是要在代码块前后插入代码的...详情>>
2023-11-10 20:07:44
python常量折叠是什么
python常量折叠是什么1、概念所谓常量折叠,指的是在编译时就查找并计算常量表达式,而不是在运行时再对其进行计算,从而会使运行时更加精简和...详情>>
2023-11-10 19:11:50
pythonTCP与UDP的不同点分析
python中TCP与UDP的不同点分析(推荐操作系统:windows7系统、Python3.9.1、DELLG3电脑。)1、不同点面向连接(确认有创建三方交握,连接已创建才...详情>>
2023-11-10 18:16:05热门推荐
技术干货






