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

(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?.)
D) ./gradlew -Dcucumber.options=''--tags @authentication --tags ~@skip''.
A) /gradlev -Dcucumber.options=''--tags @authentication --tags @skip''.
B) /gradlew -Dcucumber.options=''--tags @authentication --tags @skip''.
C) ./gradlev -Dcucumber.options=''--tags @authentication --tags ~@skip''.

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
Aleshia
4 days ago
I feel like A is too off. The command should start with ./ not /.
upvoted 0 times
...
Davida
9 days ago
I’m leaning towards B. It has the right command structure.
upvoted 0 times
...
Shelia
14 days ago
I agree, D seems right. The syntax is on point.
upvoted 0 times
...
Lauran
19 days ago
I think the answer is D. It looks correct to me.
upvoted 0 times
...
Rosamond
2 months ago
Not sure about this, seems a bit confusing.
upvoted 0 times
...
Shay
2 months ago
Wait, why are there two different commands for the same thing?
upvoted 0 times
...
Catalina
2 months ago
Definitely going with D!
upvoted 0 times
...
Jessenia
3 months ago
I think it's B, not D.
upvoted 0 times
...
Wava
3 months ago
Option D looks correct to me.
upvoted 0 times
...
Vincent
3 months ago
I bet Andrew is wishing he had a better team leader right about now. Downloading a random JAR file and running a security framework? What could possibly go wrong?
upvoted 0 times
...
Lavera
3 months 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
3 months 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
4 months 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
4 months ago
B) is the correct answer. The command should use "gradlew" instead of "gradlev".
upvoted 0 times
...
Chu
4 months 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
4 months 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
5 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
5 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
5 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
5 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
6 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
6 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
6 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