Tests which should be skipped are also getting passed | Selenium Forum
M
Posted on 28/05/2016
When i am running my tests from testng.xml file the tests which should be skipped are also getting passed. Can you please let me know where exactly the problem is ?

[attachment=5:3o7p0ry6]10.jpg[/attachment:3o7p0ry6]
[attachment=4:3o7p0ry6]9.jpg[/attachment:3o7p0ry6]
[attachment=3:3o7p0ry6]8.jpg[/attachment:3o7p0ry6]
[attachment=2:3o7p0ry6]1.jpg[/attachment:3o7p0ry6]
[attachment=1:3o7p0ry6]2.jpg[/attachment:3o7p0ry6]
[attachment=0:3o7p0ry6]5.jpg[/attachment:3o7p0ry6]

M
Replied on 28/05/2016

[attachment=1:19s4thdg]6.jpg[/attachment:19s4thdg]
[attachment=0:19s4thdg]7.jpg[/attachment:19s4thdg]

Responsive image

M
Replied on 30/05/2016

have you tried this excel file with unaltered datadriven project?


M
Replied on 30/05/2016

Yes, but still not working.


M
Replied on 30/05/2016

zip and upload your project?


M
Replied on 30/05/2016

Please download the project zip file.


M
Replied on 30/05/2016

i have made some changes its working now.
[attachment=0:1pc63o08]Screenshot (86).png[/attachment:1pc63o08]
[attachment=1:1pc63o08]Module20_DataDrivenFramework_TestNG.7z[/attachment:1pc63o08]

Responsive image

M
Replied on 31/05/2016

Yes. Now it is working fine.

Thanks alot.

I tried this way but unfortunately it didn't work.
[quote:2a6p4hbq]if(dataRunmode.equals(Constants.RUNMODE_YES)){
dataSetRunmode = true;
if(!issuiteRunmode || !istestRunmode){
APPLICATION_LOG.debug("Skipping the test "+testName+" inside the Suite "+suiteName);
}else{
throw new SkipException("Skipping the test "+testName+" inside the Suite "+suiteName);
}
}[/quote:2a6p4hbq]