Dependent tests in test suite from tests in another test suite

Hi everyone,
I have test suite for creation an account and another test suite for login these created accounts. So if the first test suite with test cases has failures, I want to not to being executed related test cases in the second test suite.

Test suite 1 contains test cases:
creation an account user_1
creation an account user_2
Test suite 2 contains test cases:
login user_1
login user_2

Can anyone share the working solution.
Thanks.

How about restructuring your tests like:

  • TestSuite1 contains
    – create user1
    – login user1

  • TestSuite2 contains
    – create user2
    – login user2

I don’t mind if it could help. Please share your idea after restructuring.