0
0
Testing Fundamentalstesting~10 mins

Test case components (steps, expected, actual) in Testing Fundamentals - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the first step in a test case.

Testing Fundamentals
test_steps = ["[1] the login page"]
Drag options to blanks, or click blank then click option'
AClose
BOpen
CDelete
DRefresh
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Close' or 'Delete' as the first step.
2fill in blank
medium

Complete the code to specify the expected result after login.

Testing Fundamentals
expected_result = "User [1] successfully"
Drag options to blanks, or click blank then click option'
Aregisters
Blogs out
Clogs in
Ddeletes account
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing login with logout or account deletion.
3fill in blank
hard

Fix the error in the actual result assignment.

Testing Fundamentals
actual_result = "User [1] successfully"
Drag options to blanks, or click blank then click option'
Alogged in
Bloged in
Clog in
Dlogin
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling 'logged' as 'loged'.
Using 'login' as a verb incorrectly.
4fill in blank
hard

Fill both blanks to complete the test case dictionary with steps and expected result.

Testing Fundamentals
test_case = {
  "steps": ["Enter username", "[1] password"],
  "expected": "User [2] successfully"
}
Drag options to blanks, or click blank then click option'
AEnter
Blogs in
Clogs out
DDelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'logs out' as expected result.
Using 'Delete' as a step.
5fill in blank
hard

Fill all three blanks to complete the test case with steps, expected, and actual results.

Testing Fundamentals
test_case = {
  "steps": ["Open login page", "Enter username", "Enter [1]"],
  "expected": "User [2] successfully",
  "actual": "User [3] successfully"
}
Drag options to blanks, or click blank then click option'
Apassword
Blogs in
Clogged in
Dlog in
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up tenses in expected and actual results.
Using 'log in' instead of 'logs in' or 'logged in'.