-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrote test cases for Sprint 1 #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test cases should not be continuous. Because if one test case fails, then the test cases following it will also fail accordingly. Each test case should be separate (able to run independently) and not be dependent on the previous test case.
Also since we are reusing most of the elements (eg. Cancel, Create, etc) it is better to store all of them in variables. And remove all the old code that was commented out to make it less confusing.
login_account.robot
Outdated
Input Text id=username ${login_user_username} | ||
Input Text id=password 123456789 | ||
Click Element xpath=//button[contains(text(),'Login')] | ||
Wait Until Element Is Visible css=.alert.alert-danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this into a variable (Error message)
ensure that the relevant error message is prompted.
login_account.robot
Outdated
# Input Text id=username | ||
# Input Text id=password | ||
Click Element xpath=//button[contains(text(),'Login')] | ||
Wait Until Element Is Visible css=.alert.alert-danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this into a variable (Error message)
ensure that the relevant error message is prompted.
login_account.robot
Outdated
Entering Login Details - Fail Blank for both input fields | ||
# Input Text id=username | ||
# Input Text id=password | ||
Click Element xpath=//button[contains(text(),'Login')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse login variable
login_account.robot
Outdated
Entering Login Details - Fail Diff Username and password | ||
Input Text id=username ${login_admin_username} | ||
Input Text id=password ${login_user_password} | ||
Click Element xpath=//button[contains(text(),'Login')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse login variable
login_account.robot
Outdated
Input Text id=username ${login_admin_username} | ||
Input Text id=password ${login_user_password} | ||
Click Element xpath=//button[contains(text(),'Login')] | ||
Wait Until Element Is Visible css=.alert.alert-danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this into a variable (Error message)
ensure that the relevant error message is prompted.
…_TeamC_Assignment into testing/testcases_bdd
No description provided.