0
0
Testing Fundamentalstesting~10 mins

Test case writing 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 test case name.

Testing Fundamentals
test_case_name = "[1]"
Drag options to blanks, or click blank then click option'
AVerify login functionality
BrunTest
C123Test
Dtest-case
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-descriptive names like 'runTest' or numbers.
Including special characters like '-' in the name.
2fill in blank
medium

Complete the code to specify the test case precondition.

Testing Fundamentals
precondition = "[1]"
Drag options to blanks, or click blank then click option'
AVerify the output
BUser is logged in
CClick the submit button
DTest completed
Attempts:
3 left
💡 Hint
Common Mistakes
Writing actions or verification steps as preconditions.
Leaving precondition empty or vague.
3fill in blank
hard

Fix the error in the test step description.

Testing Fundamentals
test_step = "[1]"
Drag options to blanks, or click blank then click option'
AVerify login button
BTest passed
CEnter valid username and password
DUser clicks login
Attempts:
3 left
💡 Hint
Common Mistakes
Using verification or result statements as test steps.
Writing incomplete or unclear actions.
4fill in blank
hard

Fill both blanks to write a valid expected result and test priority.

Testing Fundamentals
expected_result = "[1]"
priority = "[2]"
Drag options to blanks, or click blank then click option'
ALogin successful
BHigh
CLow
DError message displayed
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing expected results with priority values.
Using vague expected results.
5fill in blank
hard

Fill all three blanks to complete the test case dictionary with name, steps, and expected result.

Testing Fundamentals
test_case = {
  "name": "[1]",
  "steps": ["[2]"],
  "expected_result": "[3]"
}
Drag options to blanks, or click blank then click option'
AVerify password reset
BClick reset password link
CPassword reset email sent
DOpen homepage
Attempts:
3 left
💡 Hint
Common Mistakes
Using unrelated steps or results.
Leaving any field empty or unclear.