1.1 ngrinder脚本结构

测试脚本的大概结构如下:

[ ... import statements ... ] 外部包引入

[ ... request and test definitions ... ] request请求声明

class TestRunner: [ method definitions - a method is defined for each recorded page ] TestRunner声明

def call(self): [ ... calls to defined methods, which actually runs the requests ] 定义call方法

范例:

results matching ""

    No results matching ""