big-automation / automation-engine

Standalone Selenium ATE without OSGI framework
Apache License 2.0
0 stars 0 forks source link

add integration with cucumber #181

Closed peidong-hu closed 7 years ago

peidong-hu commented 9 years ago

cucumber is gaining popularity. We will need to have ate able to translate cucumber feature file into ate xml scripts.

peidong-hu commented 7 years ago

a plugin for cucumber can be developed based on this file, cucumber-jvm/core/src/main/java/cucumber/runtime/autocomplete/StepdefGenerator.java

to generate ATE executable xml stepdef files.

peidong-hu commented 7 years ago

2nd approach is to directly, annotate all cucumber steps as ate javaCodeStep as well. ate will automatically handle all cucumber steps as ate steps.

pageobject xml file needs to be created, with page name and all EADs ATE needs to add interface to acquire testing data from Cucumber step parameters, instead of from data file.

peidong-hu commented 7 years ago

in the 2nd approach, ate should be able to inject the stepDefs created by cucumber, to run the steps. ate will be a runner in this case.

peidong-hu commented 7 years ago

refer to https://github.com/cucumber/cucumber-jvm/tree/master/testng/src/main/java/cucumber/api/testng and https://github.com/temyers/cucumber-jvm-parallel-plugin

for examples

peidong-hu commented 7 years ago

For detailed solution, Refer to https://github.com/bigtester/cucumber-ate/issues/1