There are two assertion soft and hard assertion in soft assert if actual and expected are not matching it will not stop the code it will move ahead but in terms of hard asset if actual and expected is not matching then the execution will be stop their only
@greeshmavivek8226Ай бұрын
Hard assertions Immediately throw an exception, terminate the test, and mark the method as failed. This means that any steps after the hard assertion will not be executed. Soft assertions Do not immediately throw an exception, and instead continue to the next step in the automated test. This allows all steps and soft assertions to execute before the test fails.
@zakirvnr6011Ай бұрын
As we know there are two types of asserts one is soft assert and other one is hard assert. If we want to do some validations on few elements whose existence does not depend on one another. Then we use soft assert. Else we use hard assert.
@InterviewRoundsАй бұрын
Sir yese interview boht hi helpful hote hai. Thanks. Sathi hi sath me bhi interview deba suru hote hai😂😅😊
@yogeshkalal7779Ай бұрын
Soft assertion and hard assertion depends upon requirement