0
0
Testing Fundamentalstesting~20 mins

Skills for modern testers in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Master Modern Tester
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Key skill for effective communication in testing teams

Which skill is most important for a tester to communicate effectively with developers and stakeholders?

AUsing complex technical jargon
BKnowing multiple programming languages
CWriting clear and concise bug reports
DWorking independently without feedback
Attempts:
2 left
💡 Hint

Think about how testers share problems and results with others.

assertion
intermediate
2:00remaining
Assertion to verify a login button is enabled

Which assertion correctly checks that a login button is enabled in an automated test?

Testing Fundamentals
button = driver.find_element(By.ID, 'login-btn')
Aassert button.is_enabled() == False
Bassert button.is_displayed() == False
Cassert button.text == ''
Dassert button.is_enabled() == True
Attempts:
2 left
💡 Hint

Check the property that tells if the button can be clicked.

Predict Output
advanced
2:00remaining
Output of test result summary code

What is the output of this Python test summary code?

Testing Fundamentals
test_results = {'passed': 8, 'failed': 2, 'skipped': 1}
summary = f"Passed: {test_results['passed']}, Failed: {test_results['failed']}, Skipped: {test_results['skipped']}"
print(summary)
APassed: 8 Failed: 2 Skipped: 1
BPassed: 8, Failed: 2, Skipped: 1
C{'passed': 8, 'failed': 2, 'skipped': 1}
DPassed: 8, Failed: 2, Skipped:
Attempts:
2 left
💡 Hint

Look at how the f-string formats the output with commas and spaces.

🔧 Debug
advanced
2:00remaining
Identify the error in this test locator code

What error will this Selenium locator code cause?

Testing Fundamentals
element = driver.find_element(By.CSS_SELECTOR, '#submit')
AAttributeError: module 'selenium.webdriver.common.by' has no attribute 'CSS'
BNameError: name 'By' is not defined
CNoSuchElementException: element not found
DSyntaxError: invalid syntax
Attempts:
2 left
💡 Hint

Check if the locator strategy name is correct.

framework
expert
3:00remaining
Best practice for organizing automated test cases

Which option shows the best practice for organizing automated test cases in a modern testing framework?

AGroup tests by feature and use descriptive test names with setup and teardown methods
BWrite tests without assertions to speed up execution
CPut all tests in one file with no setup or teardown to keep it simple
DUse random test order and no grouping to find hidden dependencies
Attempts:
2 left
💡 Hint

Think about maintainability and clarity in test suites.