Which of the following function signatures is the best for keyword implementing test step number 1 ?

Consider the following test steps;

Which of the following function signatures is the best for keyword implementing test step number 1 ?
A . def login ():
B. def login_with_admin_credentials () :
C. def login(username, password) :
D. def create_user (username, user_email, password)

Answer: C

Explanation:

This function signature is the most concise and clear, and allows for the username and password to be passed to the function as parameters. This will allow for the login process to be automated without having to hardcode the username and password into the function.

Latest CSeT-F Dumps Valid Version with 40 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments