In reply to 8Blades:
In some of the examples, i have seen people comparing starting_phase != null and then raising the objection. I didn’t get the idea here, what is in starting_phase and what we are trying to compare with null. Could you pls elaborate on it a little.
E.g https://verificationacademy.com/forums/uvm/how-start-sequence/s
In this example, he’s comparing starting phase != null in the pre_body task.
when a sequence is started explicitly, the starting_phase member is NULL, so the sequence will not raise or drop phase objection. So one wants to raise/drop objctions when starting_phase is not equal to null. In this case, the sequence has the control over raising / dropping objection which can cause problems. As cgales suggested test must control raise and drop objections.