Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

facing issue while integrating cucumber and apickli for api proxies.

Not applicable

cucumberintegration.jpgI am working on test framework api for API Proxies using cucumber and apicklis.

As suggested github I have followed the steps but while packing the proxies (deployed proxies in edge successfully) integration testcases got failed and tried so many ways.

Taken sample project from the below url:

https://github.com/sauliuz/amok/tree/master/examples/apigee-amok

Below changes are updated in the pom file.

<!-- run cucumber / apickli tests --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.3.2</version> <executions> <!-- run integration tests --> <execution> <id>integration</id> <phase>install</phase> <goals> <goal>exec</goal> </goals> <configuration> <environmentVariables> <NODE_ENV> test </NODE_ENV> </environmentVariables> <executable>C:/Users/kumarpuli/AppData/Roaming/npm/cucumberjs</executable> <commandlineArgs> tests/integration </commandlineArgs> </configuration> </execution> </executions> </plugin>

Please help me to resolve the issue.

Solved Solved
0 10 1,321
1 ACCEPTED SOLUTION

You did not correct the pom file as per provided instructions.

Your current pom fragment is:

							<executable>tests/node_modules/cucumber/bin/cucumber.js</executable>
							<commandlineArgs>
								tests/integration
							</commandlineArgs>

It should be:

<executable>node</executable><commandlineArgs>
                               tests/node_modules/cucumber/bin/cucumber.js tests/integration
                            </commandlineArgs>

View solution in original post

10 REPLIES 10
Top Solution Authors