Ask a Question

Why a test step continued execute when setUp step failed?

Shirley_yuan
Occasional Contributor

Why a test step continued execute when setUp step failed?

I created a testcase with setUp and Test Steps. 

But Why a test step continued execute when setUp step failed? I think it should tell me setUp fails.

5 REPLIES 5
nmrao
Champion Level 3

How does it know that setup script is failed unless there is an Error / Exception / Assert statement does that check.


Regards,
Rao.
Shirley_yuan
Occasional Contributor

My setUp script uses another testcase's testStep.In that testStep I already assert the response.And apparently the testStep runs failed.

Would you mind posting the script? At the moment it is difficult to comment without knowing the details.

 

It is good practice that each test case is independent.



Regards,
Rao.
Shirley_yuan
Occasional Contributor

Thanks for replying. I will paste the screenshot here.screenshot.png

 

Regards,

Shirley

Shirley_yuan
Occasional Contributor

@nmrao

 

Sorry to interrupt. But is there any background for it?

cancel
Showing results for 
Search instead for 
Did you mean: