Stb-tester Manual#
Automated Testing for Set-Top Boxes and OTT devices.
Contents:
Getting Started
Reference
- Python API Overview
- Python API Reference
adb()AdbDeviceAdbErrorAppleTVapply_ocr_corrections()as_precondition()audio_chunks()AudioChunkBGRDiffColorcolor_diff()ConfigurationErrorConfirmMethodcrop()detect_motion()detect_pages()DifferDirectiondraw_text()find_file()find_regions_by_color()find_selection_from_background()FrameFrameObjectframes()get_config()get_frame()get_rms_volume()GrayscaleDiffGridImageis_screen_black()KeyboardKeypresslast_keypress()Learningload_image()load_mask()Maskmatch()match_all()match_text()MatchMethodMatchParametersMatchResultMatchTimeoutMotionResultMotionTimeoutMultiPressnavigate_1d()navigate_grid()NavigationFailedNavigationStateocr()ocr_eq()OcrEngineOcrModeOcrMode.ORIENTATION_AND_SCRIPT_DETECTION_ONLYOcrMode.PAGE_SEGMENTATION_WITH_OSDOcrMode.PAGE_SEGMENTATION_WITHOUT_OSD_OR_OCROcrMode.PAGE_SEGMENTATION_WITHOUT_OSDOcrMode.SINGLE_COLUMN_OF_TEXT_OF_VARIABLE_SIZESOcrMode.SINGLE_UNIFORM_BLOCK_OF_VERTICALLY_ALIGNED_TEXTOcrMode.SINGLE_UNIFORM_BLOCK_OF_TEXTOcrMode.SINGLE_LINEOcrMode.SINGLE_WORDOcrMode.SINGLE_WORD_IN_A_CIRCLEOcrMode.SINGLE_CHARACTEROcrMode.SPARSE_TEXTOcrMode.SPARSE_TEXT_WITH_OSDOcrMode.RAW_LINE
pdu()PDUPositionPreconditionErrorpress()press_and_wait()pressing()press_until_match()CounterGaugeHistogramRegionRegion.xRegion.yRegion.rightRegion.bottomRegion.widthRegion.heightRegion.centerRegion.from_extents()Region.bounding_box()Region.intersect()Region.to_slice()Region.contains()Region.translate()Region.extend()Region.replace()Region.dilate()Region.erode()Region.above()Region.below()Region.right_of()Region.left_of()
RmsVolumeResultRokusegment()set_global_ocr_corrections()Sizestop_job()TextMatchResultTransitionTransitionStatusUITestFailureVolumeChangeDirectionVolumeChangeTimeoutwait_for_content_start()wait_for_match()wait_for_motion()wait_for_transition_to_end()wait_for_volume_change()wait_until()
- Python API Release Notes
- HTTP REST API v2
- stbt_rig Command-Line Tool
- Configuration Reference
- Remote Control Configuration
- User Interface Reference
- User Access Control
- Power Distribution Units
User Guides
- Continuous Integration
- Lint checks in pull requests
- Investigating intermittent bugs
- Interactive log viewer
- Capturing logs from the device-under-test
- How to structure your test scripts for re-use across multiple platforms
- Pytest
- Selenium for second-screen login flows
- Controlling Apple TV with pyatv
- Regions and Masks
- Finding GUI elements by color
- Using segmentation to find GUI elements
- Testing on-screen keyboards