海上孤帆 发表于 2023-7-10 13:30:52

Python自动化测试那些必须要掌握的知识点

一、自动化测试的概念性能系统负载能力稳定性过载操作下的系统瓶颈自动化测试,使用程序代替人工,可以提高测试效率性,自动化测试能自动化使用代码模拟大量用户,让用户请求多页和多用户并发请求收集参数,并对系统负载能力进行统计生成报告。二、Python自动化测试基础必备知识点1.Python中的标识符(变量,类,方法等取的名字)(1)必须是字母,数字或者下划线组成(2)数字不能开头(3)对大小写敏感(区分大小写)true与Trueage=20 _age=202.python中的关键字<font size="3">'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']
</font>3.python中的注释方法<font size="3">age=10 #单行注释
'''age=10
aa=10
'''多行注释
</font>4.Python行与缩进<font size="3">a=10
b=20
def sum(a,b):
return a+b#符合要求
return a+b#不符合要求
print(sum(10,20))
</font>5.多行语句<font size="3">长语句以 \来实现多行语句
toal=item_one+\
   item_two\
   item_three
如果语句中包括{}[]或者()就不需要使用多行连接符号
toal=['a','c']
</font>

让测试飞起来 发表于 2023-7-12 21:18:06

顺便学习一下遍
页: [1]
查看完整版本: Python自动化测试那些必须要掌握的知识点