Always got “Could not convert arguments for step” error when try to pass customized object argument to Cucumber Step Definition
I followed ToolsQA Cucumber tutorial and try to pass my customized Object Argument to step definition for Data Driven Test. I copied everything from the tutorial. but when I run the test , I always got this error:
cucumber.runtime.CucumberException: Could not convert arguments for step [^User enters Credentials to LogIn$] defined at 'stepDefinitions.ConsumerServiceEnquiry.ConsumerSteps.user_enters_testuser_and_Test(Credentials>) in <a href="/Users/jxz36/eclipse-workspace/SDBCucumberTestng/bin/'">file:/C:/Users/jxz36/eclipse-workspace/SDBCucumberTestng/bin/'</a>.
I have searched everywhere, and see a lot of similar example. so I think it must be some basic error or missing configuration. Please can anybody help me out of this? Much appreciated!