@QAFDataProvider(dataFile = "src/test/resources/data/logintestdata.csv")
@Test(testName="testLoginPage", description="Login Page landing validation", priority=1, groups={"SMOKE"})
public void testLoginPage(Map<String, Object> data) {
// QAF - Qmetry Automation Framework calls
get("/"); // Check base url in src/test/resources/application.properies file
verifyText("login.box.header", "Sign In");
verifyLinkWithTextPresent("Or Sign Up");
verifyPresent("login.input.username");
verifyPresent("login.input.password");
verifyPresent("login.button.submit");
}
[Error] org.testng.TestNGException: Cannot inject @Test annotated Method [testLoginPage] with [interface java.util.Map]. For more information on native dependency injection please refer to http://testng.org/doc/documentation-main.html#native-depend ency-injection at org.testng.internal.Parameters.checkParameterTypes(Parameters.java:244) at org.testng.internal.Parameters.createParameters(Parameters.java:172) at org.testng.internal.Parameters.createParameters(Parameters.java:458) at org.testng.internal.Parameters.handleParameters(Parameters.java:568) at org.testng.internal.Invoker.handleParameters(Invoker.java:1293) at org.testng.internal.Invoker.createParameters(Invoker.java:1020) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1110) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
resources/data/logintestdata.csv
. – user861594