Test is Skipping | Selenium Forum
R
Rupa Posted on 05/05/2020
My test is getting skip


package com.qtpselenium.hybrid.SuiteA;

import java.util.Hashtable;
import org.testng.SkipException;
import org.testng.annotations.Test;

import com.qtpselenium.hybrid.BaseTest;
import com.qtpselenium.hybrid.util.DataUtil;

public class LoginTest extends BaseTest{
	@Test(dataProvider="getData")
	public void loginTest(Hashtable<String, String>data) throws Exception{
	
		if(DataUtil.isSkip(testName,xls)||data.get("RunMode").equals("N")){
			throw new SkipException("Runmode is set to N");
		}
	ds.setEnvProp(envProp);
	ds.setProp(prop);
	ds.executKeywords(testName, xls,data);
	}
	
		
}


A
Ashish Thakur Replied on 05/05/2020

Please print the output of these 2 functions and you will realize where error is 

		if(DataUtil.isSkip(testName,xls)||data.get("RunMode").equals("N")){


Related Posts