Deal of The Day! 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
Lavera
2 days ago
Haha, "gradlev"? Is that a new type of gradle command? I think I'll stick with the good old "gradlew".
upvoted 0 times
...
Tammi
8 days ago
Hmm, I'm not sure about the "~@skip" part. Shouldn't we just use "--tags @authentication" to run only the authentication tests?
upvoted 0 times
...
Anastacia
13 days ago
D) looks good to me. The command uses the correct "gradlew" and the "~@skip" tag to exclude the skipped tests.
upvoted 0 times
...
Man
18 days ago
B) is the correct answer. The command should use "gradlew" instead of "gradlev".
upvoted 0 times
...
Chu
23 days ago
I’m a bit confused about the difference between “-Dcucumber.options” and the tags. I hope I remember the right command when it comes to executing the tests.
upvoted 0 times
...
Coleen
28 days ago
I feel like I might have seen a question like this before, and I think the correct command was option D, but I can't recall the exact syntax.
upvoted 0 times
...
Charlene
2 months 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
2 months ago
I think the command should start with "./gradlew" since that's the standard way to execute Gradle tasks, right?
upvoted 0 times
...
Tatum
2 months 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
2 months 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
2 months 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
3 months 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
3 months 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