I do have the Run mode N but how do I report it in the reports as skipped ???? in a extent report I want to report it has SKipped
I am not calling any function
My hypothetical Excel file
Test case | Run Mode
login Y
Logout N
Registration Y
So I am checking through a for loop if the run mode for each and every test case given in the parameter is Y or N..
When it is Y I want to execute the test case and the report is reported in the extent report
but
when it is Y I want to report it as the test case SKIPPED in the report and NOT FAIL !!
I dont want to user Assert.fail() instead I want to report it as skipped
what should I do ? Please guide
If I use throw new SkipException("Test skipped");
will it come in the extent report as skipped for that test case ?