Closed raviguptasmarsh closed 4 years ago
Try with below imports.
com.qmetry.qaf.automation.testng.dataprovider.DataProviderUtil
com.qmetry.qaf.automation.ws.WSCRepositoryConstants
Refer qaf-support-ws/releases. qaf/releases and release notes
Thanks @amitbhoraniya
One more query: "dataProviderDesc" is not part of the DataDrivenScenario anymore. Does this mean that we do not need to exclusively do this anymore:
for (ITestNGMethod m : suite.getAllMethods()) { if (m.getInstance() instanceof DataDrivenScenario) { DataDrivenScenario d = (DataDrivenScenario) m.getInstance(); try { String v = (String) FieldUtils.readDeclaredField(d, "dataProviderDesc", true); ClassUtil.setField("dataProviderDesc", d, getBundle().getSubstitutor().replace(v)); } catch (Exception e) { e.printStackTrace(); } } }
Hi Ravi, What are you trying to achieve? will you please provide details?
It looks like you want to parameterize meta-data in BDD file. In that case, the meta-data for data provider has parameterization support. Try with latest version, parameter in meta-data for data provider should work. For example, 'datafile':'${my.env}/testdata.csv'
should work. There are new features introduced with newer releases you can refer release notes.
@cjayswal Added another ticket for the issue being faced after upgrading: https://github.com/qmetry/qaf/issues/325
Description
When upgrading from 2.1.14-RC1 to 2.1.15, our framework broke due to 2 changes.
imports failed:
Can you please suggest the alternate for these 2 ? Could not find a proper solution in Release Notes.