Good day!

There are two classes, in one class there is Test1, in the second class there is Test2. Is it possible to throw a dependency between them (What would the execution of Test2 depend on the execution of Test1)? Is it possible in dependsOnMethods to point to a test from another class?

    1 answer 1

    You can do this only if you use inheritance, but there is one condition: you specify the class and objects of this class in the class Test1, and you must specify the methods of this class in Test2.

    And about your method, this can be done because there will be different classes (if there is no dependency between the classes).