Bird
Raised Fist0
Testing Fundamentalstesting~15 mins

ISTQB Foundation Level overview in Testing Fundamentals - Build an Automation Script

Choose your learning style10 modes available
Verify ISTQB Foundation Level syllabus topics presence on the overview page
Preconditions (2)
Step 1: Open the ISTQB Foundation Level overview page URL
Step 2: Check that the page title contains 'ISTQB Foundation Level'
Step 3: Verify that the following syllabus topics are listed on the page:
Step 4: - Fundamentals of Testing
Step 5: - Testing Throughout the Software Life Cycle
Step 6: - Static Techniques
Step 7: - Test Design Techniques
Step 8: - Test Management
Step 9: - Tool Support for Testing
✅ Expected Result: The page title contains 'ISTQB Foundation Level' and all listed syllabus topics are visible on the page
Automation Requirements - Selenium with Python
Assertions Needed:
Page title contains 'ISTQB Foundation Level'
Each syllabus topic text is present and visible on the page
Best Practices:
Use explicit waits to ensure elements are loaded before checking
Use clear and maintainable locators (e.g., By.XPATH or By.CSS_SELECTOR with text matching)
Structure code for readability and reuse
Automated Solution
Testing Fundamentals
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

def test_istqb_foundation_overview():
    driver = webdriver.Chrome()
    wait = WebDriverWait(driver, 10)
    try:
        driver.get('https://www.istqb.org/certification-path-root/foundation-level.html')

        # Wait for title to contain expected text
        wait.until(EC.title_contains('ISTQB Foundation Level'))
        assert 'ISTQB Foundation Level' in driver.title, f"Title does not contain expected text. Actual title: {driver.title}"

        syllabus_topics = [
            'Fundamentals of Testing',
            'Testing Throughout the Software Life Cycle',
            'Static Techniques',
            'Test Design Techniques',
            'Test Management',
            'Tool Support for Testing'
        ]

        for topic in syllabus_topics:
            # Wait for each topic text to be visible on the page
            wait.until(EC.visibility_of_element_located((By.XPATH, f"//*[contains(text(), '{topic}')]")))
            element = driver.find_element(By.XPATH, f"//*[contains(text(), '{topic}')]" )
            assert element.is_displayed(), f"Topic '{topic}' is not visible on the page"

    finally:
        driver.quit()

This test script uses Selenium WebDriver with Python to automate the manual test case.

First, it opens the ISTQB Foundation Level overview page URL.

It waits explicitly until the page title contains the expected text to ensure the page is loaded.

Then, it checks that each syllabus topic text is present and visible on the page by locating elements containing the topic text using XPath with contains(text(), ...).

Assertions confirm the page title and each topic's visibility.

Explicit waits help avoid flaky tests by waiting for elements to appear before interacting.

The driver is closed in a finally block to ensure cleanup.

Common Mistakes - 3 Pitfalls
{'mistake': 'Using hardcoded sleep (time.sleep) instead of explicit waits', 'why_bad': 'Hardcoded sleeps slow down tests and can cause flaky failures if the page loads slower or faster than expected.', 'correct_approach': "Use Selenium's explicit waits (WebDriverWait with expected_conditions) to wait for elements or conditions dynamically."}
Using brittle locators like absolute XPath
Not verifying element visibility before asserting
Bonus Challenge

Now add data-driven testing with 3 different ISTQB syllabus URLs to verify their overview pages

Show Hint

Practice

(1/5)
1. What is the main purpose of the ISTQB Foundation Level certification?
easy
A. To certify advanced programming skills
B. To teach basic software testing concepts and terminology
C. To train testers in project management
D. To teach database administration

Solution

  1. Step 1: Understand ISTQB Foundation Level focus

    The ISTQB Foundation Level is designed to teach basic testing ideas and terms.
  2. Step 2: Match purpose with options

    Only To teach basic software testing concepts and terminology matches the purpose of teaching basic software testing concepts and terminology.
  3. Final Answer:

    To teach basic software testing concepts and terminology -> Option B
  4. Quick Check:

    Basic testing concepts [OK]
Hint: Remember ISTQB Foundation is for basic testing knowledge [OK]
Common Mistakes:
  • Confusing ISTQB Foundation with advanced certifications
  • Thinking it covers programming or management
  • Assuming it teaches unrelated IT skills
2. Which of the following is a correct statement about ISTQB Foundation Level?
easy
A. It is only for project managers
B. It requires advanced coding skills
C. It focuses on hardware testing
D. It helps testers improve software quality

Solution

  1. Step 1: Identify ISTQB Foundation Level goals

    The certification helps testers work better together and improve software quality.
  2. Step 2: Compare options with goals

    It helps testers improve software quality correctly states it helps testers improve software quality, while others are incorrect.
  3. Final Answer:

    It helps testers improve software quality -> Option D
  4. Quick Check:

    Improve software quality [OK]
Hint: Focus on improving testing and quality, not coding [OK]
Common Mistakes:
  • Assuming coding skills are required
  • Confusing software testing with hardware testing
  • Thinking it is only for managers
3. Consider this statement: "ISTQB Foundation Level certification is useful for beginners and those wanting to prove their testing knowledge." What is the expected outcome of obtaining this certification?
medium
A. It proves basic understanding of software testing
B. It trains testers in advanced automation tools
C. It certifies expertise in network security
D. It guarantees a job as a software developer

Solution

  1. Step 1: Analyze the statement about certification usefulness

    The certification is useful for beginners and those wanting to prove their testing knowledge, meaning it shows basic understanding.
  2. Step 2: Match expected outcomes with options

    It proves basic understanding of software testing correctly states it proves basic understanding of software testing, unlike other unrelated options.
  3. Final Answer:

    It proves basic understanding of software testing -> Option A
  4. Quick Check:

    Prove testing knowledge [OK]
Hint: Certification proves basic testing knowledge, not unrelated skills [OK]
Common Mistakes:
  • Confusing testing knowledge with development or security skills
  • Expecting advanced tool training from Foundation Level
  • Assuming it guarantees a job
4. A tester wrote: "ISTQB Foundation Level is only for experienced testers." Identify the error in this statement.
medium
A. The certification is only for developers
B. It focuses on hardware testing
C. It is actually designed for beginners too
D. It requires knowledge of project management

Solution

  1. Step 1: Understand the tester's statement

    The tester claims ISTQB Foundation Level is only for experienced testers.
  2. Step 2: Check ISTQB Foundation Level target audience

    The certification is designed for beginners and those wanting to prove testing knowledge, so the statement is incorrect.
  3. Final Answer:

    It is actually designed for beginners too -> Option C
  4. Quick Check:

    Designed for beginners [OK]
Hint: Remember Foundation Level suits beginners as well [OK]
Common Mistakes:
  • Thinking it is only for experienced testers
  • Confusing it with advanced certifications
  • Assuming it covers unrelated fields
5. You want to explain to a new team member why ISTQB Foundation Level certification is valuable. Which of these combined reasons best explains its value?
hard
A. It teaches basic testing terms, helps improve team communication, and supports software quality improvement
B. It trains in advanced coding, project management, and network security
C. It certifies hardware testing skills and database management
D. It focuses on marketing strategies and customer relations

Solution

  1. Step 1: Identify key benefits of ISTQB Foundation Level

    The certification teaches basic testing terms, helps testers work better together, and improves software quality.
  2. Step 2: Match combined reasons with options

    It teaches basic testing terms, helps improve team communication, and supports software quality improvement correctly combines these benefits, while others mention unrelated skills.
  3. Final Answer:

    It teaches basic testing terms, helps improve team communication, and supports software quality improvement -> Option A
  4. Quick Check:

    Basic terms + teamwork + quality [OK]
Hint: Combine basics, teamwork, and quality for full value [OK]
Common Mistakes:
  • Choosing unrelated skills like coding or marketing
  • Ignoring teamwork and quality improvement aspects
  • Thinking it covers advanced or non-testing topics
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard