Use output in httprunner to pass variable values between testcases

The first step is to define an output variable in the config of case1

 

 

The second step: extract the corresponding value with extract in teststep and store it in the orderNumber variable defined by output

 

 

 

The third step: directly quote orderNumber in case2

 

Guess you like

Origin www.cnblogs.com/jodie2019/p/12688316.html