0
0
Testing Fundamentalstesting~10 mins

Use case testing 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 a use case test scenario name.

Testing Fundamentals
use_case_name = "[1]"
Drag options to blanks, or click blank then click option'
ALogin with valid credentials
BCheck input
CTest login
DRun test
Attempts:
3 left
💡 Hint
Common Mistakes
Using vague or generic names like 'Test login' instead of descriptive ones.
2fill in blank
medium

Complete the code to add a step description in the use case test.

Testing Fundamentals
test_steps = ["[1]"]
Drag options to blanks, or click blank then click option'
AEnter username and password
BRun the test
CCheck output
DStart application
Attempts:
3 left
💡 Hint
Common Mistakes
Using generic phrases like 'Run the test' instead of specific user actions.
3fill in blank
hard

Fix the error in the test case status assignment.

Testing Fundamentals
test_status = "[1]"
Drag options to blanks, or click blank then click option'
Adone
Bpass
Csuccess
Dpassed
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pass' which is a keyword in some languages and not a status string.
4fill in blank
hard

Fill both blanks to create a dictionary for a use case test step with description and expected result.

Testing Fundamentals
test_step = {"description": "[1]", "expected_result": "[2]"}
Drag options to blanks, or click blank then click option'
AUser enters valid credentials
BSystem displays error message
CUser is logged in successfully
DTest fails
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the description and expected result values.
5fill in blank
hard

Fill all three blanks to define a use case test dictionary with name, steps, and status.

Testing Fundamentals
use_case_test = {"name": "[1]", "steps": ["[2]"], "status": "[3]"}
Drag options to blanks, or click blank then click option'
AUser resets password
BClicks on reset link
Cpassed
Dfailed
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect status values or mixing step and name values.