Automated test case raise

1, the first automated test study, expect exceptions include "raise e", What does it mean?

2, online search a bit, probably means: if unusual, it does not perform the operation, but obviously is really no other statement after statement Yeah.

3, then commented, after the report execution cases, the original assertion is judged wrong use cases, actually performed by a!

 

 

 

4, so the "raise" can be understood as an exception is thrown to the result. After removing the comment Results:

 

 

 

 

Guess you like

Origin www.cnblogs.com/guotang/p/12329834.html