HttpRunner interfaces with automated testing framework --6.skip skipped Example

In the actual interface testing process, you are sure to encounter a use case needs skipped. httprunner provides three treatments

skip: skip, skip can be followed by the description of

 skipIf: True to skip skipUnless: If False skip

skipIf and skipUnless want to be judged must be made in the function. Then returned by the function True or False

 In the embodiment with the return value into a variable, skipIf followed skipUnless or variables to the first function. Taking the value of variable

 

 skipUnless not demonstrate the same logic and skipIf

Guess you like

Origin www.cnblogs.com/XhyTechnologyShare/p/12068394.html