Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependsOnMethods not working for BDD scenarios #66

Closed
hirengit opened this issue Jan 5, 2017 · 0 comments
Closed

dependsOnMethods not working for BDD scenarios #66

hirengit opened this issue Jan 5, 2017 · 0 comments
Projects
Milestone

Comments

@hirengit
Copy link
Contributor

hirengit commented Jan 5, 2017

For following bdd scenarios, I have given dependsOnMethods meta data. So scenario "ONE" should execute first and then scenario "TWO". But currently its not working and throws an exception

SCENARIO: TWO
META-DATA: {"description":"Test Scenario TWO","groups":["SMOKE"],"dependsOnMethods":["ONE"]}

    COMMENT: "THIS IS Scenario <TWO> depends on <ONE>"

END

SCENARIO: ONE
META-DATA: {"description":"Test Scenario ONE","groups":["SMOKE"]}

     COMMENT: "THIS IS Scenario <TWO> depends on <ONE>"

END

Here is stack trace,

org.testng.TestNGException: 
Method "scenarios.denpendsOnMethod.bdd.TWO()[pri:1000, instance:com.qmetry.qaf.automation.step.client.Scenario@3e8]" depends on nonexistent method "ONE"
	at org.testng.DependencyMap.getMethodDependingOn(DependencyMap.java:100)
	at org.testng.TestRunner.createDynamicGraph(TestRunner.java:1082)
	at org.testng.TestRunner.privateRun(TestRunner.java:772)
	at org.testng.TestRunner.run(TestRunner.java:655)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
	at org.testng.SuiteRunner.run(SuiteRunner.java:268)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
	at org.testng.TestNG.run(TestNG.java:1064)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:113)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:206)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:177)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
QAF
  
Released
Development

No branches or pull requests

2 participants