Forum Discussion

Shirley_yuan's avatar
Shirley_yuan
Occasional Contributor
9 years ago

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

  • nmrao's avatar
    nmrao
    Community Hero
    How does it know that setup script is failed unless there is an Error / Exception / Assert statement does that check.
    • Shirley_yuan's avatar
      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.

      • nmrao's avatar
        nmrao
        Community Hero

        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.