0
0
Testing Fundamentalstesting~10 mins

ISTQB Foundation Level overview in Testing Fundamentals - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test simulates a simple check of understanding the ISTQB Foundation Level syllabus by verifying key topics are present on a training webpage.

It verifies that the page loads and contains the main sections: testing principles, testing process, and testing tools.

Test Code - Selenium
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
import unittest

class TestISTQBFoundationOverview(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get('https://example.com/istqb-foundation-overview')

    def test_istqb_overview_sections(self):
        driver = self.driver
        wait = WebDriverWait(driver, 10)

        # Wait for main heading
        main_heading = wait.until(EC.presence_of_element_located((By.TAG_NAME, 'h1')))
        self.assertIn('ISTQB Foundation Level', main_heading.text)

        # Check for Testing Principles section
        principles = driver.find_element(By.ID, 'testing-principles')
        self.assertTrue(principles.is_displayed())

        # Check for Testing Process section
        process = driver.find_element(By.ID, 'testing-process')
        self.assertTrue(process.is_displayed())

        # Check for Testing Tools section
        tools = driver.find_element(By.ID, 'testing-tools')
        self.assertTrue(tools.is_displayed())

    def tearDown(self):
        self.driver.quit()

if __name__ == '__main__':
    unittest.main()
Execution Trace - 7 Steps
StepActionSystem StateAssertionResult
1Test starts and Chrome browser opensBrowser window is open, ready to navigate-PASS
2Navigates to 'https://example.com/istqb-foundation-overview'Page loads with ISTQB Foundation Level overview content-PASS
3Waits for main heading element with tag <h1>Main heading 'ISTQB Foundation Level' is present on pageAssert main heading text contains 'ISTQB Foundation Level'PASS
4Finds element with ID 'testing-principles'Section about Testing Principles is visibleAssert element is displayedPASS
5Finds element with ID 'testing-process'Section about Testing Process is visibleAssert element is displayedPASS
6Finds element with ID 'testing-tools'Section about Testing Tools is visibleAssert element is displayedPASS
7Test ends and browser closesBrowser window closed-PASS
Failure Scenario
Failing Condition: Any of the key sections or main heading is missing or not visible on the page
Execution Trace Quiz - 3 Questions
Test your understanding
What does the test verify first after loading the page?
AThe main heading text contains 'ISTQB Foundation Level'
BThe page background color
CThe browser window size
DThe URL contains 'testing-tools'
Key Result
Always verify critical page elements are present and visible before proceeding with further tests to ensure the page loaded correctly.