qmetry/qaf

Duplicate method name but unique BDD step throws NotYetImplementedException()

coderrenish opened this issue · 1 comments

QAF Version:

4.0.0-RC2

Steps To Reproduce

1. Have a unique BDD step name but use a duplicate method name (not in the same file).
2. 
3.

Expected behavior

  1. Should execute the test

Actual behavior

  1. Throws NotYetImplementedException()

Is the issue reproducible on runner?

  • [] QAS
  • [X ] Maven
  • Gradle
  • [] Ant
  • [ X] Eclipse

Test case sample

@QAFTestStep(description = "Verify-Text:{0} in Page:{1}")
public static void verifyText(String text, String page) throws Exception {
      // some internal implementation

}

Note: If I change the method name to "verifyTextInPage" then it will work.
Looks like "verifyText" is part of QAF common step too.

I can see another ticket raised but closed.

did you tried adding stepName = "uniqueName" in QAFTestStep declaration?