Skip to content

BrowserSessionStateExtractionConfig

fredericOfTestfabrik edited this page Apr 13, 2018 · 9 revisions

State extraction is one of the key elements of webmate, as many jobs require states to work properly and deliver reasonable results. For this reason, we configured this process to be as general as possible. However, there are certain cases where one need to change the configuration of the state extraction process, for example because the website under tests has specific requirements or the performance of the state extraction needs to be optimized.

Usage

To configure the state extraction to your liking, simply create a new BrowserSessionStateExtractionConfig and pass it to the extraction command.

BrowserSessionStateExtractionConfig config = new BrowserSessionStateExtractionConfig(null, 1000,2000, new com.testfabrik.webmate.javasdk.CommonUtils.Dimension(1920,1080),5000,true, new BrowserSessionScreenshotExtractionConfig(false), new BrowserSessionWarmUpConfig(2000,3000,20)); browserSession.createState("My State", config);

Configuration

The following Tables list all available configuration variables, their effect and their default value. If a variable is set to null, the webmate default value will be choosen instead.

BrowserSessionStateExtractionConfig

Variable Effect Default
stateId The Session Id the state should belong to. If set to null, the state will be added to the currently active session null
extractionDelay The delay before state extraction is triggered. 10 seconds
extractionCooldown The delay after state extraction is finished. 20 seconds
optViewportDimension The dimensions the viewport should be resized to. Do not modify viewport dimensions
maxAdditionWaitingTimeForStateExtraction How much additional time the state extraction should get, after the projected end time is reached and the extraction isn't finished yet. 120 seconds
extractDomStateData wether DOM data should be extracted or not. true
screenShotConfig The configuration for the screenshot extraction. See ScreenShotConfig Table for details Do not take screenshots
warmUpConfig The configuration for the warmup. See WarmUpConfig Table for Details. Do not warm up

Clone this wiki locally