New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Eccouncil 312-97 Exam - Topic 2 Question 4 Discussion

Actual exam question for Eccouncil's 312-97 exam
Question #: 4
Topic #: 2
[All 312-97 Questions]

(Andrew Gerrard has recently joined an IT company that develops software products and applications as a DevSecOps engineer. His team leader asked him to download a jar application from the organization GitHub repository and run the BDD security framework. Andrew successfully downloaded the jar application from the repository and executed the jar application; then, he cloned the BDD security framework. Which of the following commands should Andrew use to execute the authentication feature?.)

Show Suggested Answer Hide Answer
Suggested Answer: D

The BDD Security framework is executed through Gradle wrapper commands, and the correct wrapper script on Unix-like systems is ./gradlew (dot-slash indicates ''run the wrapper from the current directory''). Options using /gradlew or /gradlev imply an absolute path at filesystem root and are typically incorrect for a cloned project. Also, the wrapper name is gradlew, not gradlev. For executing only the authentication feature (or scenarios tagged for authentication), Cucumber tag expressions are used through the -Dcucumber.options system property. The command must include --tags @authentication to select authentication-tagged scenarios. To skip scenarios tagged ''skip,'' the exclusion operator is used as --tags ~@skip (meaning ''exclude @skip''). Options A and B incorrectly include --tags @skip which would include skipped tests rather than exclude them. Therefore, ./gradlew -Dcucumber.options='--tags @authentication --tags ~@skip' is the correct choice to run authentication scenarios while excluding anything marked to skip.


Contribute your Thoughts:

0/2000 characters
Charlene
5 days ago
I'm not completely sure, but I remember something about using the tilde (~) to skip tags in similar practice questions.
upvoted 0 times
...
Twana
10 days ago
I think the command should start with "./gradlew" since that's the standard way to execute Gradle tasks, right?
upvoted 0 times
...
Tatum
15 days ago
I'm feeling pretty confident about this one. The instructions are clear, and I think option D is the correct answer. I'll make sure to double-check my work, but I'm ready to tackle this question.
upvoted 0 times
...
Lea
20 days ago
This seems straightforward enough. I'll go with option D, ./gradlew -Dcucumber.options='--tags @authentication --tags ~@skip'. That should execute the authentication feature and exclude any skipped scenarios.
upvoted 0 times
...
Vivan
26 days ago
I'm a bit confused about the difference between the @skip and ~@skip tags. I'll need to double-check the documentation to make sure I understand how to properly exclude the skipped scenarios.
upvoted 0 times
...
Laticia
1 month ago
Okay, let's see here. I think the key is to use the correct command for the operating system, either /gradlew or ./gradlew. And then the Cucumber options to target the authentication feature and skip any tagged scenarios.
upvoted 0 times
...
Roosevelt
1 month ago
Hmm, this looks like a tricky one. I'll need to carefully read through the options and think about the syntax for executing the BDD framework.
upvoted 0 times
...

Save Cancel