I got problem in Keyword Driven Frameword tutorial

After I following your steps in “http://toolsqa.com/selenium-webdriver/keyword-driven-framework/java-reflection-class/”
actually, I just copy and paste your code to my project and I got a problem in this line of code “method = actionKeywords.getClass().getMethods();”
It return “null”
Why it can’t get methods from ActionKeywords class ?
Hope you reply me soon.
Thanks

Default Asked on December 30, 2015 in Program QA Automation.
Add Comment
  • 2 Answer(s)

    I just found solution
    just call “new DriverScript();” in main method

    Default Answered on December 30, 2015.
    Add Comment

    I recommend reading “KDT (keywords driven testing) Vs. Test Automation Scripts” for general knowledge: http://blog.testproject.io/2015/09/15/kdt-keywords-driven-testing-vs-test-automation-scripts/

    Train Answered on October 13, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.