0
0
Testing Fundamentalstesting~10 mins

ISTQB Advanced Level paths in Testing Fundamentals - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test simulates a learner navigating the ISTQB Advanced Level certification paths webpage. It verifies that the page loads correctly, the main certification paths are visible, and the links to detailed syllabus pages work as expected.

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 TestISTQBAdvancedPaths(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        self.driver.get('https://www.istqb.org/certification-paths/advanced-level.html')

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

        # Wait for main heading
        heading = wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'h1.page-title')))
        self.assertEqual(heading.text.strip(), 'ISTQB® Advanced Level Certification Paths')

        # Check presence of main certification paths list
        paths_list = driver.find_elements(By.CSS_SELECTOR, 'div.certification-paths ul li')
        self.assertGreaterEqual(len(paths_list), 3, 'Expected at least 3 certification paths')

        # Click on the first path link and verify navigation
        first_path_link = paths_list[0].find_element(By.TAG_NAME, 'a')
        first_path_link.click()

        # Wait for syllabus page heading
        syllabus_heading = wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'h1.page-title')))
        self.assertIn('Syllabus', syllabus_heading.text)

    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://www.istqb.org/certification-paths/advanced-level.html'ISTQB Advanced Level certification paths page is loading-PASS
3Waits for main heading with CSS selector 'h1.page-title'Page loaded with heading visibleHeading text equals 'ISTQB® Advanced Level Certification Paths'PASS
4Finds list items under 'div.certification-paths ul li'List of certification paths displayedAt least 3 certification paths are presentPASS
5Clicks the first certification path linkBrowser navigates to the syllabus page of the first path-PASS
6Waits for syllabus page heading with CSS selector 'h1.page-title'Syllabus page loaded with heading visibleHeading text contains 'Syllabus'PASS
7Test ends and browser closesBrowser window closed-PASS
Failure Scenario
Failing Condition: Main heading 'ISTQB® Advanced Level Certification Paths' is not found or text does not match
Execution Trace Quiz - 3 Questions
Test your understanding
What does the test verify immediately after the page loads?
AThe browser title contains 'ISTQB'
BThe footer is visible
CThe main heading text is 'ISTQB® Advanced Level Certification Paths'
DThe page background color is white
Key Result
Always wait explicitly for key page elements before asserting their content to avoid flaky tests caused by slow page loads.